Groovy 2.2.1

org.codehaus.groovy.classgen.asm.sc
[Java] 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.

Authors:
Cedric Champeau


Field Summary
protected boolean isInStaticallyCheckedMethod

 
Fields inherited from class DelegatingController
optimizeForInt
 
Fields inherited from class WriterController
optimizeForInt
 
Constructor Summary
StaticTypesWriterController(WriterController normalController)

 
Method Summary
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)

 
Methods inherited from class DelegatingController
getClassNode, isStaticConstructor, setLineNumber, getCv, isFastPath, setMethodNode, setConstructorNode, getCallSiteWriter, getStatementWriter, getTypeChooser, getUnaryExpressionHelper, getClassVisitor, getClosureWriter, getConstructorNode, getInterfaceClassLoadingClass, getInternalBaseClassName, getInternalClassName, getInvocationWriter, getMethodNode, getOutermostClass, isInClosure, isInClosureConstructor, isNotClinit, isInScriptBody, isNotExplicitThisInClosure, isStaticContext, isStaticMethod, setInterfaceClassLoadingClass, setMethodVisitor, shouldOptimizeForInt, switchToFastPath, switchToSlowPath, getBytecodeVersion, resetLineNumber, getCompileStack, getMethodVisitor, getOperandStack, getAcg, getBinaryExpressionHelper, getAssertionWriter, getSourceUnit, getReturnType, isConstructor, init, getContext, getClassName, getLineNumber, wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll
 
Methods inherited from class WriterController
getClassNode, isStaticConstructor, setLineNumber, getCv, isFastPath, setMethodNode, setConstructorNode, getCallSiteWriter, getStatementWriter, getTypeChooser, getUnaryExpressionHelper, getClassVisitor, getClosureWriter, getConstructorNode, getInterfaceClassLoadingClass, getInternalBaseClassName, getInternalClassName, getInvocationWriter, getMethodNode, getOutermostClass, isInClosure, isInClosureConstructor, isNotClinit, isInScriptBody, isNotExplicitThisInClosure, isStaticContext, isStaticMethod, setInterfaceClassLoadingClass, setMethodVisitor, shouldOptimizeForInt, switchToFastPath, switchToSlowPath, getBytecodeVersion, resetLineNumber, getCompileStack, getMethodVisitor, getOperandStack, getAcg, getBinaryExpressionHelper, getAssertionWriter, getSourceUnit, getReturnType, isConstructor, init, getContext, getClassName, getLineNumber, wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll
 

Field Detail

isInStaticallyCheckedMethod

protected boolean isInStaticallyCheckedMethod


 
Constructor Detail

StaticTypesWriterController

public StaticTypesWriterController(WriterController normalController)


 
Method Detail

getBinaryExpressionHelper

@Override
public BinaryExpressionHelper getBinaryExpressionHelper()


getCallSiteWriter

@Override
public CallSiteWriter getCallSiteWriter()


getClosureWriter

@Override
public ClosureWriter getClosureWriter()


getInvocationWriter

@Override
public InvocationWriter getInvocationWriter()


getRegularCallSiteWriter

public CallSiteWriter getRegularCallSiteWriter()


getRegularInvocationWriter

public InvocationWriter getRegularInvocationWriter()


getStatementWriter

@Override
public StatementWriter getStatementWriter()


getTypeChooser

@Override
public TypeChooser getTypeChooser()


getUnaryExpressionHelper

@Override
public UnaryExpressionHelper getUnaryExpressionHelper()


init

@Override
public void init(AsmClassGenerator asmClassGenerator, GeneratorContext gcon, org.objectweb.asm.ClassVisitor cv, ClassNode cn)


isFastPath

@Override
public boolean isFastPath()


setConstructorNode

@Override
public void setConstructorNode(ConstructorNode cn)


setMethodNode

@Override
public void setMethodNode(MethodNode mn)


 

Copyright © 2003-2013 The Codehaus. All rights reserved.