|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.codehaus.groovy.ast.CodeVisitorSupport org.codehaus.groovy.classgen.VerifierCodeVisitor
public class VerifierCodeVisitor extends CodeVisitorSupport
Performs various checks on code inside methods and constructors including checking for valid field, variables names etc. that would otherwise lead to invalid code.
Method Summary | |
---|---|
static void
|
assertValidIdentifier(java.lang.String name, java.lang.String message, ASTNode node)
|
void
|
visitConstructorCallExpression(ConstructorCallExpression call)
|
void
|
visitFieldExpression(FieldExpression expression)
|
void
|
visitForLoop(ForStatement expression)
|
void
|
visitListExpression(ListExpression expression)
|
void
|
visitVariableExpression(VariableExpression expression)
|
Methods inherited from class java.lang.Object | |
---|---|
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Method Detail |
---|
public static void assertValidIdentifier(java.lang.String name, java.lang.String message, ASTNode node)
public void visitConstructorCallExpression(ConstructorCallExpression call)
public void visitFieldExpression(FieldExpression expression)
public void visitForLoop(ForStatement expression)
public void visitListExpression(ListExpression expression)
public void visitVariableExpression(VariableExpression expression)
Groovy Documentation