Groovy 2.2.1

org.codehaus.groovy.control
[Java] Class StaticVerifier

java.lang.Object
  org.codehaus.groovy.ast.CodeVisitorSupport
      org.codehaus.groovy.ast.ClassCodeVisitorSupport
          org.codehaus.groovy.control.StaticVerifier

public class StaticVerifier
extends ClassCodeVisitorSupport

Verifier to check non-static access in static contexts

Authors:
Jochen Theodorou
Paul King
Roshan Dawrani


Method Summary
protected SourceUnit getSourceUnit()

void visitClass(ClassNode node, SourceUnit source)

void visitClosureExpression(ClosureExpression ce)

void visitConstructorCallExpression(ConstructorCallExpression cce)

void visitConstructorOrMethod(MethodNode node, boolean isConstructor)

void visitMethodCallExpression(MethodCallExpression mce)

void visitPropertyExpression(PropertyExpression pe)

void visitVariableExpression(VariableExpression ve)

 
Methods inherited from class ClassCodeVisitorSupport
visitMethod, visitField, visitReturnStatement, visitProperty, visitConstructor, visitClass, visitPackage, visitBlockStatement, visitDoWhileLoop, visitExpressionStatement, visitForLoop, visitSwitch, visitWhileLoop, visitDeclarationExpression, visitImports, visitBreakStatement, visitContinueStatement, visitTryCatchFinally, visitAnnotations, visitCatchStatement, visitIfElse, visitAssertStatement, visitCaseStatement, visitSynchronizedStatement, visitThrowStatement, visitClassExpression, visitPropertyExpression, visitListExpression, visitConstantExpression, visitMethodCallExpression, visitStaticMethodCallExpression, visitConstructorCallExpression, visitBinaryExpression, visitTernaryExpression, visitShortTernaryExpression, visitPostfixExpression, visitPrefixExpression, visitBooleanExpression, visitNotExpression, visitClosureExpression, visitTupleExpression, visitArrayExpression, visitMapExpression, visitMapEntryExpression, visitRangeExpression, visitSpreadExpression, visitSpreadMapExpression, visitMethodPointerExpression, visitUnaryMinusExpression, visitUnaryPlusExpression, visitBitwiseNegationExpression, visitCastExpression, visitVariableExpression, visitAttributeExpression, visitFieldExpression, visitGStringExpression, visitArgumentlistExpression, visitClosureListExpression, visitBytecodeExpression, wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll
 
Methods inherited from class CodeVisitorSupport
visitReturnStatement, visitClassExpression, visitPropertyExpression, visitListExpression, visitConstantExpression, visitBlockStatement, visitDoWhileLoop, visitExpressionStatement, visitForLoop, visitSwitch, visitWhileLoop, visitDeclarationExpression, visitBreakStatement, visitContinueStatement, visitTryCatchFinally, visitMethodCallExpression, visitStaticMethodCallExpression, visitConstructorCallExpression, visitBinaryExpression, visitTernaryExpression, visitShortTernaryExpression, visitPostfixExpression, visitPrefixExpression, visitBooleanExpression, visitNotExpression, visitClosureExpression, visitTupleExpression, visitArrayExpression, visitMapExpression, visitMapEntryExpression, visitRangeExpression, visitSpreadExpression, visitSpreadMapExpression, visitMethodPointerExpression, visitUnaryMinusExpression, visitUnaryPlusExpression, visitBitwiseNegationExpression, visitCastExpression, visitVariableExpression, visitAttributeExpression, visitFieldExpression, visitGStringExpression, visitArgumentlistExpression, visitClosureListExpression, visitBytecodeExpression, visitCatchStatement, visitIfElse, visitAssertStatement, visitCaseStatement, visitSynchronizedStatement, visitThrowStatement, wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll
 

Method Detail

getSourceUnit

@Override
protected SourceUnit getSourceUnit()


visitClass

public void visitClass(ClassNode node, SourceUnit source)


visitClosureExpression

@Override
public void visitClosureExpression(ClosureExpression ce)


visitConstructorCallExpression

@Override
public void visitConstructorCallExpression(ConstructorCallExpression cce)


visitConstructorOrMethod

@Override
public void visitConstructorOrMethod(MethodNode node, boolean isConstructor)


visitMethodCallExpression

@Override
public void visitMethodCallExpression(MethodCallExpression mce)


visitPropertyExpression

@Override
public void visitPropertyExpression(PropertyExpression pe)


visitVariableExpression

@Override
public void visitVariableExpression(VariableExpression ve)


 

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