soot
Class AbstractValueBox

java.lang.Object
  extended by soot.tagkit.AbstractHost
      extended by soot.AbstractValueBox
All Implemented Interfaces:
Serializable, Host, ValueBox
Direct Known Subclasses:
BafLocalBox, ConditionExprBox, DArrayInitValueBox, ExprBox, GRValueBox, IdentityRefBox, ImmediateBox, InvokeExprBox, JimpleLocalBox, RValueBox, ValueUnitPair, VariableBox

public abstract class AbstractValueBox
extends AbstractHost
implements ValueBox

Reference implementation for ValueBox; just add a canContainValue method.

See Also:
Serialized Form

Constructor Summary
AbstractValueBox()
           
 
Method Summary
 Value getValue()
          Returns the value contained in this box.
 void setValue(Value value)
          Sets the value contained in this box as given.
 String toString()
           
 void toString(UnitPrinter up)
           
 
Methods inherited from class soot.tagkit.AbstractHost
addAllTagsOf, addTag, getTag, getTags, hasTag, removeAllTags, removeTag
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface soot.ValueBox
canContainValue
 
Methods inherited from interface soot.tagkit.Host
addAllTagsOf, addTag, getTag, getTags, hasTag, removeAllTags, removeTag
 

Constructor Detail

AbstractValueBox

public AbstractValueBox()
Method Detail

setValue

public void setValue(Value value)
Description copied from interface: ValueBox
Sets the value contained in this box as given. Subject to canContainValue() checks.

Specified by:
setValue in interface ValueBox

getValue

public Value getValue()
Description copied from interface: ValueBox
Returns the value contained in this box.

Specified by:
getValue in interface ValueBox

toString

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

toString

public String toString()
Overrides:
toString in class Object