net.jangaroo.jooc
Class ScopeImplBase

java.lang.Object
  extended by net.jangaroo.jooc.ScopeImplBase
All Implemented Interfaces:
Scope
Direct Known Subclasses:
DeclarationScope, LabelScope

public abstract class ScopeImplBase
extends Object
implements Scope


Constructor Summary
ScopeImplBase(Scope parent)
           
 
Method Summary
 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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ScopeImplBase

public ScopeImplBase(Scope parent)
Method Detail

getParentScope

public Scope getParentScope()
Specified by:
getParentScope in interface Scope

addImport

public void addImport(ImportDirective importDirective)
Specified by:
addImport in interface Scope

getDefiningNode

public AstNode getDefiningNode()
Specified by:
getDefiningNode in interface Scope

declareIde

public IdeDeclaration declareIde(IdeDeclaration decl)
Specified by:
declareIde in interface Scope

lookupLabel

public LabeledStatement lookupLabel(Ide ide)
Specified by:
lookupLabel in interface Scope

lookupDeclaration

public IdeDeclaration lookupDeclaration(Ide ide)
Specified by:
lookupDeclaration in interface Scope

isDeclared

public boolean isDeclared(Ide ide)
Specified by:
isDeclared in interface Scope

findFreeAuxVar

public Ide findFreeAuxVar()
Specified by:
findFreeAuxVar in interface Scope

createAuxVar

public Ide createAuxVar(Scope lookupScope)
Specified by:
createAuxVar in interface Scope

getCurrentLoop

public LoopStatement getCurrentLoop()
Specified by:
getCurrentLoop in interface Scope

getCurrentLoopOrSwitch

public Statement getCurrentLoopOrSwitch()
Specified by:
getCurrentLoopOrSwitch in interface Scope

getCompilationUnit

public CompilationUnit getCompilationUnit()
Specified by:
getCompilationUnit in interface Scope

getPackageDeclaration

public PackageDeclaration getPackageDeclaration()
Specified by:
getPackageDeclaration in interface Scope

getClassDeclaration

public ClassDeclaration getClassDeclaration()
Specified by:
getClassDeclaration in interface Scope

getPackageDeclarationScope

public DeclarationScope getPackageDeclarationScope()
Specified by:
getPackageDeclarationScope in interface Scope

getMethodDeclaration

public FunctionDeclaration getMethodDeclaration()
Specified by:
getMethodDeclaration in interface Scope

getFunctionExpr

public FunctionExpr getFunctionExpr()
Specified by:
getFunctionExpr in interface Scope

isPackage

public boolean isPackage(String fullyQualifiedName)
Specified by:
isPackage in interface Scope


Copyright © 2002-2012 CoreMedia AG. All Rights Reserved.