at.dms.compiler
Class Phylum

java.lang.Object
  extended by at.dms.util.Utils
      extended by at.dms.compiler.Phylum
All Implemented Interfaces:
DeepCloneable, Serializable
Direct Known Subclasses:
JPhylum

public abstract class Phylum
extends Utils

This class represents the root class for all elements of the parsing tree

See Also:
Serialized Form

Field Summary
 
Fields inherited from class at.dms.util.Utils
EMPTY_LIST, getForLoopCallers
 
Constructor Summary
protected Phylum()
           
  Phylum(TokenReference where)
          construct an element of the parsing tree
 
Method Summary
 Object deepClone()
          Returns a deep clone of this object.
protected  void deepCloneInto(Phylum other)
          Clones all fields of this into
 TokenReference getTokenReference()
          Returns the token reference of this node in the source text.
 void setTokenReference(TokenReference where)
          Update the token reference of this node.
 
Methods inherited from class at.dms.util.Utils
asPercent, cellMathEquivalent, cMathEquivalent, cppMathEquivalent, deepCloneInto, equalArrays, fail, getEnvironmentVariable, getExpression, hasPeeks, initArray, initArray, initLiteralArray, intArrayToList, isMathMethod, isUniform, kopi_assert, kopi_assert, makeCountdownForLoop, makeDotFileName, makeForLoop, makeForLoop, makeForLoop, makeForLoopFieldIndex, makeForLoopLocalIndex, nextPow2, passThruParens, peelMarkers, popBeforePeek, readFile, removeUnusedPops, replaceAll, setupDotFileName, simplifyMathMethod, splitQualifiedName, splitQualifiedName, toArray, toIntArray, toVector, voidToInt, writeFile
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Phylum

protected Phylum()

Phylum

public Phylum(TokenReference where)
construct an element of the parsing tree

Parameters:
where - the token reference of this node
Method Detail

getTokenReference

public TokenReference getTokenReference()
Returns the token reference of this node in the source text.

Returns:
the entire token reference

setTokenReference

public void setTokenReference(TokenReference where)
Update the token reference of this node. Useful if transforming a JPhylum but want to track location.

Parameters:
where - : new TokenReference value. Just stored, not cloned.

deepClone

public Object deepClone()
Returns a deep clone of this object.

Specified by:
deepClone in interface DeepCloneable
Overrides:
deepClone in class Utils

deepCloneInto

protected void deepCloneInto(Phylum other)
Clones all fields of this into
other