|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--net.sf.arise.piji.AbstractNode
|
+--net.sf.arise.piji.ListNode
A class describing a tree node with children in a Scheme tree
| Constructor Summary | |
(package private) |
ListNode(ListNodeType type)
Construct a scheme node a list of subnodes |
(package private) |
ListNode(ListNodeType type,
java.util.List nodes)
|
| Method Summary | |
boolean |
equals(java.lang.Object object)
|
java.lang.Object |
evaluate(Context context)
Evaluates this tree node in the given context. |
Expression |
get(int i)
|
(package private) AbstractNode |
getArgumentNode(int i)
Get a numbered argument node. |
(package private) AbstractNode |
getFunNode()
Get a numbered argument node. |
ListNodeType |
getType()
|
int |
hashCode()
|
int |
size()
|
(package private) ListNode |
sublist(int offset)
|
(package private) ListNode |
sublist(int offset,
int length)
|
protected void |
writeToBuffer(java.lang.StringBuffer buffer,
int x,
boolean indent)
Returns the string value of this tree node |
| Methods inherited from class net.sf.arise.piji.AbstractNode |
toSchemeString, toString |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
ListNode(ListNodeType type)
ListNode(ListNodeType type,
java.util.List nodes)
| Method Detail |
ListNode sublist(int offset)
ListNode sublist(int offset,
int length)
public ListNodeType getType()
public int size()
public final Expression get(int i)
final AbstractNode getFunNode()
final AbstractNode getArgumentNode(int i)
i - The number of the argument node
protected void writeToBuffer(java.lang.StringBuffer buffer,
int x,
boolean indent)
writeToBuffer in class AbstractNodex - Used to set the indentation for printing, enabling proper
tree structuring of the output
public final boolean equals(java.lang.Object object)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object
public final java.lang.Object evaluate(Context context)
throws java.lang.Throwable
context - The context to evaluate in
EvaluationException - Thrown iff something bad happens
java.lang.Throwable - iff the evaluation goes awry
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
All code and documentation is
Copyright (c) : 2000-2003 Kjetil Valstadsve & Maja S. Bratseth