public class CodegenMethod extends Object implements CodegenMethodScope
Modifier | Constructor and Description |
---|---|
protected |
CodegenMethod(Class returnType,
String returnTypeName,
Class generator,
CodegenSymbolProvider optionalSymbolProvider,
CodegenScope env) |
protected CodegenMethod(Class returnType, String returnTypeName, Class generator, CodegenSymbolProvider optionalSymbolProvider, CodegenScope env)
public static CodegenMethod makeParentNode(Class returnType, Class generator, CodegenScope env)
public static CodegenMethod makeParentNode(Class returnType, Class generator, CodegenSymbolProvider symbolProvider, CodegenScope env)
public static CodegenMethod makeParentNode(String returnTypeName, Class generator, CodegenSymbolProvider symbolProvider, CodegenScope env)
public CodegenMethod makeChild(Class returnType, Class generator, CodegenScope env)
makeChild
in interface CodegenMethodScope
public CodegenMethod makeChild(String returnType, Class generator, CodegenScope env)
makeChild
in interface CodegenMethodScope
public CodegenMethod makeChildWithScope(Class returnType, Class generator, CodegenSymbolProvider symbolProvider, CodegenScope env)
makeChildWithScope
in interface CodegenMethodScope
public CodegenMethod makeChildWithScope(String returnType, Class generator, CodegenSymbolProvider symbolProvider, CodegenScope env)
public CodegenMethod addSymbol(CodegenExpressionRef symbol)
addSymbol
in interface CodegenMethodScope
public CodegenSymbolProvider getOptionalSymbolProvider()
public List<CodegenMethod> getChildren()
public List<CodegenExpressionRef> getEnvironment()
public Class getReturnType()
public String getReturnTypeName()
public String getAdditionalDebugInfo()
public CodegenBlock getBlock()
public List<CodegenNamedParam> getLocalParams()
public CodegenMethod addParam(Class type, String name)
public CodegenMethod addParam(String typeName, String name)
public CodegenMethod addParam(List<CodegenNamedParam> params)
public CodegenMethod addThrown(Class throwableClass)
public CodegenMethodWGraph getAssignedMethod()
public void setAssignedMethod(CodegenMethodWGraph assignedMethod)
public CodegenMethod setStatic(boolean aStatic)
public boolean isStatic()
Copyright © 2005–2018. All rights reserved.