public class TemplateID extends IDExpression
| Constructor and Description |
|---|
TemplateID(java.lang.String name) |
TemplateID(java.lang.String name,
java.util.List args) |
| Modifier and Type | Method and Description |
|---|---|
TemplateID |
clone()
Creates and returns a deep copy of this expression.
|
static void |
defaultPrint(TemplateID i,
java.io.PrintWriter o)
Prints an identifier to a stream.
|
boolean |
equals(java.lang.Object o)
Checks if the given object is has the same type with this expression and
its children is same with this expression's.
|
int |
hashCode()
Returns the hash code of the expression.
|
findDeclaration, getName, setGlobal, setTypenamecompareTo, findExpression, getChildren, getParent, getStatement, needsParens, print, printSelf, removeChild, setChild, setParens, setParent, setPrintMethod, swapWith, toString, verifypublic TemplateID(java.lang.String name)
public TemplateID(java.lang.String name,
java.util.List args)
public TemplateID clone()
Expressionclone in class IDExpressionpublic static void defaultPrint(TemplateID i, java.io.PrintWriter o)
i - The identifier to print.o - The writer on which to print the identifier.public boolean equals(java.lang.Object o)
Expressionequals in class Expressiono - the object to be compared with.o!=null, this.getClass()==o.getClass(),
and this.children.equals(o.children) ||
this.children==o.children==nullpublic int hashCode()
ExpressionhashCode in class Expression