treecalc.comp
Class ScopeNode

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

public class ScopeNode
extends java.lang.Object
implements Scope


Constructor Summary
ScopeNode(java.lang.String id, java.lang.String name, ScopeNode parentNode, Scope parent)
           
 
Method Summary
 void addLink(ScopeNode linkedNode)
           
 void define(Symbol sym)
           
 ScopeNode findFirst(java.lang.String[] path, int[] tokentypes)
           
 TcAst getAstInclusion()
           
 TcAst getAstTimes()
           
 java.util.List<ScopeNode> getChildren()
           
 java.lang.String getFullScopeName()
           
 java.util.List<ScopeNode> getLinks()
           
 int getNewSymbolId()
           
 java.lang.String getNodeId()
           
 java.lang.String getNodeName()
           
 Scope getParent()
           
 ScopeNode getParentNode()
           
 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)
           
 void setAstInclusion(TcAst astInclusion)
           
 void setAstTimes(TcAst astTimes)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ScopeNode

public ScopeNode(java.lang.String id,
                 java.lang.String name,
                 ScopeNode parentNode,
                 Scope parent)
Method Detail

findFirst

public ScopeNode findFirst(java.lang.String[] path,
                           int[] tokentypes)

addLink

public void addLink(ScopeNode linkedNode)

getLinks

public java.util.List<ScopeNode> getLinks()

getNodeId

public java.lang.String getNodeId()

getNodeName

public java.lang.String getNodeName()

getParentNode

public ScopeNode getParentNode()

getChildren

public java.util.List<ScopeNode> getChildren()

getFullScopeName

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

getScopeName

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

define

public void define(Symbol sym)
Specified by:
define 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

getScopeDefines

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

getParent

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

getAstInclusion

public TcAst getAstInclusion()

setAstInclusion

public void setAstInclusion(TcAst astInclusion)

getAstTimes

public TcAst getAstTimes()

setAstTimes

public void setAstTimes(TcAst astTimes)

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.