Package org.codehaus.groovy.classgen.asm
Class DelegatingController
- java.lang.Object
-
- org.codehaus.groovy.classgen.asm.WriterController
-
- org.codehaus.groovy.classgen.asm.DelegatingController
-
- Direct Known Subclasses:
StaticTypesWriterController
public class DelegatingController extends WriterController
This class will delegate all calls to a WriterController given in the constructor.
-
-
Field Summary
-
Fields inherited from class org.codehaus.groovy.classgen.asm.WriterController
optimizeForInt
-
-
Constructor Summary
Constructors Constructor Description DelegatingController(WriterController normalController)
-
Method Summary
-
Methods inherited from class org.codehaus.groovy.classgen.asm.WriterController
getNextHelperMethodIndex, getSuperMethodNames
-
-
-
-
Constructor Detail
-
DelegatingController
public DelegatingController(WriterController normalController)
-
-
Method Detail
-
init
public void init(AsmClassGenerator asmClassGenerator, GeneratorContext gcon, org.objectweb.asm.ClassVisitor cv, ClassNode cn)
- Overrides:
init
in classWriterController
-
setMethodNode
public void setMethodNode(MethodNode mn)
- Overrides:
setMethodNode
in classWriterController
-
setConstructorNode
public void setConstructorNode(ConstructorNode cn)
- Overrides:
setConstructorNode
in classWriterController
-
isFastPath
public boolean isFastPath()
- Overrides:
isFastPath
in classWriterController
-
getCallSiteWriter
public CallSiteWriter getCallSiteWriter()
- Overrides:
getCallSiteWriter
in classWriterController
-
getStatementWriter
public StatementWriter getStatementWriter()
- Overrides:
getStatementWriter
in classWriterController
-
getTypeChooser
public TypeChooser getTypeChooser()
- Overrides:
getTypeChooser
in classWriterController
-
getAcg
public AsmClassGenerator getAcg()
- Overrides:
getAcg
in classWriterController
-
getAssertionWriter
public AssertionWriter getAssertionWriter()
- Overrides:
getAssertionWriter
in classWriterController
-
getBinaryExpressionHelper
public BinaryExpressionHelper getBinaryExpressionHelper()
- Overrides:
getBinaryExpressionHelper
in classWriterController
-
getUnaryExpressionHelper
public UnaryExpressionHelper getUnaryExpressionHelper()
- Overrides:
getUnaryExpressionHelper
in classWriterController
-
getClassName
public String getClassName()
- Overrides:
getClassName
in classWriterController
-
getClassNode
public ClassNode getClassNode()
- Overrides:
getClassNode
in classWriterController
-
getClassVisitor
public org.objectweb.asm.ClassVisitor getClassVisitor()
- Overrides:
getClassVisitor
in classWriterController
-
getClosureWriter
public ClosureWriter getClosureWriter()
- Overrides:
getClosureWriter
in classWriterController
-
getLambdaWriter
public LambdaWriter getLambdaWriter()
- Overrides:
getLambdaWriter
in classWriterController
-
getMethodPointerExpressionWriter
public MethodPointerExpressionWriter getMethodPointerExpressionWriter()
- Overrides:
getMethodPointerExpressionWriter
in classWriterController
-
getMethodReferenceExpressionWriter
public MethodReferenceExpressionWriter getMethodReferenceExpressionWriter()
- Overrides:
getMethodReferenceExpressionWriter
in classWriterController
-
getCompileStack
public CompileStack getCompileStack()
- Overrides:
getCompileStack
in classWriterController
-
getConstructorNode
public ConstructorNode getConstructorNode()
- Overrides:
getConstructorNode
in classWriterController
-
getContext
public GeneratorContext getContext()
- Overrides:
getContext
in classWriterController
-
getCv
@Deprecated public org.objectweb.asm.ClassVisitor getCv()
Deprecated.- Overrides:
getCv
in classWriterController
-
getInterfaceClassLoadingClass
public InterfaceHelperClassNode getInterfaceClassLoadingClass()
- Overrides:
getInterfaceClassLoadingClass
in classWriterController
-
getInternalBaseClassName
public String getInternalBaseClassName()
- Overrides:
getInternalBaseClassName
in classWriterController
-
getInternalClassName
public String getInternalClassName()
- Overrides:
getInternalClassName
in classWriterController
-
getInvocationWriter
public InvocationWriter getInvocationWriter()
- Overrides:
getInvocationWriter
in classWriterController
-
getMethodNode
public MethodNode getMethodNode()
- Overrides:
getMethodNode
in classWriterController
-
getMethodVisitor
public org.objectweb.asm.MethodVisitor getMethodVisitor()
- Overrides:
getMethodVisitor
in classWriterController
-
getOperandStack
public OperandStack getOperandStack()
- Overrides:
getOperandStack
in classWriterController
-
getOutermostClass
public ClassNode getOutermostClass()
- Overrides:
getOutermostClass
in classWriterController
-
getReturnType
public ClassNode getReturnType()
- Overrides:
getReturnType
in classWriterController
-
getSourceUnit
public SourceUnit getSourceUnit()
- Overrides:
getSourceUnit
in classWriterController
-
isConstructor
public boolean isConstructor()
- Overrides:
isConstructor
in classWriterController
-
isInGeneratedFunction
public boolean isInGeneratedFunction()
- Overrides:
isInGeneratedFunction
in classWriterController
-
isInGeneratedFunctionConstructor
public boolean isInGeneratedFunctionConstructor()
- Overrides:
isInGeneratedFunctionConstructor
in classWriterController
-
isNotClinit
public boolean isNotClinit()
- Overrides:
isNotClinit
in classWriterController
-
isInScriptBody
public boolean isInScriptBody()
- Overrides:
isInScriptBody
in classWriterController
- Returns:
- true if we are in a script body, where all variables declared are no longer local variables but are properties
-
isStaticConstructor
public boolean isStaticConstructor()
- Overrides:
isStaticConstructor
in classWriterController
-
isStaticContext
public boolean isStaticContext()
- Overrides:
isStaticContext
in classWriterController
-
isStaticMethod
public boolean isStaticMethod()
- Overrides:
isStaticMethod
in classWriterController
-
setInterfaceClassLoadingClass
public void setInterfaceClassLoadingClass(InterfaceHelperClassNode ihc)
- Overrides:
setInterfaceClassLoadingClass
in classWriterController
-
setMethodVisitor
public void setMethodVisitor(org.objectweb.asm.MethodVisitor methodVisitor)
- Overrides:
setMethodVisitor
in classWriterController
-
shouldOptimizeForInt
public boolean shouldOptimizeForInt()
- Overrides:
shouldOptimizeForInt
in classWriterController
-
switchToFastPath
public void switchToFastPath()
- Overrides:
switchToFastPath
in classWriterController
-
switchToSlowPath
public void switchToSlowPath()
- Overrides:
switchToSlowPath
in classWriterController
-
getBytecodeVersion
public int getBytecodeVersion()
- Overrides:
getBytecodeVersion
in classWriterController
-
setLineNumber
public void setLineNumber(int n)
- Overrides:
setLineNumber
in classWriterController
-
getLineNumber
public int getLineNumber()
- Overrides:
getLineNumber
in classWriterController
-
resetLineNumber
public void resetLineNumber()
- Overrides:
resetLineNumber
in classWriterController
-
-