All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class epp.LiteralTree

java.lang.Object
   |
   +----epp.Tree
           |
           +----epp.LiteralTree

public class LiteralTree
extends Tree
The LiteralTree class is a node of an abstract syntax tree that describes a literal.

(The LiteralToken is a token that describes a literal.)

See Also:
Tree, LiteralToken

Constructor Index

 o LiteralTree(LiteralToken)
 o LiteralTree(Symbol, String)
Corresponds to new LiteralTree(new LiteralToken(tag, contents))

Method Index

 o literalToken()
Returns the LiteralToken the node has.
 o print(PrintWriter, String)
 o toString()
Converts a tree to String without indentation.

Constructors

 o LiteralTree
 public LiteralTree(LiteralToken literalToken)
 o LiteralTree
 public LiteralTree(Symbol tag,
                    String contents)
Corresponds to new LiteralTree(new LiteralToken(tag, contents))

Methods

 o literalToken
 public LiteralToken literalToken()
Returns the LiteralToken the node has. For example, if you call this method for a LiteralTree such as `(literalTree string "abc"), the resulting value is the same as new LiteralToken(:string, "abc").

Overrides:
literalToken in class Tree
See Also:
literalToken
 o print
 public void print(PrintWriter out,
                   String indent)
Overrides:
print in class Tree
 o toString
 public String toString()
Converts a tree to String without indentation.

Overrides:
toString in class Tree

All Packages  Class Hierarchy  This Package  Previous  Next  Index