net.jangaroo.jooc
Interface Scope

All Known Implementing Classes:
DeclarationScope, LabelScope, ScopeImplBase

public interface Scope


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)
           
 

Method Detail

getDefiningNode

AstNode getDefiningNode()

getParentScope

Scope getParentScope()

addImport

void addImport(ImportDirective importDirective)

declareIde

IdeDeclaration declareIde(IdeDeclaration decl)

lookupLabel

LabeledStatement lookupLabel(Ide ide)

lookupDeclaration

IdeDeclaration lookupDeclaration(Ide ide)

isDeclared

boolean isDeclared(Ide ide)

createAuxVar

Ide createAuxVar(Scope lookupScope)

getCurrentLoop

LoopStatement getCurrentLoop()

getCurrentLoopOrSwitch

Statement getCurrentLoopOrSwitch()

getCompilationUnit

CompilationUnit getCompilationUnit()

getPackageDeclaration

PackageDeclaration getPackageDeclaration()

getClassDeclaration

ClassDeclaration getClassDeclaration()

getMethodDeclaration

FunctionDeclaration getMethodDeclaration()

getFunctionExpr

FunctionExpr getFunctionExpr()

isPackage

boolean isPackage(String fullyQualifiedName)

findFreeAuxVar

Ide findFreeAuxVar()

getPackageDeclarationScope

DeclarationScope getPackageDeclarationScope()


Copyright © 2002–2014 CoreMedia AG. All rights reserved.