Java Doc for AsmClassGenerator.java in  » Scripting » groovy-1.0 » org » codehaus » groovy » classgen » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Scripting » groovy 1.0 » org.codehaus.groovy.classgen 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.codehaus.groovy.classgen.ClassGenerator
   org.codehaus.groovy.classgen.AsmClassGenerator

AsmClassGenerator
public class AsmClassGenerator extends ClassGenerator (Code)
Generates Java class versions of Groovy classes using ASM.
author:
   James Strachan
author:
   Bing Ran
author:
   Jochen Theodorou
version:
   $Revision: 4598 $


Field Summary
final public static  booleanASM_DEBUG
    
final public static  booleanCREATE_DEBUG_INFO
    
final public static  booleanCREATE_LINE_NUMBER_INFO
    
 MethodCallerasTypeMethod
    
 MethodCallerassertFailedMethod
    
 MethodCallerbitNegation
    
 MethodCallercastToTypeMethod
    
 MethodCallercompareEqualMethod
    
 MethodCallercompareGreaterThanEqualMethod
    
 MethodCallercompareGreaterThanMethod
    
 MethodCallercompareIdenticalMethod
    
 MethodCallercompareLessThanEqualMethod
    
 MethodCallercompareLessThanMethod
    
 MethodCallercompareNotEqualMethod
    
 MethodCallercompareToMethod
    
 MethodCallercreateGroovyObjectWrapperMethod
    
 MethodCallercreateListMethod
    
 MethodCallercreateMapMethod
    
 MethodCallercreatePojoWrapperMethod
    
 MethodCallercreateRangeMethod
    
 MethodCallercreateTupleMethod
    
 MethodCallerdespreadList
    
 MethodCallerfindRegexMethod
    
 MethodCallerMultiAdaptergetField
    
 MethodCallerMultiAdaptergetFieldOnSuper
    
 MethodCallerMultiAdaptergetGroovyObjectField
    
 MethodCallerMultiAdaptergetGroovyObjectProperty
    
 MethodCallergetMethodPointer
    
 MethodCallerMultiAdaptergetProperty
    
 MethodCallerMultiAdaptergetPropertyOnSuper
    
 MethodCallerinvokeClosureMethod
    
 MethodCallerMultiAdapterinvokeMethod
    
 MethodCallerMultiAdapterinvokeMethodOnCurrent
     Notes for leftHandExpression: The default is false, that menas the right side is default. The right side means that variables are read and not written. Any change of leftHandExpression to true, should be made carefully. If such a change is needed, then it should be set to false as soon as possible, but most important in the same method.
 MethodCallerMultiAdapterinvokeMethodOnSuper
    
 MethodCallerMultiAdapterinvokeNew
    
 MethodCallerMultiAdapterinvokeStaticMethod
    
 MethodCallerisCaseMethod
    
 MethodCalleriteratorHasNextMethod
    
 MethodCalleriteratorNextMethod
    
 MethodCallermatchRegexMethod
    
 MethodCallernegation
    
 MethodCallerregexPattern
    
 MethodCallerselectConstructorAndTransformArguments
    
 MethodCallerMultiAdaptersetField
    
 MethodCallerMultiAdaptersetFieldOnSuper
    
 MethodCallerMultiAdaptersetGroovyObjectField
    
 MethodCallerMultiAdaptersetGroovyObjectProperty
    
 MethodCallerMultiAdaptersetProperty
    
 MethodCallerMultiAdaptersetPropertyOnSuper
    
 MethodCallerspreadMap
    

Constructor Summary
public  AsmClassGenerator(GeneratorContext context, ClassVisitor classVisitor, ClassLoader classLoader, String sourceFile)
    

Method Summary
protected  booleanaddInnerClass(ClassNode innerClass)
    
protected static  intargumentSize(Expression arguments)
    
protected  booleanargumentsUseStack(Expression arguments)
    
protected static  booleancontainsSpreadExpression(Expression arguments)
    
protected  ClassNodecreateClosureClass(ClosureExpression expression)
    
protected  ClassNodecreateGStringClass(GStringExpression expression)
    
protected  voidcreateInterfaceSyntheticStaticFields()
    
protected  ExpressioncreateReturnLHSExpression(Expression expression)
    
protected  ExpressioncreateReusableExpression(Expression expression)
    
protected  voidcreateSyntheticStaticFields()
    
protected  voiddoConvertAndCast(ClassNode type, Expression expression, boolean ignoreAutoboxing, boolean forceCast, boolean coerce)
    
protected  voiddoConvertAndCast(ClassNode type)
    
protected  voiddoConvertAndCast(ClassNode type, boolean coerce)
    
protected  booleanemptyArguments(Expression arguments)
    
protected  voidevaluateBinaryExpression(String method, BinaryExpression expression)
    
protected  voidevaluateBinaryExpressionWithAsignment(String method, BinaryExpression expression)
    
protected  voidevaluateCompareTo(BinaryExpression expression)
    
protected  voidevaluateEqual(BinaryExpression expression)
    
protected  voidevaluateExpression(Expression expression)
    
protected  voidevaluateInstanceof(BinaryExpression expression)
    
protected  voidevaluateLogicalAndExpression(BinaryExpression expression)
    
protected  voidevaluateLogicalOrExpression(BinaryExpression expression)
    
protected  voidevaluatePostfixMethod(String method, Expression expression)
    
protected  voidevaluatePrefixMethod(String method, Expression expression)
    
protected  Parameter[]getClosureSharedVariables(ClosureExpression ce)
    
protected  CompileUnitgetCompileUnit()
    
protected  ClassNodegetExpressionType(Expression expression)
    
protected  ClassNodegetLHSType(Expression leftExpression)
    
public static  StringgetMopMethodName(MethodNode method, boolean useThis)
    
protected  ClassNodegetOutermostClass()
    
protected  SourceUnitgetSourceUnit()
    
protected  booleanisComparisonExpression(Expression expression)
    
protected  booleanisFieldOrVariable(String name)
    
protected  booleanisGroovyObject(Expression objectExpression)
    
protected  booleanisHolderVariable(Expression expression)
    
protected  booleanisInClosure()
    
protected  booleanisInClosureConstructor()
    
protected  booleanisInScriptBody()
    
public static  booleanisMopMethod(String methodName)
     method to determine if a method is a MOP method.
protected  booleanisNonStaticField(Expression expression)
    
protected  booleanisPopRequired(Expression expression)
    
protected  booleanisStaticMethod()
    
protected  booleanisValidTypeForCast(ClassNode type)
    
public  voidloadInstanceField(FieldExpression fldExp)
     RHS instance field.
public  voidloadStaticField(FieldExpression fldExp)
    
protected  voidloadThisOrOwner()
    
protected  voidonLineNumber(ASTNode statement, String message)
    
protected  voidprocessClassVariable(String name)
    
protected  voidprocessFieldAccess(String name, FieldNode field, int steps)
    
protected  voidprocessStackVariable(Variable variable)
    
public  voidstoreStaticField(FieldExpression expression)
    
public  voidstoreThisInstanceField(FieldExpression expression)
    
public static  booleanusesSuper(MethodCallExpression call)
    
public static  booleanusesSuper(PropertyExpression pe)
    
protected  voidvisitAndAutoboxBoolean(Expression expression)
    
public  voidvisitAnnotations(AnnotatedNode node)
    
public  voidvisitArgumentlistExpression(ArgumentListExpression ale)
    
public  voidvisitArrayExpression(ArrayExpression expression)
    
public  voidvisitAssertStatement(AssertStatement statement)
    
public  voidvisitAttributeExpression(AttributeExpression expression)
    
public  voidvisitBinaryExpression(BinaryExpression expression)
    
public  voidvisitBitwiseNegExpression(BitwiseNegExpression expression)
    
public  voidvisitBlockStatement(BlockStatement block)
    
public  voidvisitBooleanExpression(BooleanExpression expression)
     return a primitive boolean value of the BooleanExpresion.
public  voidvisitBreakStatement(BreakStatement statement)
    
public  voidvisitCaseStatement(CaseStatement statement)
    
public  voidvisitCaseStatement(CaseStatement statement, int switchVariableIndex, Label thisLabel, Label nextLabel)
    
public  voidvisitCastExpression(CastExpression expression)
    
public  voidvisitClass(ClassNode classNode)
    
public  voidvisitClassExpression(ClassExpression expression)
    
public  voidvisitClosureExpression(ClosureExpression expression)
    
public  voidvisitConstantExpression(ConstantExpression expression)
    
public  voidvisitConstructor(ConstructorNode node)
    
public  voidvisitConstructorCallExpression(ConstructorCallExpression call)
    
protected  voidvisitConstructorOrMethod(MethodNode node, boolean isConstructor)
    
public  voidvisitContinueStatement(ContinueStatement statement)
    
public  voidvisitDeclarationExpression(DeclarationExpression expression)
    
public  voidvisitDoWhileLoop(DoWhileStatement loop)
    
public  voidvisitExpressionStatement(ExpressionStatement statement)
    
public  voidvisitField(FieldNode fieldNode)
    
public  voidvisitFieldExpression(FieldExpression expression)
    
public  voidvisitForLoop(ForStatement loop)
    
public  voidvisitGStringExpression(GStringExpression expression)
    
public  voidvisitIfElse(IfStatement ifElse)
    
public  voidvisitListExpression(ListExpression expression)
    
public  voidvisitMapEntryExpression(MapEntryExpression expression)
    
public  voidvisitMapExpression(MapExpression expression)
    
public  voidvisitMethod(MethodNode node)
    
public  voidvisitMethodCallExpression(MethodCallExpression call)
    
public  voidvisitMethodPointerExpression(MethodPointerExpression expression)
    
public  voidvisitNegationExpression(NegationExpression expression)
    
public  voidvisitNotExpression(NotExpression expression)
    
protected  voidvisitOuterFieldExpression(FieldExpression expression, ClassNode outerClassNode, int steps, boolean first)
    
public  voidvisitPostfixExpression(PostfixExpression expression)
    
public  voidvisitPrefixExpression(PrefixExpression expression)
    
public  voidvisitProperty(PropertyNode statement)
    
public  voidvisitPropertyExpression(PropertyExpression expression)
    
public  voidvisitRangeExpression(RangeExpression expression)
    
public  voidvisitRegexExpression(RegexExpression expression)
    
public  voidvisitReturnStatement(ReturnStatement statement)
    
public  voidvisitSpreadExpression(SpreadExpression expression)
    
public  voidvisitSpreadMapExpression(SpreadMapExpression expression)
    
protected  voidvisitStatement(Statement statement)
    
public  voidvisitStaticMethodCallExpression(StaticMethodCallExpression call)
    
public  voidvisitSwitch(SwitchStatement statement)
    
public  voidvisitSynchronizedStatement(SynchronizedStatement statement)
    
public  voidvisitTernaryExpression(TernaryExpression expression)
    
public  voidvisitThrowStatement(ThrowStatement statement)
    
public  voidvisitTryCatchFinally(TryCatchStatement statement)
    
public  voidvisitTupleExpression(TupleExpression expression)
    
public  voidvisitVariableExpression(VariableExpression expression)
     Visits a bare (unqualified) variable expression.
public  voidvisitWhileLoop(WhileStatement loop)
    

Field Detail
ASM_DEBUG
final public static boolean ASM_DEBUG(Code)



CREATE_DEBUG_INFO
final public static boolean CREATE_DEBUG_INFO(Code)



CREATE_LINE_NUMBER_INFO
final public static boolean CREATE_LINE_NUMBER_INFO(Code)



asTypeMethod
MethodCaller asTypeMethod(Code)



assertFailedMethod
MethodCaller assertFailedMethod(Code)



bitNegation
MethodCaller bitNegation(Code)



castToTypeMethod
MethodCaller castToTypeMethod(Code)



compareEqualMethod
MethodCaller compareEqualMethod(Code)



compareGreaterThanEqualMethod
MethodCaller compareGreaterThanEqualMethod(Code)



compareGreaterThanMethod
MethodCaller compareGreaterThanMethod(Code)



compareIdenticalMethod
MethodCaller compareIdenticalMethod(Code)



compareLessThanEqualMethod
MethodCaller compareLessThanEqualMethod(Code)



compareLessThanMethod
MethodCaller compareLessThanMethod(Code)



compareNotEqualMethod
MethodCaller compareNotEqualMethod(Code)



compareToMethod
MethodCaller compareToMethod(Code)



createGroovyObjectWrapperMethod
MethodCaller createGroovyObjectWrapperMethod(Code)



createListMethod
MethodCaller createListMethod(Code)



createMapMethod
MethodCaller createMapMethod(Code)



createPojoWrapperMethod
MethodCaller createPojoWrapperMethod(Code)



createRangeMethod
MethodCaller createRangeMethod(Code)



createTupleMethod
MethodCaller createTupleMethod(Code)



despreadList
MethodCaller despreadList(Code)



findRegexMethod
MethodCaller findRegexMethod(Code)



getField
MethodCallerMultiAdapter getField(Code)



getFieldOnSuper
MethodCallerMultiAdapter getFieldOnSuper(Code)



getGroovyObjectField
MethodCallerMultiAdapter getGroovyObjectField(Code)



getGroovyObjectProperty
MethodCallerMultiAdapter getGroovyObjectProperty(Code)



getMethodPointer
MethodCaller getMethodPointer(Code)



getProperty
MethodCallerMultiAdapter getProperty(Code)



getPropertyOnSuper
MethodCallerMultiAdapter getPropertyOnSuper(Code)



invokeClosureMethod
MethodCaller invokeClosureMethod(Code)



invokeMethod
MethodCallerMultiAdapter invokeMethod(Code)



invokeMethodOnCurrent
MethodCallerMultiAdapter invokeMethodOnCurrent(Code)
Notes for leftHandExpression: The default is false, that menas the right side is default. The right side means that variables are read and not written. Any change of leftHandExpression to true, should be made carefully. If such a change is needed, then it should be set to false as soon as possible, but most important in the same method. Setting leftHandExpression to false is needed for writing variables.



invokeMethodOnSuper
MethodCallerMultiAdapter invokeMethodOnSuper(Code)



invokeNew
MethodCallerMultiAdapter invokeNew(Code)



invokeStaticMethod
MethodCallerMultiAdapter invokeStaticMethod(Code)



isCaseMethod
MethodCaller isCaseMethod(Code)



iteratorHasNextMethod
MethodCaller iteratorHasNextMethod(Code)



iteratorNextMethod
MethodCaller iteratorNextMethod(Code)



matchRegexMethod
MethodCaller matchRegexMethod(Code)



negation
MethodCaller negation(Code)



regexPattern
MethodCaller regexPattern(Code)



selectConstructorAndTransformArguments
MethodCaller selectConstructorAndTransformArguments(Code)



setField
MethodCallerMultiAdapter setField(Code)



setFieldOnSuper
MethodCallerMultiAdapter setFieldOnSuper(Code)



setGroovyObjectField
MethodCallerMultiAdapter setGroovyObjectField(Code)



setGroovyObjectProperty
MethodCallerMultiAdapter setGroovyObjectProperty(Code)



setProperty
MethodCallerMultiAdapter setProperty(Code)



setPropertyOnSuper
MethodCallerMultiAdapter setPropertyOnSuper(Code)



spreadMap
MethodCaller spreadMap(Code)




Constructor Detail
AsmClassGenerator
public AsmClassGenerator(GeneratorContext context, ClassVisitor classVisitor, ClassLoader classLoader, String sourceFile)(Code)




Method Detail
addInnerClass
protected boolean addInnerClass(ClassNode innerClass)(Code)



argumentSize
protected static int argumentSize(Expression arguments)(Code)



argumentsUseStack
protected boolean argumentsUseStack(Expression arguments)(Code)
true if the given argument expression requires the stack, inwhich case the arguments are evaluated first, stored in thevariable stack and then reloaded to make a method call



containsSpreadExpression
protected static boolean containsSpreadExpression(Expression arguments)(Code)



createClosureClass
protected ClassNode createClosureClass(ClosureExpression expression)(Code)



createGStringClass
protected ClassNode createGStringClass(GStringExpression expression)(Code)



createInterfaceSyntheticStaticFields
protected void createInterfaceSyntheticStaticFields()(Code)



createReturnLHSExpression
protected Expression createReturnLHSExpression(Expression expression)(Code)
For assignment expressions, return a safe expression for the LHS we can use to return the value



createReusableExpression
protected Expression createReusableExpression(Expression expression)(Code)



createSyntheticStaticFields
protected void createSyntheticStaticFields()(Code)



doConvertAndCast
protected void doConvertAndCast(ClassNode type, Expression expression, boolean ignoreAutoboxing, boolean forceCast, boolean coerce)(Code)
Casts to the given type unless it can be determined that the cast is unnecessary



doConvertAndCast
protected void doConvertAndCast(ClassNode type)(Code)



doConvertAndCast
protected void doConvertAndCast(ClassNode type, boolean coerce)(Code)



emptyArguments
protected boolean emptyArguments(Expression arguments)(Code)



evaluateBinaryExpression
protected void evaluateBinaryExpression(String method, BinaryExpression expression)(Code)



evaluateBinaryExpressionWithAsignment
protected void evaluateBinaryExpressionWithAsignment(String method, BinaryExpression expression)(Code)



evaluateCompareTo
protected void evaluateCompareTo(BinaryExpression expression)(Code)



evaluateEqual
protected void evaluateEqual(BinaryExpression expression)(Code)



evaluateExpression
protected void evaluateExpression(Expression expression)(Code)

Parameters:
  expression -



evaluateInstanceof
protected void evaluateInstanceof(BinaryExpression expression)(Code)



evaluateLogicalAndExpression
protected void evaluateLogicalAndExpression(BinaryExpression expression)(Code)



evaluateLogicalOrExpression
protected void evaluateLogicalOrExpression(BinaryExpression expression)(Code)



evaluatePostfixMethod
protected void evaluatePostfixMethod(String method, Expression expression)(Code)



evaluatePrefixMethod
protected void evaluatePrefixMethod(String method, Expression expression)(Code)



getClosureSharedVariables
protected Parameter[] getClosureSharedVariables(ClosureExpression ce)(Code)



getCompileUnit
protected CompileUnit getCompileUnit()(Code)



getExpressionType
protected ClassNode getExpressionType(Expression expression)(Code)
if the type of the expression can be determined at compile timethen this method returns the type - otherwise null



getLHSType
protected ClassNode getLHSType(Expression leftExpression)(Code)
Deduces the type name required for some casting the type of the given (LHS) expression or null if it is java.lang.Object or it cannot be deduced



getMopMethodName
public static String getMopMethodName(MethodNode method, boolean useThis)(Code)
creates a MOP method name from a method
Parameters:
  method - the method to be called by the mop method
Parameters:
  useThis - if true, then it is a call on "this", "super" else the mop method name



getOutermostClass
protected ClassNode getOutermostClass()(Code)



getSourceUnit
protected SourceUnit getSourceUnit()(Code)



isComparisonExpression
protected boolean isComparisonExpression(Expression expression)(Code)



isFieldOrVariable
protected boolean isFieldOrVariable(String name)(Code)
true if the given name is a local variable or a field



isGroovyObject
protected boolean isGroovyObject(Expression objectExpression)(Code)



isHolderVariable
protected boolean isHolderVariable(Expression expression)(Code)



isInClosure
protected boolean isInClosure()(Code)



isInClosureConstructor
protected boolean isInClosureConstructor()(Code)



isInScriptBody
protected boolean isInScriptBody()(Code)
true if we are in a script body, where all variables declared are no longerlocal variables but are properties



isMopMethod
public static boolean isMopMethod(String methodName)(Code)
method to determine if a method is a MOP method. This is done by the method name. If the name starts with "this$" or "super$", then it is a MOP method
Parameters:
  methodName - name of the method to test true if the method is a MOP method



isNonStaticField
protected boolean isNonStaticField(Expression expression)(Code)
true if the given expression represents a non-static field



isPopRequired
protected boolean isPopRequired(Expression expression)(Code)
true if this expression will have left a value on the stackthat must be popped



isStaticMethod
protected boolean isStaticMethod()(Code)



isValidTypeForCast
protected boolean isValidTypeForCast(ClassNode type)(Code)



loadInstanceField
public void loadInstanceField(FieldExpression fldExp)(Code)
RHS instance field. should move most of the code in the BytecodeHelper
Parameters:
  fldExp -



loadStaticField
public void loadStaticField(FieldExpression fldExp)(Code)

Parameters:
  fldExp -



loadThisOrOwner
protected void loadThisOrOwner()(Code)
Loads either this object or if we're inside a closure then load the top level owner



onLineNumber
protected void onLineNumber(ASTNode statement, String message)(Code)



processClassVariable
protected void processClassVariable(String name)(Code)



processFieldAccess
protected void processFieldAccess(String name, FieldNode field, int steps)(Code)



processStackVariable
protected void processStackVariable(Variable variable)(Code)



storeStaticField
public void storeStaticField(FieldExpression expression)(Code)



storeThisInstanceField
public void storeThisInstanceField(FieldExpression expression)(Code)



usesSuper
public static boolean usesSuper(MethodCallExpression call)(Code)



usesSuper
public static boolean usesSuper(PropertyExpression pe)(Code)



visitAndAutoboxBoolean
protected void visitAndAutoboxBoolean(Expression expression)(Code)



visitAnnotations
public void visitAnnotations(AnnotatedNode node)(Code)



visitArgumentlistExpression
public void visitArgumentlistExpression(ArgumentListExpression ale)(Code)



visitArrayExpression
public void visitArrayExpression(ArrayExpression expression)(Code)



visitAssertStatement
public void visitAssertStatement(AssertStatement statement)(Code)



visitAttributeExpression
public void visitAttributeExpression(AttributeExpression expression)(Code)



visitBinaryExpression
public void visitBinaryExpression(BinaryExpression expression)(Code)



visitBitwiseNegExpression
public void visitBitwiseNegExpression(BitwiseNegExpression expression)(Code)



visitBlockStatement
public void visitBlockStatement(BlockStatement block)(Code)



visitBooleanExpression
public void visitBooleanExpression(BooleanExpression expression)(Code)
return a primitive boolean value of the BooleanExpresion.
Parameters:
  expression -



visitBreakStatement
public void visitBreakStatement(BreakStatement statement)(Code)



visitCaseStatement
public void visitCaseStatement(CaseStatement statement)(Code)



visitCaseStatement
public void visitCaseStatement(CaseStatement statement, int switchVariableIndex, Label thisLabel, Label nextLabel)(Code)



visitCastExpression
public void visitCastExpression(CastExpression expression)(Code)



visitClass
public void visitClass(ClassNode classNode)(Code)



visitClassExpression
public void visitClassExpression(ClassExpression expression)(Code)
load class object on stack



visitClosureExpression
public void visitClosureExpression(ClosureExpression expression)(Code)



visitConstantExpression
public void visitConstantExpression(ConstantExpression expression)(Code)
Generate byte code for constants
See Also:    Class field types



visitConstructor
public void visitConstructor(ConstructorNode node)(Code)



visitConstructorCallExpression
public void visitConstructorCallExpression(ConstructorCallExpression call)(Code)



visitConstructorOrMethod
protected void visitConstructorOrMethod(MethodNode node, boolean isConstructor)(Code)



visitContinueStatement
public void visitContinueStatement(ContinueStatement statement)(Code)



visitDeclarationExpression
public void visitDeclarationExpression(DeclarationExpression expression)(Code)



visitDoWhileLoop
public void visitDoWhileLoop(DoWhileStatement loop)(Code)



visitExpressionStatement
public void visitExpressionStatement(ExpressionStatement statement)(Code)



visitField
public void visitField(FieldNode fieldNode)(Code)



visitFieldExpression
public void visitFieldExpression(FieldExpression expression)(Code)



visitForLoop
public void visitForLoop(ForStatement loop)(Code)



visitGStringExpression
public void visitGStringExpression(GStringExpression expression)(Code)



visitIfElse
public void visitIfElse(IfStatement ifElse)(Code)



visitListExpression
public void visitListExpression(ListExpression expression)(Code)



visitMapEntryExpression
public void visitMapEntryExpression(MapEntryExpression expression)(Code)



visitMapExpression
public void visitMapExpression(MapExpression expression)(Code)



visitMethod
public void visitMethod(MethodNode node)(Code)



visitMethodCallExpression
public void visitMethodCallExpression(MethodCallExpression call)(Code)



visitMethodPointerExpression
public void visitMethodPointerExpression(MethodPointerExpression expression)(Code)



visitNegationExpression
public void visitNegationExpression(NegationExpression expression)(Code)



visitNotExpression
public void visitNotExpression(NotExpression expression)(Code)



visitOuterFieldExpression
protected void visitOuterFieldExpression(FieldExpression expression, ClassNode outerClassNode, int steps, boolean first)(Code)



visitPostfixExpression
public void visitPostfixExpression(PostfixExpression expression)(Code)



visitPrefixExpression
public void visitPrefixExpression(PrefixExpression expression)(Code)



visitProperty
public void visitProperty(PropertyNode statement)(Code)



visitPropertyExpression
public void visitPropertyExpression(PropertyExpression expression)(Code)



visitRangeExpression
public void visitRangeExpression(RangeExpression expression)(Code)



visitRegexExpression
public void visitRegexExpression(RegexExpression expression)(Code)



visitReturnStatement
public void visitReturnStatement(ReturnStatement statement)(Code)



visitSpreadExpression
public void visitSpreadExpression(SpreadExpression expression)(Code)



visitSpreadMapExpression
public void visitSpreadMapExpression(SpreadMapExpression expression)(Code)



visitStatement
protected void visitStatement(Statement statement)(Code)



visitStaticMethodCallExpression
public void visitStaticMethodCallExpression(StaticMethodCallExpression call)(Code)



visitSwitch
public void visitSwitch(SwitchStatement statement)(Code)



visitSynchronizedStatement
public void visitSynchronizedStatement(SynchronizedStatement statement)(Code)



visitTernaryExpression
public void visitTernaryExpression(TernaryExpression expression)(Code)



visitThrowStatement
public void visitThrowStatement(ThrowStatement statement)(Code)



visitTryCatchFinally
public void visitTryCatchFinally(TryCatchStatement statement)(Code)



visitTupleExpression
public void visitTupleExpression(TupleExpression expression)(Code)



visitVariableExpression
public void visitVariableExpression(VariableExpression expression)(Code)
Visits a bare (unqualified) variable expression.



visitWhileLoop
public void visitWhileLoop(WhileStatement loop)(Code)



Fields inherited from org.codehaus.groovy.classgen.ClassGenerator
final public static int asmJDKVersion(Code)(Java Doc)
protected ClassLoader classLoader(Code)(Java Doc)
protected LinkedList innerClasses(Code)(Java Doc)

Methods inherited from org.codehaus.groovy.classgen.ClassGenerator
public ClassLoader getClassLoader()(Code)(Java Doc)
public LinkedList getInnerClasses()(Code)(Java Doc)
protected SourceUnit getSourceUnit()(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.