[Java] Class LabelVerifier
- org.codehaus.groovy.control.LabelVerifier
This class checks the handling of labels in the AST
- Authors:
- Jochen Theodorou
Constructor Summary
Constructor and description |
---|
LabelVerifier
(SourceUnit src) |
Methods Summary
Type Params | Return Type | Name 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) |
Inherited Methods Summary
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)
© 2003-2020 The Apache Software Foundation
Licensed under the Apache license.
https://docs.groovy-lang.org/2.4.21/html/gapi/org/codehaus/groovy/control/LabelVerifier.html