[Java] Class StaticTypesWriterController
- org.codehaus.groovy.classgen.asm.sc.StaticTypesWriterController
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 Summary
Modifiers | Name | Description |
---|---|---|
protected boolean | isInStaticallyCheckedMethod |
Fields inherited from class | Fields |
---|---|
class WriterController | optimizeForInt |
Constructor Summary
Constructor and description |
---|
StaticTypesWriterController
(WriterController normalController) |
Methods Summary
Type Params | Return Type | Name and description |
---|---|---|
BinaryExpressionHelper |
getBinaryExpressionHelper() | |
CallSiteWriter |
getCallSiteWriter() | |
ClosureWriter |
getClosureWriter() | |
InvocationWriter |
getInvocationWriter() | |
CallSiteWriter |
getRegularCallSiteWriter() | |
InvocationWriter |
getRegularInvocationWriter() | |
StatementWriter |
getStatementWriter() | |
TypeChooser |
getTypeChooser() | |
UnaryExpressionHelper |
getUnaryExpressionHelper() | |
void |
init(AsmClassGenerator asmClassGenerator, GeneratorContext gcon, org.objectweb.asm.ClassVisitor cv, ClassNode cn) | |
boolean |
isFastPath() | |
void |
setConstructorNode(ConstructorNode cn) | |
void |
setMethodNode(MethodNode mn) |
Inherited Methods Summary
Field Detail
protected boolean isInStaticallyCheckedMethod
Constructor Detail
public StaticTypesWriterController(WriterController normalController)
Method Detail
@Override public BinaryExpressionHelper getBinaryExpressionHelper()
@Override public CallSiteWriter getCallSiteWriter()
@Override public ClosureWriter getClosureWriter()
@Override public InvocationWriter getInvocationWriter()
public CallSiteWriter getRegularCallSiteWriter()
public InvocationWriter getRegularInvocationWriter()
@Override public StatementWriter getStatementWriter()
@Override public TypeChooser getTypeChooser()
@Override public UnaryExpressionHelper getUnaryExpressionHelper()
@Override public void init(AsmClassGenerator asmClassGenerator, GeneratorContext gcon, org.objectweb.asm.ClassVisitor cv, ClassNode cn)
@Override public boolean isFastPath()
@Override public void setConstructorNode(ConstructorNode cn)
@Override public void setMethodNode(MethodNode mn)
© 2003-2020 The Apache Software Foundation
Licensed under the Apache license.
https://docs.groovy-lang.org/2.5.14/html/gapi/org/codehaus/groovy/classgen/asm/sc/StaticTypesWriterController.html