soot
Class AbstractValueBox

java.lang.Object
  |
  +--soot.AbstractValueBox
All Implemented Interfaces:
java.io.Serializable, ValueBox
Direct Known Subclasses:
BafLocalBox, ConditionExprBox, ExprBox, GRValueBox, IdentityRefBox, ImmediateBox, InvokeExprBox, JimpleLocalBox, RValueBox, VariableBox

public abstract class AbstractValueBox
extends java.lang.Object
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface soot.ValueBox
canContainValue
 

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