public abstract class Expr extends Node implements java.lang.Cloneable
DefExpr| Modifier and Type | Method and Description |
|---|---|
void |
cleanupOnly()
Cleans up this expression only, not its children.
|
abstract java.lang.Object |
clone() |
java.lang.Object |
comparator()
Returns an Object that can be used to compare other Expr to this.
|
protected Expr |
copyInto(Expr expr)
Copies the contents of another expression in this one.
|
DefExpr |
def()
Returns the expression in which this Expr is defined.
|
abstract boolean |
equalsExpr(Expr other)
Compares this expression to another.
|
abstract int |
exprHashCode()
Returns the hash code for this expresion.
|
boolean |
isDef()
Returns whether or not this expression is a defining occurrence.
|
void |
setDef(DefExpr def)
Sets the expression that defines this expression.
|
boolean |
setType(Type type)
Sets the type of this expression.
|
Stmt |
stmt()
Returns the statement to which this expression belongs.
|
Type |
type()
Returns the Type of this expression.
|
block, cleanup, copyInto, hasParent, key, parent, replaceWith, replaceWith, setKey, setParent, setValueNumber, toString, valueNumber, visit, visitChildren, visitForceChildren, visitOnlyprotected Type type
public Expr(Type type)
type - The initial Type (descriptor) of this expression.public boolean setType(Type type)
public boolean isDef()
public Stmt stmt()
public Type type()
public void cleanupOnly()
cleanupOnly in class Nodepublic void setDef(DefExpr def)
def - Defining expression.public DefExpr def()
public abstract int exprHashCode()
public abstract boolean equalsExpr(Expr other)
other - Expr to which to compare this.public abstract java.lang.Object clone()
clone in class java.lang.Objectprotected Expr copyInto(Expr expr)
expr - The expression from which to copy.public java.lang.Object comparator()