net.jangaroo.jooc
Class DeclarationScope

java.lang.Object
  extended by net.jangaroo.jooc.ScopeImplBase
      extended by net.jangaroo.jooc.DeclarationScope
All Implemented Interfaces:
Scope

public class DeclarationScope
extends ScopeImplBase

Author:
Andreas Gawecki

Constructor Summary
DeclarationScope(AstNode definingNode, Scope parent)
           
 
Method Summary
 void addImport(ImportDirective importDirective)
           
 Ide createAuxVar()
           
 IdeDeclaration declareIde(IdeDeclaration decl)
           
 ClassDeclaration getClassDeclaration()
           
 CompilationUnit getCompilationUnit()
           
 AstNode getDefiningNode()
           
 FunctionExpr getFunctionExpr()
           
 FunctionDeclaration getMethodDeclaration()
           
 PackageDeclaration getPackageDeclaration()
           
 boolean isDeclared(Ide ide)
           
 boolean isPackage(String fullyQualifiedName)
           
 IdeDeclaration lookupDeclaration(Ide ide)
           
 void setIsInstanceScope(boolean b)
           
 
Methods inherited from class net.jangaroo.jooc.ScopeImplBase
getCurrentLoop, getCurrentLoopOrSwitch, getParentScope, lookupLabel
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DeclarationScope

public DeclarationScope(AstNode definingNode,
                        Scope parent)
Method Detail

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

createAuxVar

public Ide createAuxVar()
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

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-2011 CoreMedia AG. All Rights Reserved.