public class LabelVerifier extends ClassCodeVisitorSupport
Constructor and Description |
---|
LabelVerifier(SourceUnit src) |
Modifier and Type | Method and Description |
---|---|
protected void |
assertNoLabelsMissed() |
protected SourceUnit |
getSourceUnit() |
void |
visitBreakStatement(BreakStatement statement) |
protected void |
visitClassCodeContainer(Statement code) |
void |
visitContinueStatement(ContinueStatement statement) |
void |
visitDoWhileLoop(DoWhileStatement loop) |
void |
visitForLoop(ForStatement forLoop) |
void |
visitStatement(Statement statement) |
void |
visitSwitch(SwitchStatement statement) |
void |
visitWhileLoop(WhileStatement loop) |
addError, visitAnnotations, visitAssertStatement, visitBlockStatement, visitCaseStatement, visitCatchStatement, visitClass, visitConstructor, visitConstructorOrMethod, visitDeclarationExpression, visitExpressionStatement, visitField, visitIfElse, visitImports, visitMethod, visitObjectInitializerStatements, visitPackage, visitProperty, visitReturnStatement, visitSynchronizedStatement, visitThrowStatement, visitTryCatchFinally
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 LabelVerifier(SourceUnit src)
protected SourceUnit getSourceUnit()
getSourceUnit
in class ClassCodeVisitorSupport
protected void visitClassCodeContainer(Statement code)
visitClassCodeContainer
in class ClassCodeVisitorSupport
public void visitStatement(Statement statement)
visitStatement
in class ClassCodeVisitorSupport
public void visitForLoop(ForStatement forLoop)
visitForLoop
in interface GroovyCodeVisitor
visitForLoop
in class ClassCodeVisitorSupport
public void visitDoWhileLoop(DoWhileStatement loop)
visitDoWhileLoop
in interface GroovyCodeVisitor
visitDoWhileLoop
in class ClassCodeVisitorSupport
public void visitWhileLoop(WhileStatement loop)
visitWhileLoop
in interface GroovyCodeVisitor
visitWhileLoop
in class ClassCodeVisitorSupport
public void visitBreakStatement(BreakStatement statement)
visitBreakStatement
in interface GroovyCodeVisitor
visitBreakStatement
in class ClassCodeVisitorSupport
public void visitContinueStatement(ContinueStatement statement)
visitContinueStatement
in interface GroovyCodeVisitor
visitContinueStatement
in class ClassCodeVisitorSupport
protected void assertNoLabelsMissed()
public void visitSwitch(SwitchStatement statement)
visitSwitch
in interface GroovyCodeVisitor
visitSwitch
in class ClassCodeVisitorSupport