|
Groovy 1.7.0 | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.codehaus.groovy.ast.CodeVisitorSupport
org.codehaus.groovy.ast.ClassCodeVisitorSupport
org.codehaus.groovy.control.LabelVerifier
class LabelVerifier extends ClassCodeVisitorSupport
This class checks the handling of labels in the AST
Field Summary | |
---|---|
boolean |
inLoop
|
boolean |
inSwitch
|
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, hashCode, getClass, equals, toString, notify, notifyAll |
Field Detail |
---|
boolean inLoop
boolean inSwitch
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-2009 The Codehaus. All rights reserved.