ponderToolkit.compiler.semantics.objects
Class PonderObject

java.lang.Object
  |
  +--ponderToolkit.compiler.semantics.objects.PonderObject
Direct Known Subclasses:
BasicPolicy, CompositePolicy, MetaPolicy

public abstract class PonderObject
extends java.lang.Object

Function: Models a PonderObject. This is an abstract class.


Field Summary
protected  Table env
          Fields
protected  boolean isType
           
protected  java.lang.String location
           
protected  java.lang.String name
           
protected  PonderObject parent
           
protected  TokenPosition pos
           
 
Constructor Summary
PonderObject()
          Constructor which builds a PonderObject with no associated environment
PonderObject(Table newEnv)
          Constructor which accepts an environment only
PonderObject(Table newEnv, PonderObject newParent, TokenPosition newPos)
          Constructor which accepts an environment, the parent PonderObject and the TokenPosition for this PonderObject
 
Method Summary
 Table getEnv()
          Returns the Environment of the Ponder Object
 boolean getIsType()
          Returns true if the PonderObject is a Type.
 java.lang.String getLocation()
          Returns the location (domain path) of the Ponder Object
 java.lang.String getName()
          Returns the Name of the Ponder Object
 PonderObject getParent()
          Returns the parent of the Ponder Object
 TokenPosition getPosition()
          Returns the TokenPosition of the Ponder Object
 java.lang.String getSourceText()
          Returns the SourceText of the Ponder Object
 void setEnv(Table newEnv)
          Sets the Environment of the Ponder Object
 void setIsType(boolean newIsType)
          Sets the isType attribute of the Ponder Object
 void setLocation(java.lang.String newLocation)
          Sets the location (domain path) of the Ponder Object
 void setName(java.lang.String newName)
          Sets the Name of the Ponder Object
 void setParent(PonderObject newParent)
          Sets the parent of the Ponder Object
 void setPosition(TokenPosition newPos)
          Sets the TokenPosition of the Ponder Object
 void setSourceText(java.lang.String newSourceText)
          Sets the SourceText of the Ponder Object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

env

protected Table env
Fields

name

protected java.lang.String name

isType

protected boolean isType

parent

protected PonderObject parent

pos

protected TokenPosition pos

location

protected java.lang.String location
Constructor Detail

PonderObject

public PonderObject(Table newEnv,
                    PonderObject newParent,
                    TokenPosition newPos)
Constructor which accepts an environment, the parent PonderObject and the TokenPosition for this PonderObject

PonderObject

public PonderObject(Table newEnv)
Constructor which accepts an environment only

PonderObject

public PonderObject()
Constructor which builds a PonderObject with no associated environment
Method Detail

setName

public void setName(java.lang.String newName)
Sets the Name of the Ponder Object

getName

public java.lang.String getName()
Returns the Name of the Ponder Object

setEnv

public void setEnv(Table newEnv)
Sets the Environment of the Ponder Object

getEnv

public Table getEnv()
Returns the Environment of the Ponder Object

setParent

public void setParent(PonderObject newParent)
Sets the parent of the Ponder Object

getParent

public PonderObject getParent()
Returns the parent of the Ponder Object

setPosition

public void setPosition(TokenPosition newPos)
Sets the TokenPosition of the Ponder Object

getPosition

public TokenPosition getPosition()
Returns the TokenPosition of the Ponder Object

setLocation

public void setLocation(java.lang.String newLocation)
Sets the location (domain path) of the Ponder Object

getLocation

public java.lang.String getLocation()
Returns the location (domain path) of the Ponder Object

setIsType

public void setIsType(boolean newIsType)
Sets the isType attribute of the Ponder Object

getIsType

public boolean getIsType()
Returns true if the PonderObject is a Type. False otherwise

setSourceText

public void setSourceText(java.lang.String newSourceText)
Sets the SourceText of the Ponder Object

getSourceText

public java.lang.String getSourceText()
Returns the SourceText of the Ponder Object