soot.jimple.internal
Class AbstractCastExpr

java.lang.Object
  extended by soot.jimple.internal.AbstractCastExpr
All Implemented Interfaces:
Serializable, EquivTo, CastExpr, ConvertToBaf, Expr, Switchable, Value
Direct Known Subclasses:
GCastExpr, JCastExpr

public abstract class AbstractCastExpr
extends Object
implements CastExpr, ConvertToBaf

See Also:
Serialized Form

Constructor Summary
protected AbstractCastExpr(ValueBox opBox, Type type)
           
 
Method Summary
 void apply(Switch sw)
          Called when this object is visited.
abstract  Object clone()
          Returns a clone of this Value.
 void convertToBaf(JimpleToBafContext context, List<Unit> out)
           
 int equivHashCode()
          Returns a hash code for this object, consistent with structural equality.
 boolean equivTo(Object o)
          Returns true if this object is equivalent to o.
 Type getCastType()
           
 Value getOp()
           
 ValueBox getOpBox()
           
 Type getType()
          Returns the Soot type of this Value.
 List getUseBoxes()
          Returns a List of boxes corresponding to Values which are used by (ie contained within) this Value.
 void setCastType(Type castType)
           
 void setOp(Value op)
           
 String toString()
           
 void toString(UnitPrinter up)
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AbstractCastExpr

protected AbstractCastExpr(ValueBox opBox,
                           Type type)
Method Detail

clone

public abstract Object clone()
Description copied from interface: Value
Returns a clone of this Value.

Specified by:
clone in interface Value
Overrides:
clone in class Object

equivTo

public boolean equivTo(Object o)
Description copied from interface: EquivTo
Returns true if this object is equivalent to o.

Specified by:
equivTo in interface EquivTo

equivHashCode

public int equivHashCode()
Returns a hash code for this object, consistent with structural equality.

Specified by:
equivHashCode in interface EquivTo

toString

public String toString()
Overrides:
toString in class Object

toString

public void toString(UnitPrinter up)
Specified by:
toString in interface Value

getOp

public Value getOp()
Specified by:
getOp in interface CastExpr

setOp

public void setOp(Value op)
Specified by:
setOp in interface CastExpr

getOpBox

public ValueBox getOpBox()
Specified by:
getOpBox in interface CastExpr

getUseBoxes

public 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

getCastType

public Type getCastType()
Specified by:
getCastType in interface CastExpr

setCastType

public void setCastType(Type castType)
Specified by:
setCastType in interface CastExpr

getType

public Type getType()
Description copied from interface: Value
Returns the Soot type of this Value.

Specified by:
getType in interface CastExpr
Specified by:
getType in interface Value

apply

public void apply(Switch sw)
Description copied from interface: Switchable
Called when this object is visited.

Specified by:
apply in interface CastExpr
Specified by:
apply in interface Switchable

convertToBaf

public void convertToBaf(JimpleToBafContext context,
                         List<Unit> out)
Specified by:
convertToBaf in interface ConvertToBaf