public class EscapeLiteral extends Literal
| Constructor and Description |
|---|
EscapeLiteral(java.lang.String name)
Constructs an escape literal with the specified string name.
|
| Modifier and Type | Method and Description |
|---|---|
EscapeLiteral |
clone()
Returns a clone of the escape literal.
|
static void |
defaultPrint(EscapeLiteral l,
java.io.PrintWriter o)
Prints a literal to a stream.
|
boolean |
equals(java.lang.Object o)
Compares the escape literal with the specified object for equality.
|
char |
getValue()
Returns the character value of the escape literal.
|
int |
hashCode()
Returns the hash code of the escape literal.
|
static void |
setClassPrintMethod(java.lang.reflect.Method m)
Overrides the class print method, so that all subsequently created
objects will use the supplied method.
|
void |
setValue(char value)
Sets the value of the literal with the specified character.
|
java.lang.String |
toString()
Returns a string representation of the escape literal.
|
compareTo, findExpression, getChildren, getParent, getStatement, needsParens, print, printSelf, removeChild, setChild, setParens, setParent, setPrintMethod, swapWith, verifypublic EscapeLiteral(java.lang.String name)
public EscapeLiteral clone()
public static void defaultPrint(EscapeLiteral l, java.io.PrintWriter o)
l - The literal to print.o - The writer on which to print the literal.public java.lang.String toString()
toString in class Expressionpublic boolean equals(java.lang.Object o)
equals 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 char getValue()
public int hashCode()
hashCode in class Expressionpublic static void setClassPrintMethod(java.lang.reflect.Method m)
m - The new print method.public void setValue(char value)