Groovy 2.2.0

org.codehaus.groovy.classgen
[Java] Class VerifierCodeVisitor

java.lang.Object
  org.codehaus.groovy.ast.CodeVisitorSupport
      org.codehaus.groovy.classgen.VerifierCodeVisitor
All Implemented Interfaces:
org.objectweb.asm.Opcodes

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.

Authors:
James Strachan
Version:
\$Revision\$


Method Summary
static void assertValidIdentifier(String name, 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 CodeVisitorSupport
visitArgumentlistExpression, visitArrayExpression, visitAssertStatement, visitAttributeExpression, visitBinaryExpression, visitBitwiseNegationExpression, visitBlockStatement, visitBooleanExpression, visitBreakStatement, visitBytecodeExpression, visitCaseStatement, visitCastExpression, visitCatchStatement, visitClassExpression, visitClosureExpression, visitClosureListExpression, visitConstantExpression, visitConstructorCallExpression, visitContinueStatement, visitDeclarationExpression, visitDoWhileLoop, visitEmptyStatement, visitExpressionStatement, visitFieldExpression, visitForLoop, visitGStringExpression, visitIfElse, visitListExpression, visitListOfExpressions, visitMapEntryExpression, visitMapExpression, visitMethodCallExpression, visitMethodPointerExpression, visitNotExpression, visitPostfixExpression, visitPrefixExpression, visitPropertyExpression, visitRangeExpression, visitReturnStatement, visitShortTernaryExpression, visitSpreadExpression, visitSpreadMapExpression, visitStaticMethodCallExpression, visitSwitch, visitSynchronizedStatement, visitTernaryExpression, visitThrowStatement, visitTryCatchFinally, visitTupleExpression, visitUnaryMinusExpression, visitUnaryPlusExpression, visitVariableExpression, visitWhileLoop
 
Methods inherited from class Object
wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll
 

Method Detail

assertValidIdentifier

public static void assertValidIdentifier(String name, String message, ASTNode node)


visitConstructorCallExpression

public void visitConstructorCallExpression(ConstructorCallExpression call)


visitFieldExpression

public void visitFieldExpression(FieldExpression expression)


visitForLoop

public void visitForLoop(ForStatement expression)


visitListExpression

public void visitListExpression(ListExpression expression)


visitVariableExpression

public void visitVariableExpression(VariableExpression expression)


 

Copyright © 2003-2013 The Codehaus. All rights reserved.