public abstract class ScopeImplBase extends Object implements Scope
| Constructor and Description |
|---|
ScopeImplBase(Scope parent) |
| Modifier and Type | Method and Description |
|---|---|
void |
addImport(ImportDirective importDirective) |
Ide |
createAuxVar(Scope lookupScope) |
IdeDeclaration |
declareIde(IdeDeclaration decl) |
Ide |
findFreeAuxVar() |
ClassDeclaration |
getClassDeclaration() |
CompilationUnit |
getCompilationUnit() |
LoopStatement |
getCurrentLoop() |
Statement |
getCurrentLoopOrSwitch() |
AstNode |
getDefiningNode() |
FunctionExpr |
getFunctionExpr() |
FunctionDeclaration |
getMethodDeclaration() |
PackageDeclaration |
getPackageDeclaration() |
DeclarationScope |
getPackageDeclarationScope() |
Scope |
getParentScope() |
boolean |
isDeclared(Ide ide) |
boolean |
isPackage(String fullyQualifiedName) |
IdeDeclaration |
lookupDeclaration(Ide ide) |
LabeledStatement |
lookupLabel(Ide ide) |
public ScopeImplBase(Scope parent)
public Scope getParentScope()
getParentScope in interface Scopepublic void addImport(ImportDirective importDirective)
public AstNode getDefiningNode()
getDefiningNode in interface Scopepublic IdeDeclaration declareIde(IdeDeclaration decl)
declareIde in interface Scopepublic LabeledStatement lookupLabel(Ide ide)
lookupLabel in interface Scopepublic IdeDeclaration lookupDeclaration(Ide ide)
lookupDeclaration in interface Scopepublic boolean isDeclared(Ide ide)
isDeclared in interface Scopepublic Ide findFreeAuxVar()
findFreeAuxVar in interface Scopepublic Ide createAuxVar(Scope lookupScope)
createAuxVar in interface Scopepublic LoopStatement getCurrentLoop()
getCurrentLoop in interface Scopepublic Statement getCurrentLoopOrSwitch()
getCurrentLoopOrSwitch in interface Scopepublic CompilationUnit getCompilationUnit()
getCompilationUnit in interface Scopepublic PackageDeclaration getPackageDeclaration()
getPackageDeclaration in interface Scopepublic ClassDeclaration getClassDeclaration()
getClassDeclaration in interface Scopepublic DeclarationScope getPackageDeclarationScope()
getPackageDeclarationScope in interface Scopepublic FunctionDeclaration getMethodDeclaration()
getMethodDeclaration in interface Scopepublic FunctionExpr getFunctionExpr()
getFunctionExpr in interface ScopeCopyright © 2002–2016 CoreMedia AG. All rights reserved.