All Packages  Class Hierarchy  This Package  Previous  Next  Index

Interface openjava.ptree.Ptree

public interface Ptree
The Ptree class presents for the node of parse tree. This may be a token node, Leaf, or may be a nonterminal node, NonLeaf.

See Also:
Leaf, NonLeaf

Method Index

 o eq(Ptree)
Tests if this parse-tree-node's value equals to the specified ptree-node's.
 o equals(Ptree)
Tests if this parse-tree-node's value equals to the specified ptree-node's.
 o getObjectID()
Returns the Identifier Number of this object
 o makeCopy()
Makes a new copy of this nonleaf-node as a ptree-node.
 o makeRecursiveCopy()
Makes a new copy (another object) of this nonleaf-node recursively.
 o toFlattenString()
Generates the string expression from this node.
 o toString()
Generates string which presents for this parse-tree
 o writeCode()
Writes a source code in the writer(stream).

Methods

 o makeRecursiveCopy
 public abstract Ptree makeRecursiveCopy()
Makes a new copy (another object) of this nonleaf-node recursively. The objects contained by this object will also be copied.

Returns:
the copy of this nonleaf-node as a ptree-node.
 o makeCopy
 public abstract Ptree makeCopy()
Makes a new copy of this nonleaf-node as a ptree-node. The objects contained by the new object are same as these contained by the original object.

Returns:
the copy of this nonleaf-node as a ptree-node.
 o equals
 public abstract boolean equals(Ptree p)
Tests if this parse-tree-node's value equals to the specified ptree-node's.

Returns:
true if two values are same.
 o eq
 public abstract boolean eq(Ptree p)
Tests if this parse-tree-node's value equals to the specified ptree-node's.

Returns:
true if two this and p refer to the same ptree object.
 o toString
 public abstract String toString()
Generates string which presents for this parse-tree

Returns:
string which presents for this parse-tree
Overrides:
toString in class Object
 o writeCode
 public abstract void writeCode()
Writes a source code in the writer(stream). This must be overridden.

 o toFlattenString
 public abstract String toFlattenString()
Generates the string expression from this node. Returned string doesn't have '"' without cancel ( \" ) and doesn't have newline.

Returns:
the flatten string which this node presents for
 o getObjectID
 public abstract int getObjectID()
Returns the Identifier Number of this object

Returns:
the ID number of this object

All Packages  Class Hierarchy  This Package  Previous  Next  Index