public abstract class AbstractInstanceFieldRef extends Object implements InstanceFieldRef, ConvertToBaf
Modifier and Type | Field and Description |
---|---|
protected SootFieldRef |
fieldRef |
Modifier | Constructor and Description |
---|---|
protected |
AbstractInstanceFieldRef(ValueBox baseBox,
SootFieldRef fieldRef) |
Modifier and Type | Method and Description |
---|---|
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.
|
Value |
getBase() |
ValueBox |
getBaseBox() |
SootField |
getField() |
SootFieldRef |
getFieldRef() |
Type |
getType()
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.
|
void |
setBase(Value base) |
void |
setFieldRef(SootFieldRef fieldRef) |
String |
toString() |
void |
toString(UnitPrinter up) |
protected SootFieldRef fieldRef
protected AbstractInstanceFieldRef(ValueBox baseBox, SootFieldRef fieldRef)
public abstract Object clone()
Value
public void toString(UnitPrinter up)
public Value getBase()
getBase
in interface InstanceFieldRef
public ValueBox getBaseBox()
getBaseBox
in interface InstanceFieldRef
public void setBase(Value base)
setBase
in interface InstanceFieldRef
public SootFieldRef getFieldRef()
getFieldRef
in interface FieldRef
public void setFieldRef(SootFieldRef fieldRef)
setFieldRef
in interface FieldRef
public final List<ValueBox> getUseBoxes()
Value
getUseBoxes
in interface Value
public Type getType()
Value
public void apply(Switch sw)
Switchable
apply
in interface Switchable
public boolean equivTo(Object o)
EquivTo
public int equivHashCode()
equivHashCode
in interface EquivTo
public void convertToBaf(JimpleToBafContext context, List<Unit> out)
convertToBaf
in interface ConvertToBaf
Copyright © 2021 Soot OSS. All rights reserved.