Class StaticTypesWriterController
- java.lang.Object
-
- org.codehaus.groovy.classgen.asm.WriterController
-
- org.codehaus.groovy.classgen.asm.DelegatingController
-
- org.codehaus.groovy.classgen.asm.sc.StaticTypesWriterController
-
public class StaticTypesWriterController extends DelegatingController
An alternativeWriterControllerwhich handles static types and method dispatch. In case of a "mixed mode" where only some methods are annotated withTypeCheckedthen this writer will delegate to the classic writer controller.
-
-
Field Summary
Fields Modifier and Type Field Description protected booleanisInStaticallyCheckedMethod-
Fields inherited from class org.codehaus.groovy.classgen.asm.WriterController
optimizeForInt
-
-
Constructor Summary
Constructors Constructor Description StaticTypesWriterController(WriterController controller)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BinaryExpressionHelpergetBinaryExpressionHelper()CallSiteWritergetCallSiteWriter()ClosureWritergetClosureWriter()InvocationWritergetInvocationWriter()CallSiteWritergetRegularCallSiteWriter()InvocationWritergetRegularInvocationWriter()StatementWritergetStatementWriter()TypeChoosergetTypeChooser()UnaryExpressionHelpergetUnaryExpressionHelper()voidinit(AsmClassGenerator asmClassGenerator, GeneratorContext gcon, org.objectweb.asm.ClassVisitor cv, ClassNode cn)booleanisFastPath()voidsetConstructorNode(ConstructorNode cn)voidsetMethodNode(MethodNode mn)-
Methods inherited from class org.codehaus.groovy.classgen.asm.DelegatingController
getAcg, getAssertionWriter, getBytecodeVersion, getClassName, getClassNode, getClassVisitor, getCompileStack, getConstructorNode, getContext, getCv, getInterfaceClassLoadingClass, getInternalBaseClassName, getInternalClassName, getLineNumber, getMethodNode, getMethodVisitor, getOperandStack, getOutermostClass, getReturnType, getSourceUnit, isConstructor, isInClosure, isInClosureConstructor, isInScriptBody, isNotClinit, isNotExplicitThisInClosure, isStaticConstructor, isStaticContext, isStaticMethod, resetLineNumber, setInterfaceClassLoadingClass, setLineNumber, setMethodVisitor, shouldOptimizeForInt, switchToFastPath, switchToSlowPath
-
Methods inherited from class org.codehaus.groovy.classgen.asm.WriterController
getNextHelperMethodIndex, getSuperMethodNames
-
-
-
-
Constructor Detail
-
StaticTypesWriterController
public StaticTypesWriterController(WriterController controller)
-
-
Method Detail
-
init
public void init(AsmClassGenerator asmClassGenerator, GeneratorContext gcon, org.objectweb.asm.ClassVisitor cv, ClassNode cn)
- Overrides:
initin classDelegatingController
-
setMethodNode
public void setMethodNode(MethodNode mn)
- Overrides:
setMethodNodein classDelegatingController
-
setConstructorNode
public void setConstructorNode(ConstructorNode cn)
- Overrides:
setConstructorNodein classDelegatingController
-
isFastPath
public boolean isFastPath()
- Overrides:
isFastPathin classDelegatingController
-
getCallSiteWriter
public CallSiteWriter getCallSiteWriter()
- Overrides:
getCallSiteWriterin classDelegatingController
-
getRegularCallSiteWriter
public CallSiteWriter getRegularCallSiteWriter()
-
getStatementWriter
public StatementWriter getStatementWriter()
- Overrides:
getStatementWriterin classDelegatingController
-
getTypeChooser
public TypeChooser getTypeChooser()
- Overrides:
getTypeChooserin classDelegatingController
-
getInvocationWriter
public InvocationWriter getInvocationWriter()
- Overrides:
getInvocationWriterin classDelegatingController
-
getRegularInvocationWriter
public InvocationWriter getRegularInvocationWriter()
-
getBinaryExpressionHelper
public BinaryExpressionHelper getBinaryExpressionHelper()
- Overrides:
getBinaryExpressionHelperin classDelegatingController
-
getUnaryExpressionHelper
public UnaryExpressionHelper getUnaryExpressionHelper()
- Overrides:
getUnaryExpressionHelperin classDelegatingController
-
getClosureWriter
public ClosureWriter getClosureWriter()
- Overrides:
getClosureWriterin classDelegatingController
-
-