Package soot.baf.internal
Class BafLocal
- java.lang.Object
-
- soot.baf.internal.BafLocal
-
- All Implemented Interfaces:
Serializable,EquivTo,Immediate,Local,Numberable,Switchable,Value
public class BafLocal extends Object implements Local
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidapply(Switch s)Called when this object is visited.Objectclone()Returns a clone of this Value.intequivHashCode()Returns a hash code for this object, consistent with structural equality.booleanequivTo(Object o)Returns true if this object is equivalent to o.StringgetName()Returns the name of the current Local variable.intgetNumber()LocalgetOriginalLocal()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.booleanisStackLocal()voidsetName(String name)Sets the name of the current variable.voidsetNumber(int number)voidsetOriginalLocal(Local l)voidsetType(Type t)Sets the type of the current variable.StringtoString()voidtoString(UnitPrinter up)
-
-
-
Method Detail
-
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
-
getOriginalLocal
public Local getOriginalLocal()
-
setOriginalLocal
public void setOriginalLocal(Local l)
-
getName
public String getName()
Description copied from interface:LocalReturns the name of the current Local variable.
-
setName
public void setName(String name)
Description copied from interface:LocalSets the name of the current variable.
-
getType
public Type getType()
Description copied from interface:ValueReturns the Soot type of this Value.
-
setType
public void setType(Type t)
Description copied from interface:LocalSets the type of the current variable.
-
toString
public void toString(UnitPrinter up)
-
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
-
apply
public void apply(Switch s)
Description copied from interface:SwitchableCalled when this object is visited.- Specified by:
applyin interfaceSwitchable
-
getNumber
public final int getNumber()
- Specified by:
getNumberin interfaceNumberable
-
setNumber
public final void setNumber(int number)
- Specified by:
setNumberin interfaceNumberable
-
isStackLocal
public boolean isStackLocal()
- Specified by:
isStackLocalin interfaceLocal
-
-