treecalc.comp
Class ScopedSymbol

java.lang.Object
  extended by treecalc.comp.ScopedSymbol
All Implemented Interfaces:
Scope, Symbol

public class ScopedSymbol
extends java.lang.Object
implements Scope, Symbol


Field Summary
 
Fields inherited from interface treecalc.comp.Symbol
SYMBOLTYPE_BULITIN, SYMBOLTYPE_FUNCTION, SYMBOLTYPE_INPUT, SYMBOLTYPE_INPUTRESULTDEF, SYMBOLTYPE_LOCALVAR, SYMBOLTYPE_NODERESULTDEF, SYMBOLTYPE_PARAMETER, SYMBOLTYPE_SPECIAL, SYMBOLTYPE_TABLE, SYMBOLTYPE_TABLECOLUMN, SYMBOLTYPE_TIMESINDEX
 
Method Summary
 void define(Symbol sym)
           
 TcAst getAst()
           
 java.lang.String getFullScopeName()
           
 int getId()
           
 int getNewSymbolId()
           
 int getNumArgs()
           
 Scope getParent()
           
 Scope getScope()
           
 java.util.List<Symbol> getScopeDefines()
           
 java.lang.String getScopeName()
           
 ScopeNode getScopeNode()
           
 int getSymbolIdCounter()
           
 java.lang.String getSymbolName()
           
 int getSymboltype()
           
 Symbol resolve(java.lang.String name, int nargs, boolean selfcalccall)
           
 ResolvedCalc resolveCalc(ModelSimple model, java.lang.String calcname, int nargs, boolean selfcalccall)
           
 void setAst(TcAst ast)
           
 void setId(int id)
           
 void setScope(Scope scope)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

setAst

public void setAst(TcAst ast)

getAst

public TcAst getAst()

getSymbolName

public java.lang.String getSymbolName()
Specified by:
getSymbolName in interface Symbol

setScope

public void setScope(Scope scope)
Specified by:
setScope in interface Symbol

getScope

public Scope getScope()
Specified by:
getScope in interface Symbol

getSymboltype

public int getSymboltype()
Specified by:
getSymboltype in interface Symbol

getNumArgs

public int getNumArgs()
Specified by:
getNumArgs in interface Symbol

getScopeName

public java.lang.String getScopeName()
Specified by:
getScopeName 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

define

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

getParent

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

getScopeDefines

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

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

setId

public void setId(int id)
Specified by:
setId in interface Symbol

getId

public int getId()
Specified by:
getId in interface Symbol


Copyright © 2013. All Rights Reserved.