|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectTreeNode
Expression
leq
Defines AST constructor 'leq'.
See TreeNode for full documentation.
Field Summary | |
Expression |
e1
|
Expression |
e2
|
protected int |
lineNumber
line in the source file from which this node came. |
Constructor Summary | |
leq(int lineNumber,
Expression a1,
Expression a2)
Creates "leq" AST node. |
Method Summary | |
void |
code(java.io.PrintStream s)
Generates code for this expression. |
protected AbstractSymbol |
copy_AbstractSymbol(AbstractSymbol sym)
Copies an AbstractSymbol value. |
protected java.lang.Boolean |
copy_Boolean(java.lang.Boolean b)
Copies a boolean value. |
TreeNode |
copy()
Creates a copy of this node. |
protected void |
dump_AbstractSymbol(java.io.PrintStream out,
int n,
AbstractSymbol sym)
Dumps a printable representation of an AbstactSymbol value. |
protected void |
dump_Boolean(java.io.PrintStream out,
int n,
java.lang.Boolean b)
Dumps a printable representation of a boolean value. |
protected void |
dump_line(java.io.PrintStream out,
int n)
Dumps a printable representation of current line number This method is used internally by the generated AST classes |
void |
dump_type(java.io.PrintStream out,
int n)
|
void |
dump_with_types(java.io.PrintStream out,
int n)
|
void |
dump(java.io.PrintStream out,
int n)
Pretty-prints this node to this output stream. |
AbstractSymbol |
get_type()
|
int |
getLineNumber()
Retreives the line number from which this node came. |
Expression |
set_type(AbstractSymbol s)
|
TreeNode |
set(TreeNode other)
Sets the values of this node object to the values of a given node. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public Expression e1
public Expression e2
protected int lineNumber
Constructor Detail |
public leq(int lineNumber, Expression a1, Expression a2)
lineNumber
- the line in the source file from which this node came.a1
- initial value for e2Method Detail |
public TreeNode copy()
TreeNode
copy
in class TreeNode
public void dump(java.io.PrintStream out, int n)
TreeNode
dump
in class TreeNode
out
- the output streamn
- the number of spaces to indent the outputpublic void dump_with_types(java.io.PrintStream out, int n)
dump_with_types
in class Expression
public void code(java.io.PrintStream s)
code
in class Expression
s
- the output streampublic AbstractSymbol get_type()
public Expression set_type(AbstractSymbol s)
public void dump_type(java.io.PrintStream out, int n)
public TreeNode set(TreeNode other)
other
- the other node
public int getLineNumber()
protected java.lang.Boolean copy_Boolean(java.lang.Boolean b)
protected AbstractSymbol copy_AbstractSymbol(AbstractSymbol sym)
protected void dump_Boolean(java.io.PrintStream out, int n, java.lang.Boolean b)
protected void dump_AbstractSymbol(java.io.PrintStream out, int n, AbstractSymbol sym)
protected void dump_line(java.io.PrintStream out, int n)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |