public class DeclarationScope extends ScopeImplBase
| Constructor and Description |
|---|
DeclarationScope(AstNode definingNode,
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() |
AstNode |
getDefiningNode() |
FunctionExpr |
getFunctionExpr() |
FunctionDeclaration |
getMethodDeclaration() |
PackageDeclaration |
getPackageDeclaration() |
DeclarationScope |
getPackageDeclarationScope() |
boolean |
isDeclared(Ide ide) |
boolean |
isPackage(String fullyQualifiedName) |
IdeDeclaration |
lookupDeclaration(Ide ide) |
void |
setIsInstanceScope(boolean b) |
getCurrentLoop, getCurrentLoopOrSwitch, getParentScope, lookupLabelpublic boolean isPackage(String fullyQualifiedName)
isPackage in interface ScopeisPackage in class ScopeImplBasepublic AstNode getDefiningNode()
getDefiningNode in interface ScopegetDefiningNode in class ScopeImplBasepublic void addImport(ImportDirective importDirective)
addImport in interface ScopeaddImport in class ScopeImplBasepublic IdeDeclaration declareIde(IdeDeclaration decl)
declareIde in interface ScopedeclareIde in class ScopeImplBasepublic IdeDeclaration lookupDeclaration(Ide ide)
lookupDeclaration in interface ScopelookupDeclaration in class ScopeImplBasepublic boolean isDeclared(Ide ide)
isDeclared in interface ScopeisDeclared in class ScopeImplBasepublic Ide findFreeAuxVar()
findFreeAuxVar in interface ScopefindFreeAuxVar in class ScopeImplBasepublic Ide createAuxVar(Scope lookupScope)
createAuxVar in interface ScopecreateAuxVar in class ScopeImplBasepublic CompilationUnit getCompilationUnit()
getCompilationUnit in interface ScopegetCompilationUnit in class ScopeImplBasepublic PackageDeclaration getPackageDeclaration()
getPackageDeclaration in interface ScopegetPackageDeclaration in class ScopeImplBasepublic ClassDeclaration getClassDeclaration()
getClassDeclaration in interface ScopegetClassDeclaration in class ScopeImplBasepublic DeclarationScope getPackageDeclarationScope()
getPackageDeclarationScope in interface ScopegetPackageDeclarationScope in class ScopeImplBasepublic FunctionDeclaration getMethodDeclaration()
getMethodDeclaration in interface ScopegetMethodDeclaration in class ScopeImplBasepublic FunctionExpr getFunctionExpr()
getFunctionExpr in interface ScopegetFunctionExpr in class ScopeImplBasepublic void setIsInstanceScope(boolean b)
Copyright © 2002–2015 CoreMedia AG. All rights reserved.