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 alternative 
WriterController which handles static types and method
 dispatch. In case of a "mixed mode" where only some methods are annotated with TypeChecked
 then this writer will delegate to the classic writer controller.- 
Field SummaryFields Modifier and Type Field Description protected booleanisInStaticallyCheckedMethodFields inherited from class org.codehaus.groovy.classgen.asm.WriterControlleroptimizeForInt
- 
Constructor SummaryConstructors Constructor Description StaticTypesWriterController(WriterController controller)
- 
Method SummaryModifier and Type Method Description BinaryExpressionHelpergetBinaryExpressionHelper()CallSiteWritergetCallSiteWriter()ClosureWritergetClosureWriter()InvocationWritergetInvocationWriter()LambdaWritergetLambdaWriter()MethodReferenceExpressionWritergetMethodReferenceExpressionWriter()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.DelegatingControllergetAcg, getAssertionWriter, getBytecodeVersion, getClassName, getClassNode, getClassVisitor, getCompileStack, getConstructorNode, getContext, getCv, getInterfaceClassLoadingClass, getInternalBaseClassName, getInternalClassName, getLineNumber, getMethodNode, getMethodPointerExpressionWriter, getMethodVisitor, getOperandStack, getOutermostClass, getReturnType, getSourceUnit, isConstructor, isInGeneratedFunction, isInGeneratedFunctionConstructor, isInScriptBody, isNotClinit, isStaticConstructor, isStaticContext, isStaticMethod, resetLineNumber, setInterfaceClassLoadingClass, setLineNumber, setMethodVisitor, shouldOptimizeForInt, switchToFastPath, switchToSlowPathMethods inherited from class org.codehaus.groovy.classgen.asm.WriterControllergetNextHelperMethodIndex, getSuperMethodNamesMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
- 
Field Details- 
isInStaticallyCheckedMethodprotected boolean isInStaticallyCheckedMethod
 
- 
- 
Constructor Details- 
StaticTypesWriterController
 
- 
- 
Method Details- 
initpublic void init(AsmClassGenerator asmClassGenerator, GeneratorContext gcon, org.objectweb.asm.ClassVisitor cv, ClassNode cn)- Overrides:
- initin class- DelegatingController
 
- 
setMethodNode- Overrides:
- setMethodNodein class- DelegatingController
 
- 
setConstructorNode- Overrides:
- setConstructorNodein class- DelegatingController
 
- 
isFastPathpublic boolean isFastPath()- Overrides:
- isFastPathin class- DelegatingController
 
- 
getCallSiteWriter- Overrides:
- getCallSiteWriterin class- DelegatingController
 
- 
getRegularCallSiteWriter
- 
getStatementWriter- Overrides:
- getStatementWriterin class- DelegatingController
 
- 
getTypeChooser- Overrides:
- getTypeChooserin class- DelegatingController
 
- 
getInvocationWriter- Overrides:
- getInvocationWriterin class- DelegatingController
 
- 
getRegularInvocationWriter
- 
getBinaryExpressionHelper- Overrides:
- getBinaryExpressionHelperin class- DelegatingController
 
- 
getMethodReferenceExpressionWriter- Overrides:
- getMethodReferenceExpressionWriterin class- DelegatingController
 
- 
getUnaryExpressionHelper- Overrides:
- getUnaryExpressionHelperin class- DelegatingController
 
- 
getClosureWriter- Overrides:
- getClosureWriterin class- DelegatingController
 
- 
getLambdaWriter- Overrides:
- getLambdaWriterin class- DelegatingController
 
 
-