Package net.jangaroo.jooc.ast
Class LabelRefStatement
-
- All Implemented Interfaces:
AstNode
- Direct Known Subclasses:
BreakStatement,ContinueStatement
public abstract class LabelRefStatement extends KeywordExprStatement
A LabelRefStatement is either a break or continue statement- Author:
- Andreas Gawecki
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class net.jangaroo.jooc.ast.NodeImplBase
NodeImplBase.Scoped
-
-
Field Summary
-
Fields inherited from class net.jangaroo.jooc.ast.NodeImplBase
usesInstanceThis
-
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract voidcheckValidLabeledStatement(LabeledStatement labelDeclaration)List<? extends AstNode>getChildren()LabeledStatementgetLabelDeclaration()IdegetOptLabel()voidscope(Scope scope)voidsetLabelDeclaration(LabeledStatement labelDeclaration)-
Methods inherited from class net.jangaroo.jooc.ast.KeywordExprStatement
getOptExpr, getSymbol, getSymKeyword
-
Methods inherited from class net.jangaroo.jooc.ast.SemicolonTerminatedStatement
analyze, getOptStatement, getOptSymSemicolon, setOptStatement, setOptSymSemicolon, visit
-
Methods inherited from class net.jangaroo.jooc.ast.Directive
isClassMember, isStatic, setClassMember
-
Methods inherited from class net.jangaroo.jooc.ast.NodeImplBase
analyze, getParentNode, isAssignmentLHS, makeChildren, notifyInstanceThisUsed, propagateInstanceThisUsed, scope, usesInstanceThis, withNewDeclarationScope, withNewLabelScope
-
-
-
-
Method Detail
-
getChildren
public List<? extends AstNode> getChildren()
- Specified by:
getChildrenin interfaceAstNode- Overrides:
getChildrenin classSemicolonTerminatedStatement
-
scope
public void scope(Scope scope)
- Specified by:
scopein interfaceAstNode- Overrides:
scopein classSemicolonTerminatedStatement
-
checkValidLabeledStatement
protected abstract void checkValidLabeledStatement(LabeledStatement labelDeclaration)
-
getOptLabel
public Ide getOptLabel()
-
getLabelDeclaration
public LabeledStatement getLabelDeclaration()
-
setLabelDeclaration
public void setLabelDeclaration(LabeledStatement labelDeclaration)
-
-