|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecttip.node.Node
tip.node.PProgram
public abstract class PProgram
PProgram
is the super class of all program
classes.
Constructor Summary | |
---|---|
PProgram()
|
Method Summary | |
---|---|
abstract PProgram |
clone()
Returns a deep clone of this PProgram node. |
abstract PProgram |
clone(Map<Node,Node> oldToNewMap)
Creates a deep clone of this PProgram node while putting all
old node-new node relations in the map oldToNewMap . |
abstract int[] |
getCode()
Returns the code field of this PProgram node. |
abstract Map<String,AFuncDecl> |
getFunctionEnv()
Returns the function_env field of this PProgram node. |
abstract LinkedList<AFuncDecl> |
getFunctions()
Returns the possibly empty list of AFuncDecl nodes that are the functions children of this PProgram node. |
NodeEnum |
kindNode()
Returns the NodeEnum corresponding to the
type of this Node node. |
abstract void |
setCode(int[] value)
Sets the code field of this PProgram node. |
abstract void |
setFunctionEnv(Map<String,AFuncDecl> value)
Sets the function_env field of this PProgram node. |
abstract void |
setFunctions(List<? extends AFuncDecl> value)
Sets the functions children of this PProgram node. |
Methods inherited from class tip.node.Node |
---|
apply, apply, apply, apply, checkOptionalInvariant, getAncestor, getAncestor, getAncestor, getChildren, getChildren, getChildren, getDescendants, getDescendants, getDescendants, getDescendants, isOptionalInvariant, parent, replaceBy, setOptionalInvariant |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PProgram()
Method Detail |
---|
public abstract PProgram clone()
PProgram
node.
clone
in interface NodeInterface
clone
in class Node
PProgram
nodepublic abstract PProgram clone(Map<Node,Node> oldToNewMap)
PProgram
node while putting all
old node-new node relations in the map oldToNewMap
.
clone
in interface NodeInterface
clone
in class Node
oldToNewMap
- the map filled with the old node-new node relation
PProgram
nodepublic abstract LinkedList<AFuncDecl> getFunctions()
AFuncDecl
nodes that are the functions
children of this PProgram
node.
AFuncDecl
nodes that are the functions
children of this PProgram
nodepublic abstract void setFunctions(List<? extends AFuncDecl> value)
functions
children of this PProgram
node.
value
- the new functions
children of this PProgram
nodepublic abstract Map<String,AFuncDecl> getFunctionEnv()
function_env
field of this PProgram
node.
function_env
field of this PProgram
nodepublic abstract void setFunctionEnv(Map<String,AFuncDecl> value)
function_env
field of this PProgram
node.
value
- the new function_env
field of this PProgram
nodepublic abstract int[] getCode()
code
field of this PProgram
node.
code
field of this PProgram
nodepublic abstract void setCode(int[] value)
code
field of this PProgram
node.
value
- the new code
field of this PProgram
nodepublic NodeEnum kindNode()
NodeEnum
corresponding to the
type of this Node
node.
kindNode
in class Node
NodeEnum
for this node
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |