|
Groovy 1.7.0 | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.codehaus.groovy.classgen.Verifier
class Verifier extends Object
Verifies the AST node and adds any defaulted AST code before bytecode generation occurs.
Nested Class Summary | |
---|---|
interface |
Verifier.DefaultArgsAction
|
Field Summary | |
---|---|
static String |
__TIMESTAMP
|
static String |
__TIMESTAMP__
|
Constructor Summary | |
Verifier()
|
Method Summary | |
---|---|
protected void
|
addClosureCode(InnerClassNode node)
|
protected void
|
addCovariantMethods(ClassNode classNode)
|
protected void
|
addDefaultParameterConstructors(ClassNode node)
|
protected void
|
addDefaultParameterMethods(ClassNode node)
Creates a new helper method for each combination of default parameter expressions |
protected void
|
addDefaultParameters(List methods, DefaultArgsAction action)
Creates a new helper method for each combination of default parameter expressions |
protected void
|
addFieldInitialization(List list, List staticList, FieldNode fieldNode, boolean isEnumClassNode, List initStmtsAfterEnumValuesInit, Set explicitStaticPropsInEnum)
|
protected void
|
addInitialization(ClassNode node)
|
protected void
|
addInitialization(ClassNode node, ConstructorNode constructorNode)
|
protected void
|
addPropertyMethod(MethodNode method)
|
protected void
|
addReturnIfNeeded(MethodNode node)
|
protected void
|
addTimeStamp(ClassNode node)
|
static String
|
capitalize(String name)
Capitalizes the start of the given bean property name |
protected Statement
|
createGetterBlock(PropertyNode propertyNode, FieldNode field)
|
protected Statement
|
createSetterBlock(PropertyNode propertyNode, FieldNode field)
|
ClassNode
|
getClassNode()
|
MethodNode
|
getMethodNode()
|
static long
|
getTimestamp(Class clazz)
|
void
|
visitClass(ClassNode node)
add code to implement GroovyObject |
void
|
visitConstructor(ConstructorNode node)
|
void
|
visitField(FieldNode node)
|
void
|
visitGenericType(GenericsType genericsType)
|
void
|
visitMethod(MethodNode node)
|
void
|
visitProperty(PropertyNode node)
|
Methods inherited from class Object | |
---|---|
wait, wait, wait, hashCode, getClass, equals, toString, notify, notifyAll |
Field Detail |
---|
static final String __TIMESTAMP
static final String __TIMESTAMP__
Constructor Detail |
---|
Verifier()
Method Detail |
---|
protected void addClosureCode(InnerClassNode node)
protected void addCovariantMethods(ClassNode classNode)
protected void addDefaultParameterConstructors(ClassNode node)
protected void addDefaultParameterMethods(ClassNode node)
protected void addDefaultParameters(List methods, DefaultArgsAction action)
protected void addFieldInitialization(List list, List staticList, FieldNode fieldNode, boolean isEnumClassNode, List initStmtsAfterEnumValuesInit, Set explicitStaticPropsInEnum)
protected void addInitialization(ClassNode node)
protected void addInitialization(ClassNode node, ConstructorNode constructorNode)
protected void addPropertyMethod(MethodNode method)
protected void addReturnIfNeeded(MethodNode node)
protected void addTimeStamp(ClassNode node)
public static String capitalize(String name)
protected Statement createGetterBlock(PropertyNode propertyNode, FieldNode field)
protected Statement createSetterBlock(PropertyNode propertyNode, FieldNode field)
public ClassNode getClassNode()
public MethodNode getMethodNode()
public static long getTimestamp(Class clazz)
public void visitClass(ClassNode node)
public void visitConstructor(ConstructorNode node)
public void visitField(FieldNode node)
public void visitGenericType(GenericsType genericsType)
public void visitMethod(MethodNode node)
public void visitProperty(PropertyNode node)
Copyright © 2003-2009 The Codehaus. All rights reserved.