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 Details
-
DelegatingController
-
-
Method Details
-
init
public void init(AsmClassGenerator asmClassGenerator, GeneratorContext gcon, org.objectweb.asm.ClassVisitor cv, ClassNode cn)- Overrides:
init
in classWriterController
-
setMethodNode
- Overrides:
setMethodNode
in classWriterController
-
setConstructorNode
- Overrides:
setConstructorNode
in classWriterController
-
isFastPath
public boolean isFastPath()- Overrides:
isFastPath
in classWriterController
-
getCallSiteWriter
- Overrides:
getCallSiteWriter
in classWriterController
-
getStatementWriter
- Overrides:
getStatementWriter
in classWriterController
-
getTypeChooser
- Overrides:
getTypeChooser
in classWriterController
-
getAcg
- Overrides:
getAcg
in classWriterController
-
getAssertionWriter
- Overrides:
getAssertionWriter
in classWriterController
-
getBinaryExpressionHelper
- Overrides:
getBinaryExpressionHelper
in classWriterController
-
getUnaryExpressionHelper
- Overrides:
getUnaryExpressionHelper
in classWriterController
-
getClassName
- Overrides:
getClassName
in classWriterController
-
getClassNode
- Overrides:
getClassNode
in classWriterController
-
getClassVisitor
public org.objectweb.asm.ClassVisitor getClassVisitor()- Overrides:
getClassVisitor
in classWriterController
-
getClosureWriter
- Overrides:
getClosureWriter
in classWriterController
-
getLambdaWriter
- Overrides:
getLambdaWriter
in classWriterController
-
getMethodPointerExpressionWriter
- Overrides:
getMethodPointerExpressionWriter
in classWriterController
-
getMethodReferenceExpressionWriter
- Overrides:
getMethodReferenceExpressionWriter
in classWriterController
-
getCompileStack
- Overrides:
getCompileStack
in classWriterController
-
getConstructorNode
- Overrides:
getConstructorNode
in classWriterController
-
getContext
- Overrides:
getContext
in classWriterController
-
getCv
Deprecated.- Overrides:
getCv
in classWriterController
-
getInterfaceClassLoadingClass
- Overrides:
getInterfaceClassLoadingClass
in classWriterController
-
getInternalBaseClassName
- Overrides:
getInternalBaseClassName
in classWriterController
-
getInternalClassName
- Overrides:
getInternalClassName
in classWriterController
-
getInvocationWriter
- Overrides:
getInvocationWriter
in classWriterController
-
getMethodNode
- Overrides:
getMethodNode
in classWriterController
-
getMethodVisitor
public org.objectweb.asm.MethodVisitor getMethodVisitor()- Overrides:
getMethodVisitor
in classWriterController
-
getOperandStack
- Overrides:
getOperandStack
in classWriterController
-
getOutermostClass
- Overrides:
getOutermostClass
in classWriterController
-
getReturnType
- Overrides:
getReturnType
in classWriterController
-
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
- 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
-