public class ExtendedVerifier extends ClassCodeVisitorSupport implements GroovyClassVisitor
Current limitations: - annotations on local variables are not supported
Modifier and Type | Field and Description |
---|---|
static String |
JVM_ERROR_MESSAGE |
Constructor and Description |
---|
ExtendedVerifier(SourceUnit sourceUnit) |
Modifier and Type | Method and Description |
---|---|
protected void |
addError(String msg,
ASTNode expr) |
protected SourceUnit |
getSourceUnit() |
protected boolean |
isAnnotationCompatible()
Check if the current runtime allows Annotation usage.
|
protected void |
visitAnnotations(AnnotatedNode node,
int target) |
void |
visitClass(ClassNode node)
Visit a ClassNode.
|
void |
visitConstructor(ConstructorNode node)
Visit a ConstructorNode.
|
void |
visitDeclarationExpression(DeclarationExpression expression) |
void |
visitField(FieldNode node)
Visit a FieldNode.
|
void |
visitGenericType(GenericsType genericsType) |
void |
visitMethod(MethodNode node)
Visit a MethodNode.
|
void |
visitProperty(PropertyNode node)
Visit a PropertyNode.
|
visitAnnotations, visitAssertStatement, visitBlockStatement, visitBreakStatement, visitCaseStatement, visitCatchStatement, visitClassCodeContainer, visitConstructorOrMethod, visitContinueStatement, visitDoWhileLoop, visitExpressionStatement, visitForLoop, visitIfElse, visitImports, visitObjectInitializerStatements, visitPackage, visitReturnStatement, visitStatement, visitSwitch, visitSynchronizedStatement, visitThrowStatement, visitTryCatchFinally, visitWhileLoop
visitArgumentlistExpression, visitArrayExpression, visitAttributeExpression, visitBinaryExpression, visitBitwiseNegationExpression, visitBooleanExpression, visitBytecodeExpression, visitCastExpression, visitClassExpression, visitClosureExpression, visitClosureListExpression, visitConstantExpression, visitConstructorCallExpression, visitEmptyStatement, visitFieldExpression, visitGStringExpression, visitListExpression, visitListOfExpressions, visitMapEntryExpression, visitMapExpression, visitMethodCallExpression, visitMethodPointerExpression, visitNotExpression, visitPostfixExpression, visitPrefixExpression, visitPropertyExpression, visitRangeExpression, visitShortTernaryExpression, visitSpreadExpression, visitSpreadMapExpression, visitStaticMethodCallExpression, visitTernaryExpression, visitTupleExpression, visitUnaryMinusExpression, visitUnaryPlusExpression, visitVariableExpression
public static final String JVM_ERROR_MESSAGE
public ExtendedVerifier(SourceUnit sourceUnit)
public void visitClass(ClassNode node)
GroovyClassVisitor
visitClass
in interface GroovyClassVisitor
visitClass
in class ClassCodeVisitorSupport
public void visitField(FieldNode node)
GroovyClassVisitor
visitField
in interface GroovyClassVisitor
visitField
in class ClassCodeVisitorSupport
public void visitDeclarationExpression(DeclarationExpression expression)
visitDeclarationExpression
in interface GroovyCodeVisitor
visitDeclarationExpression
in class ClassCodeVisitorSupport
public void visitConstructor(ConstructorNode node)
GroovyClassVisitor
visitConstructor
in interface GroovyClassVisitor
visitConstructor
in class ClassCodeVisitorSupport
public void visitMethod(MethodNode node)
GroovyClassVisitor
visitMethod
in interface GroovyClassVisitor
visitMethod
in class ClassCodeVisitorSupport
public void visitProperty(PropertyNode node)
GroovyClassVisitor
visitProperty
in interface GroovyClassVisitor
visitProperty
in class ClassCodeVisitorSupport
protected void visitAnnotations(AnnotatedNode node, int target)
protected boolean isAnnotationCompatible()
protected void addError(String msg, ASTNode expr)
addError
in class ClassCodeVisitorSupport
protected SourceUnit getSourceUnit()
getSourceUnit
in class ClassCodeVisitorSupport
public void visitGenericType(GenericsType genericsType)