Package soot.jimple.internal
Class JimpleLocal
- java.lang.Object
-
- soot.jimple.internal.JimpleLocal
-
- All Implemented Interfaces:
Serializable,EquivTo,Immediate,ConvertToBaf,Local,Numberable,Switchable,Value
- Direct Known Subclasses:
FakeJimpleLocal
public class JimpleLocal extends Object implements Local, ConvertToBaf
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description JimpleLocal(String name, Type type)Constructs a JimpleLocal of the given name and type.
-
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 the current JimpleLocal.voidconvertToBaf(JimpleToBafContext context, List<Unit> out)intequivHashCode()Returns a hash code for this object, consistent with structural equality.booleanequivTo(Object o)Returns true if the given object is structurally equal to this one.StringgetName()Returns the name of this object.intgetNumber()TypegetType()Returns the type of this local.List<ValueBox>getUseBoxes()Returns a List of boxes corresponding to Values which are used by (ie contained within) this Value.booleanisStackLocal()voidsetName(String name)Sets the name of this object as given.voidsetNumber(int number)voidsetType(Type t)Sets the type of this local.StringtoString()voidtoString(UnitPrinter up)
-
-
-
Method Detail
-
equivTo
public boolean equivTo(Object o)
Returns true if the given object is structurally equal to this one.
-
equivHashCode
public int equivHashCode()
Returns a hash code for this object, consistent with structural equality.- Specified by:
equivHashCodein interfaceEquivTo
-
clone
public Object clone()
Returns a clone of the current JimpleLocal.
-
getName
public String getName()
Returns the name of this object.
-
setName
public void setName(String name)
Sets the name of this object as given.
-
getType
public Type getType()
Returns the type of this local.
-
setType
public void setType(Type t)
Sets the type of this local.
-
toString
public void toString(UnitPrinter up)
-
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
-
apply
public void apply(Switch sw)
Description copied from interface:SwitchableCalled when this object is visited.- Specified by:
applyin interfaceSwitchable
-
convertToBaf
public void convertToBaf(JimpleToBafContext context, List<Unit> out)
- Specified by:
convertToBafin interfaceConvertToBaf
-
getNumber
public final int getNumber()
- Specified by:
getNumberin interfaceNumberable
-
setNumber
public void setNumber(int number)
- Specified by:
setNumberin interfaceNumberable
-
isStackLocal
public boolean isStackLocal()
- Specified by:
isStackLocalin interfaceLocal
-
-