soot.jimple
Class Constant
java.lang.Object
|
+--soot.jimple.Constant
- Direct Known Subclasses:
- NullConstant, NumericConstant, StringConstant
- public abstract class Constant
- extends java.lang.Object
- implements Value, ConvertToBaf
- See Also:
- Serialized Form
Method Summary |
java.lang.Object |
clone()
Clones the current constant. |
void |
convertToBaf(JimpleToBafContext context,
java.util.List out)
Adds a Baf instruction pushing this constant to the stack onto out . |
int |
equivHashCode()
Returns a hash code consistent with structural equality for this object. |
boolean |
equivTo(java.lang.Object c)
Returns true if this object is structurally equivalent to c. |
java.util.List |
getUseBoxes()
Returns a List of boxes corresponding to Values
which are used by (ie contained within) this Value. |
void |
toString(UnitPrinter up)
|
Methods inherited from class java.lang.Object |
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constant
public Constant()
getUseBoxes
public java.util.List getUseBoxes()
- Description copied from interface: Value
- Returns a List of boxes corresponding to Values
which are used by (ie contained within) this Value.
- Specified by:
- getUseBoxes in interface Value
convertToBaf
public void convertToBaf(JimpleToBafContext context,
java.util.List out)
- Adds a Baf instruction pushing this constant to the stack onto
out
.
- Specified by:
- convertToBaf in interface ConvertToBaf
clone
public java.lang.Object clone()
- Clones the current constant. Not implemented here.
- Specified by:
- clone in interface Value
- Overrides:
- clone in class java.lang.Object
equivTo
public boolean equivTo(java.lang.Object c)
- Returns true if this object is structurally equivalent to c.
For Constants, equality is structural equality, so we just call equals().
equivHashCode
public int equivHashCode()
- Returns a hash code consistent with structural equality for this object.
For Constants, equality is structural equality; we hope that each subclass defines hashCode() correctly.
toString
public void toString(UnitPrinter up)
- Specified by:
- toString in interface Value