Package org.codehaus.groovy.classgen
Generates Java classes for Groovy classes using ASM.
-
Interface Summary Interface Description FinalVariableAnalyzer.VariableNotFinalCallback ReturnAdder.ReturnStatementListener Implement this method in order to be notified whenever a return statement is generated.Verifier.DefaultArgsAction -
Class Summary Class Description AnnotationVisitor An Annotation visitor responsible for: reading annotation metadata (@Retention, @Target, attribute types) verify that anAnnotationNode
conforms to annotation meta enhancing anAnnotationNode
AST to reflect real annotation metaAsmClassGenerator Generates Java class versions of Groovy classes using ASM.BytecodeExpression Represents some custom bytecode generation by the compilerBytecodeInstruction Helper class used by the class generator.BytecodeSequence This class represents a sequence of BytecodeInstructions or ASTNodes.ClassCompletionVerifier Checks that a class satisfies various conditions including: Incorrect class or method access modifiers No abstract methods appear in a non-abstract class Existence and correct visibility for inherited members Invalid attempts to override final membersClassGenerator Abstract base class for generator of Java class versions of Groovy AST classesDummyClassGenerator To generate a class that has all the fields and methods, except that fields are not initialized and methods are empty.EnumCompletionVisitor Enums have a parent constructor with two arguments from java.lang.Enum.EnumVisitor ExtendedVerifier A specialized Groovy AST visitor meant to perform additional verifications upon the current AST.FinalVariableAnalyzer GeneratorContext A context shared across generations of a class and its inner classesInnerClassCompletionVisitor InnerClassVisitor InnerClassVisitorHelper ReturnAdder Utility class to add return statements.VariableScopeVisitor Initializes the variable scopes for an AST.Verifier Verifies the AST node and adds any default AST code before bytecode generation occurs.VerifierCodeVisitor Performs various checks on code inside methods and constructors including checking for valid field, variables names etc. -
Exception Summary Exception Description ClassGeneratorException An exception thrown by the class generator