|
Groovy 2.2.0 | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.codehaus.groovy.ast.CodeVisitorSupport org.codehaus.groovy.ast.ClassCodeVisitorSupport org.codehaus.groovy.control.LabelVerifier
public class LabelVerifier extends ClassCodeVisitorSupport
This class checks the handling of labels in the AST
Constructor Summary | |
LabelVerifier(SourceUnit src)
|
Method Summary | |
---|---|
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)
|
Methods inherited from class Object | |
---|---|
wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll |
Constructor Detail |
---|
public LabelVerifier(SourceUnit src)
Method Detail |
---|
protected void assertNoLabelsMissed()
protected SourceUnit getSourceUnit()
public void visitBreakStatement(BreakStatement statement)
protected void visitClassCodeContainer(Statement code)
public void visitContinueStatement(ContinueStatement statement)
public void visitDoWhileLoop(DoWhileStatement loop)
public void visitForLoop(ForStatement forLoop)
public void visitStatement(Statement statement)
public void visitSwitch(SwitchStatement statement)
public void visitWhileLoop(WhileStatement loop)
Copyright © 2003-2013 The Codehaus. All rights reserved.