|
Groovy 2.2.0 | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.codehaus.groovy.ast.CodeVisitorSupport org.codehaus.groovy.ast.ClassCodeVisitorSupport org.codehaus.groovy.classgen.ClassGenerator org.codehaus.groovy.classgen.AsmClassGenerator
public class AsmClassGenerator extends ClassGenerator
Generates Java class versions of Groovy classes using ASM.
Field Summary | |
---|---|
static boolean |
ASM_DEBUG
|
static boolean |
CREATE_DEBUG_INFO
|
static boolean |
CREATE_LINE_NUMBER_INFO
|
static MethodCallerMultiAdapter |
getField
|
static MethodCallerMultiAdapter |
getGroovyObjectField
|
static MethodCallerMultiAdapter |
setProperty
|
Fields inherited from class ClassGenerator | |
---|---|
innerClasses |
Constructor Summary | |
AsmClassGenerator(SourceUnit source, GeneratorContext context, org.objectweb.asm.ClassVisitor classVisitor, String sourceFile)
|
Methods inherited from class ClassGenerator | |
---|---|
getInnerClasses, getSourceUnit, visitBytecodeSequence |
Methods inherited from class Object | |
---|---|
wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll |
Field Detail |
---|
public static final boolean ASM_DEBUG
public static final boolean CREATE_DEBUG_INFO
public static final boolean CREATE_LINE_NUMBER_INFO
public static final MethodCallerMultiAdapter getField
public static final MethodCallerMultiAdapter getGroovyObjectField
public static final MethodCallerMultiAdapter setProperty
Constructor Detail |
---|
public AsmClassGenerator(SourceUnit source, GeneratorContext context, org.objectweb.asm.ClassVisitor classVisitor, String sourceFile)
Method Detail |
---|
public boolean addInnerClass(ClassNode innerClass)
public static int argumentSize(Expression arguments)
public static boolean containsSpreadExpression(Expression arguments)
protected void createInterfaceSyntheticStaticFields()
protected void createSyntheticStaticFields()
public void despreadList(List expressions, boolean wrap)
protected boolean emptyArguments(Expression arguments)
protected CompileUnit getCompileUnit()
public WriterController getController()
public SourceUnit getSourceUnit()
public static boolean isNullConstant(Expression expr)
public static boolean isThisExpression(Expression expression)
public void loadInstanceField(FieldExpression fldExp)
public void loadStaticField(FieldExpression fldExp)
protected void loadThisOrOwner()
public void loadWrapper(Expression argument)
public void onLineNumber(ASTNode statement, String message)
public void throwException(String s)
public void visitAnnotations(AnnotatedNode node)
public void visitArgumentlistExpression(ArgumentListExpression ale)
public void visitArrayExpression(ArrayExpression expression)
public void visitAssertStatement(AssertStatement statement)
public void visitAttributeExpression(AttributeExpression expression)
public void visitBinaryExpression(BinaryExpression expression)
public void visitBitwiseNegationExpression(BitwiseNegationExpression expression)
public void visitBlockStatement(BlockStatement block)
public void visitBooleanExpression(BooleanExpression expression)
public void visitBreakStatement(BreakStatement statement)
public void visitBytecodeExpression(BytecodeExpression cle)
public void visitBytecodeSequence(BytecodeSequence bytecodeSequence)
public void visitCaseStatement(CaseStatement statement)
public void visitCastExpression(CastExpression castExpression)
@Overridecontroller.getStatementWriter().writeSwitch(statement); public void visitCatchStatement(CatchStatement statement)
public void visitClass(ClassNode classNode)
public void visitClassExpression(ClassExpression expression)
public void visitClosureExpression(ClosureExpression expression)
public void visitClosureListExpression(ClosureListExpression expression)
public void visitConstantExpression(ConstantExpression expression)
public void visitConstructor(ConstructorNode node)
public void visitConstructorCallExpression(ConstructorCallExpression call)
protected void visitConstructorOrMethod(MethodNode node, boolean isConstructor)
public void visitContinueStatement(ContinueStatement statement)
public void visitDeclarationExpression(DeclarationExpression expression)
public void visitDoWhileLoop(DoWhileStatement loop)
public void visitExpressionStatement(ExpressionStatement statement)
public void visitField(FieldNode fieldNode)
public void visitFieldExpression(FieldExpression expression)
public void visitForLoop(ForStatement loop)
public void visitGStringExpression(GStringExpression expression)
public void visitGenericType(GenericsType genericsType)
public void visitIfElse(IfStatement ifElse)
public void visitListExpression(ListExpression expression)
public void visitMapEntryExpression(MapEntryExpression expression)
public void visitMapExpression(MapExpression expression)
public void visitMethod(MethodNode node)
public void visitMethodCallExpression(MethodCallExpression call)
public void visitMethodPointerExpression(MethodPointerExpression expression)
public void visitNotExpression(NotExpression expression)
public void visitPostfixExpression(PostfixExpression expression)
public void visitPrefixExpression(PrefixExpression expression)
public void visitProperty(PropertyNode statement)
public void visitPropertyExpression(PropertyExpression expression)
public void visitRangeExpression(RangeExpression expression)
public void visitReturnStatement(ReturnStatement statement)
public void visitSpreadExpression(SpreadExpression expression)
public void visitSpreadMapExpression(SpreadMapExpression expression)
protected void visitStatement(Statement statement)
public void visitStaticMethodCallExpression(StaticMethodCallExpression call)
public void visitSwitch(SwitchStatement statement)
public void visitSynchronizedStatement(SynchronizedStatement statement)
public void visitTernaryExpression(TernaryExpression expression)
public void visitThrowStatement(ThrowStatement statement)
public void visitTryCatchFinally(TryCatchStatement statement)
public void visitTupleExpression(TupleExpression expression)
public void visitUnaryMinusExpression(UnaryMinusExpression expression)
public void visitUnaryPlusExpression(UnaryPlusExpression expression)
public void visitVariableExpression(VariableExpression expression)
public void visitWhileLoop(WhileStatement loop)
Copyright © 2003-2013 The Codehaus. All rights reserved.