net.jangaroo.jooc
Class DeclarationScope
java.lang.Object
net.jangaroo.jooc.ScopeImplBase
net.jangaroo.jooc.DeclarationScope
- All Implemented Interfaces:
- Scope
public class DeclarationScope
- extends ScopeImplBase
- Author:
- Andreas Gawecki
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DeclarationScope
public DeclarationScope(AstNode definingNode,
Scope parent)
isPackage
public boolean isPackage(String fullyQualifiedName)
- Specified by:
isPackage in interface Scope- Overrides:
isPackage in class ScopeImplBase
getDefiningNode
public AstNode getDefiningNode()
- Specified by:
getDefiningNode in interface Scope- Overrides:
getDefiningNode in class ScopeImplBase
addImport
public void addImport(ImportDirective importDirective)
- Specified by:
addImport in interface Scope- Overrides:
addImport in class ScopeImplBase
declareIde
public IdeDeclaration declareIde(IdeDeclaration decl)
- Specified by:
declareIde in interface Scope- Overrides:
declareIde in class ScopeImplBase
lookupDeclaration
public IdeDeclaration lookupDeclaration(Ide ide)
- Specified by:
lookupDeclaration in interface Scope- Overrides:
lookupDeclaration in class ScopeImplBase
isDeclared
public boolean isDeclared(Ide ide)
- Specified by:
isDeclared in interface Scope- Overrides:
isDeclared in class ScopeImplBase
findFreeAuxVar
public Ide findFreeAuxVar()
- Specified by:
findFreeAuxVar in interface Scope- Overrides:
findFreeAuxVar in class ScopeImplBase
createAuxVar
public Ide createAuxVar(Scope lookupScope)
- Specified by:
createAuxVar in interface Scope- Overrides:
createAuxVar in class ScopeImplBase
getCompilationUnit
public CompilationUnit getCompilationUnit()
- Specified by:
getCompilationUnit in interface Scope- Overrides:
getCompilationUnit in class ScopeImplBase
getPackageDeclaration
public PackageDeclaration getPackageDeclaration()
- Specified by:
getPackageDeclaration in interface Scope- Overrides:
getPackageDeclaration in class ScopeImplBase
getClassDeclaration
public ClassDeclaration getClassDeclaration()
- Specified by:
getClassDeclaration in interface Scope- Overrides:
getClassDeclaration in class ScopeImplBase
getPackageDeclarationScope
public DeclarationScope getPackageDeclarationScope()
- Specified by:
getPackageDeclarationScope in interface Scope- Overrides:
getPackageDeclarationScope in class ScopeImplBase
getMethodDeclaration
public FunctionDeclaration getMethodDeclaration()
- Specified by:
getMethodDeclaration in interface Scope- Overrides:
getMethodDeclaration in class ScopeImplBase
getFunctionExpr
public FunctionExpr getFunctionExpr()
- Specified by:
getFunctionExpr in interface Scope- Overrides:
getFunctionExpr in class ScopeImplBase
setIsInstanceScope
public void setIsInstanceScope(boolean b)
Copyright © 2002–2014 CoreMedia AG. All rights reserved.