Package soot.jimple
Class StaticFieldRef
- java.lang.Object
-
- soot.jimple.StaticFieldRef
-
- All Implemented Interfaces:
Serializable,EquivTo,ConcreteRef,ConvertToBaf,FieldRef,Ref,Switchable,Value
- Direct Known Subclasses:
DStaticFieldRef
public class StaticFieldRef extends Object implements FieldRef, ConvertToBaf
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected SootFieldReffieldRef
-
Constructor Summary
Constructors Modifier Constructor Description protectedStaticFieldRef(SootFieldRef fieldRef)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidapply(Switch sw)Called when this object is visited.Objectclone()Returns a clone of this Value.voidconvertToBaf(JimpleToBafContext context, List<Unit> out)intequivHashCode()Returns a (not necessarily fixed) hash code for this object.booleanequivTo(Object o)Returns true if this object is equivalent to o.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.voidsetFieldRef(SootFieldRef fieldRef)StringtoString()voidtoString(UnitPrinter up)
-
-
-
Field Detail
-
fieldRef
protected SootFieldRef fieldRef
-
-
Constructor Detail
-
StaticFieldRef
protected StaticFieldRef(SootFieldRef fieldRef)
-
-
Method Detail
-
toString
public void toString(UnitPrinter up)
-
getFieldRef
public SootFieldRef getFieldRef()
- Specified by:
getFieldRefin interfaceFieldRef
-
setFieldRef
public void setFieldRef(SootFieldRef fieldRef)
- Specified by:
setFieldRefin interfaceFieldRef
-
getUseBoxes
public 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()
Description copied from interface:EquivToReturns a (not necessarily fixed) hash code for this object. This hash code coincides with equivTo; it is undefined in the presence of mutable objects.- Specified by:
equivHashCodein interfaceEquivTo
-
convertToBaf
public void convertToBaf(JimpleToBafContext context, List<Unit> out)
- Specified by:
convertToBafin interfaceConvertToBaf
-
-