|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdk.brics.string.intermediate.Variable
public final class Variable
A variable or other intermediate value in the Java program.
A variable has a type, which is either String
,
StringBuffer
, StringBuilder
,
an array (of arbitrary dimension)
of String
, or some irrelevant type.
Method Summary | |
---|---|
int |
compareTo(Variable v)
|
boolean |
equals(Object other)
|
Field |
getField()
Returns the field represented by this variable, or null if this is not a field variable. |
int |
getKey()
|
VariableType |
getType()
|
int |
hashCode()
|
boolean |
isField()
Returns false if this is a local variable, and true if it is a field variable. |
boolean |
isLocal()
Returns true if this is a local variable, and false if it is a field variable. |
boolean |
isMutable()
Returns true if the variable might be mutable. |
boolean |
isTaint()
|
void |
setTaint(boolean taint)
|
String |
toString()
Returns a string representation of the variable. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public int compareTo(Variable v)
compareTo
in interface Comparable<Variable>
public boolean equals(Object other)
equals
in class Object
public Field getField()
public int getKey()
public VariableType getType()
public int hashCode()
hashCode
in class Object
public boolean isField()
public boolean isLocal()
public boolean isMutable()
public boolean isTaint()
public void setTaint(boolean taint)
public String toString()
toString
in class Object
|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |