|
Groovy Documentation | |||||||
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 java.lang.Object | |
---|---|
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#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)
Groovy Documentation