Package net.jangaroo.jooc.ast
Class LabelScope
- java.lang.Object
-
- net.jangaroo.jooc.AbstractScope
-
- net.jangaroo.jooc.ast.LabelScope
-
- All Implemented Interfaces:
Scope
public class LabelScope extends AbstractScope
-
-
Constructor Summary
Constructors Constructor Description LabelScope(Statement statement, Scope parent)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LoopStatementgetCurrentLoop()StatementgetCurrentLoopOrSwitch()LabeledStatementlookupLabel(Ide ide)-
Methods inherited from class net.jangaroo.jooc.AbstractScope
addImport, createAuxVar, declareIde, findArrayElementTypeInSuperTypes, findFreeAuxVar, getClassDeclaration, getClassDeclaration, getCompilationUnit, getCompiler, getDefiningNode, getExpressionType, getExpressionType, getExpressionType, getFunctionExpr, getFunctionSignature, getMethodDeclaration, getPackageDeclaration, getPackageDeclarationScope, getParentScope, isDeclared, isPackage, lookupDeclaration, lookupDeclaration
-
-
-
-
Method Detail
-
lookupLabel
public LabeledStatement lookupLabel(Ide ide)
- Specified by:
lookupLabelin interfaceScope- Overrides:
lookupLabelin classAbstractScope
-
getCurrentLoop
public LoopStatement getCurrentLoop()
- Specified by:
getCurrentLoopin interfaceScope- Overrides:
getCurrentLoopin classAbstractScope
-
getCurrentLoopOrSwitch
public Statement getCurrentLoopOrSwitch()
- Specified by:
getCurrentLoopOrSwitchin interfaceScope- Overrides:
getCurrentLoopOrSwitchin classAbstractScope
-
-