Groovy 2.2.0

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, visitForLoop, visitSwitch, visitWhileLoop, visitDoWhileLoop, visitExpressionStatement, visitBlockStatement, visitPackage, visitClass, visitAnnotations, visitCatchStatement, visitIfElse, visitAssertStatement, visitCaseStatement, visitSynchronizedStatement, visitThrowStatement, visitImports, visitDeclarationExpression, visitBreakStatement, visitContinueStatement, visitTryCatchFinally, visitClassExpression, visitConstantExpression, visitListExpression, visitPropertyExpression, 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
visitClassExpression, visitConstantExpression, visitListExpression, visitReturnStatement, visitPropertyExpression, visitForLoop, visitSwitch, visitWhileLoop, visitDoWhileLoop, visitExpressionStatement, visitBlockStatement, visitCatchStatement, visitIfElse, visitAssertStatement, visitCaseStatement, visitSynchronizedStatement, visitThrowStatement, 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, 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.