Package soot
Class AbstractValueBox
- java.lang.Object
-
- soot.tagkit.AbstractHost
-
- 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
Constructors Constructor Description AbstractValueBox()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ValuegetValue()Returns the value contained in this box.voidsetValue(Value value)Sets the value contained in this box as given.StringtoString()voidtoString(UnitPrinter up)-
Methods inherited from class soot.tagkit.AbstractHost
addAllTagsOf, addTag, getJavaSourceStartColumnNumber, getJavaSourceStartLineNumber, 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.tagkit.Host
addAllTagsOf, addTag, getJavaSourceStartColumnNumber, getJavaSourceStartLineNumber, getTag, getTags, hasTag, removeAllTags, removeTag
-
Methods inherited from interface soot.ValueBox
canContainValue
-
-
-
-
Field Detail
-
value
protected Value value
-
-
Method Detail
-
setValue
public void setValue(Value value)
Description copied from interface:ValueBoxSets the value contained in this box as given. Subject to canContainValue() checks.
-
getValue
public Value getValue()
Description copied from interface:ValueBoxReturns the value contained in this box.
-
toString
public void toString(UnitPrinter up)
-
-