[Java] Class LabelVerifier
- org.codehaus.groovy.control.LabelVerifier
public class LabelVerifier extends ClassCodeVisitorSupport
This class checks the handling of labels in the AST
Constructor Summary
Constructor and description |
---|
LabelVerifier
(SourceUnit src) |
Methods Summary
Type Params | Return Type | Name and description |
---|---|---|
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) |
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/3.0.7/html/gapi/org/codehaus/groovy/control/LabelVerifier.html