com.advancedpwr.record.mock
Class MockMethodBuilder

java.lang.Object
  extended by com.advancedpwr.record.methods.BuildMethodWriter
      extended by com.advancedpwr.record.mock.MockMethodBuilder
Direct Known Subclasses:
NiceMockMethodBuilder

public class MockMethodBuilder
extends BuildMethodWriter


Field Summary
 
Fields inherited from class com.advancedpwr.record.methods.BuildMethodWriter
fieldAccessPath, fieldClassWriter, fieldFactory, fieldScope
 
Constructor Summary
MockMethodBuilder()
           
 
Method Summary
protected  String buildArguments(AccessPath result)
           
protected  boolean isException(AccessPath result)
           
protected  boolean isVoidReturnType(AccessPath result)
           
protected  String methodName(AccessPath result)
           
protected  void writeInstance()
           
protected  void writePopulators()
           
 
Methods inherited from class com.advancedpwr.record.methods.BuildMethodWriter
buildMethod, closeBrace, createMethodBuilder, declaredExceptions, depth, exceptions, formattedExceptionList, getAccessPath, getClassWriter, getFactory, getInstanceTree, hasDeclaredException, hasDefaultConstructor, instanceName, instanceType, newLine, openBrace, populator, resultBuilder, returnType, scope, setAccessPath, setClassWriter, setFactory, setScopeProtected, setScopePublic, wrapException, write, writeBuilderMethods, writeField, writeIfNotNullReturnInstance, writeLine, writeMethodSignature
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MockMethodBuilder

public MockMethodBuilder()
Method Detail

writeInstance

protected void writeInstance()
Overrides:
writeInstance in class BuildMethodWriter

writePopulators

protected void writePopulators()
Overrides:
writePopulators in class BuildMethodWriter

methodName

protected String methodName(AccessPath result)

isException

protected boolean isException(AccessPath result)

isVoidReturnType

protected boolean isVoidReturnType(AccessPath result)

buildArguments

protected String buildArguments(AccessPath result)


Copyright © 2011 Advanced Power Co. All Rights Reserved.