Package soot.jimple.internal
Class AbstractInstanceFieldRef
- java.lang.Object
-
- soot.jimple.internal.AbstractInstanceFieldRef
-
- All Implemented Interfaces:
Serializable,EquivTo,ConcreteRef,ConvertToBaf,FieldRef,InstanceFieldRef,Ref,Switchable,Value
- Direct Known Subclasses:
GInstanceFieldRef,JInstanceFieldRef
public abstract class AbstractInstanceFieldRef extends Object implements InstanceFieldRef, ConvertToBaf
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected SootFieldReffieldRef
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractInstanceFieldRef(ValueBox baseBox, SootFieldRef fieldRef)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidapply(Switch sw)Called when this object is visited.abstract Objectclone()Returns a clone of this Value.voidconvertToBaf(JimpleToBafContext context, List<Unit> out)intequivHashCode()Returns a hash code for this object, consistent with structural equality.booleanequivTo(Object o)Returns true if this object is equivalent to o.ValuegetBase()ValueBoxgetBaseBox()SootFieldgetField()SootFieldRefgetFieldRef()TypegetType()Returns the Soot type of this Value.List<ValueBox>getUseBoxes()Returns a List of boxes corresponding to Values which are used by (ie contained within) this Value.voidsetBase(Value base)voidsetFieldRef(SootFieldRef fieldRef)StringtoString()voidtoString(UnitPrinter up)
-
-
-
Field Detail
-
fieldRef
protected SootFieldRef fieldRef
-
-
Constructor Detail
-
AbstractInstanceFieldRef
protected AbstractInstanceFieldRef(ValueBox baseBox, SootFieldRef fieldRef)
-
-
Method Detail
-
clone
public abstract Object clone()
Description copied from interface:ValueReturns a clone of this Value.
-
toString
public void toString(UnitPrinter up)
-
getBase
public Value getBase()
- Specified by:
getBasein interfaceInstanceFieldRef
-
getBaseBox
public ValueBox getBaseBox()
- Specified by:
getBaseBoxin interfaceInstanceFieldRef
-
setBase
public void setBase(Value base)
- Specified by:
setBasein interfaceInstanceFieldRef
-
getFieldRef
public SootFieldRef getFieldRef()
- Specified by:
getFieldRefin interfaceFieldRef
-
setFieldRef
public void setFieldRef(SootFieldRef fieldRef)
- Specified by:
setFieldRefin interfaceFieldRef
-
getUseBoxes
public final List<ValueBox> getUseBoxes()
Description copied from interface:ValueReturns a List of boxes corresponding to Values which are used by (ie contained within) this Value.- Specified by:
getUseBoxesin interfaceValue
-
getType
public Type getType()
Description copied from interface:ValueReturns the Soot type of this Value.
-
apply
public void apply(Switch sw)
Description copied from interface:SwitchableCalled when this object is visited.- Specified by:
applyin interfaceSwitchable
-
equivTo
public boolean equivTo(Object o)
Description copied from interface:EquivToReturns true if this object is equivalent to o.
-
equivHashCode
public int equivHashCode()
Returns a hash code for this object, consistent with structural equality.- Specified by:
equivHashCodein interfaceEquivTo
-
convertToBaf
public void convertToBaf(JimpleToBafContext context, List<Unit> out)
- Specified by:
convertToBafin interfaceConvertToBaf
-
-