treecalc.comp
Class ScopeSimple

java.lang.Object
  extended by treecalc.comp.ScopeSimple
All Implemented Interfaces:
Scope

public class ScopeSimple
extends java.lang.Object
implements Scope


Constructor Summary
ScopeSimple(java.lang.String name, Scope parent)
           
ScopeSimple(java.lang.String name, Scope parent, boolean isFormulaTopScope)
           
 
Method Summary
 void define(Symbol sym)
           
 java.lang.String getFullScopeName()
           
 int getNewSymbolId()
           
 Scope getParent()
           
 java.util.List<Symbol> getScopeDefines()
           
 java.lang.String getScopeName()
           
 ScopeNode getScopeNode()
           
 int getSymbolIdCounter()
           
 Symbol resolve(java.lang.String name, int nargs, boolean selfcalccall)
           
 ResolvedCalc resolveCalc(ModelSimple model, java.lang.String calcname, int nargs, boolean selfcalccall)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ScopeSimple

public ScopeSimple(java.lang.String name,
                   Scope parent)

ScopeSimple

public ScopeSimple(java.lang.String name,
                   Scope parent,
                   boolean isFormulaTopScope)
Method Detail

getScopeName

public java.lang.String getScopeName()
Specified by:
getScopeName in interface Scope

define

public void define(Symbol sym)
Specified by:
define in interface Scope

getScopeDefines

public java.util.List<Symbol> getScopeDefines()
Specified by:
getScopeDefines in interface Scope

resolve

public Symbol resolve(java.lang.String name,
                      int nargs,
                      boolean selfcalccall)
Specified by:
resolve in interface Scope

resolveCalc

public ResolvedCalc resolveCalc(ModelSimple model,
                                java.lang.String calcname,
                                int nargs,
                                boolean selfcalccall)
Specified by:
resolveCalc in interface Scope

getScopeNode

public ScopeNode getScopeNode()
Specified by:
getScopeNode in interface Scope

getParent

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

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getFullScopeName

public java.lang.String getFullScopeName()
Specified by:
getFullScopeName in interface Scope

getNewSymbolId

public int getNewSymbolId()
Specified by:
getNewSymbolId in interface Scope

getSymbolIdCounter

public int getSymbolIdCounter()
Specified by:
getSymbolIdCounter in interface Scope


Copyright © 2013. All Rights Reserved.