public class JimpleLocal extends Object implements Local, ConvertToBaf
Constructor and Description |
---|
JimpleLocal(String name,
Type type)
Constructs a JimpleLocal of the given name and type.
|
Modifier and Type | Method and Description |
---|---|
void |
apply(Switch sw)
Called when this object is visited.
|
Object |
clone()
Returns a clone of the current JimpleLocal.
|
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 the given object is structurally equal to this one.
|
String |
getName()
Returns the name of this object.
|
int |
getNumber() |
Type |
getType()
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.
|
void |
setName(String name)
Sets the name of this object as given.
|
void |
setNumber(int number) |
void |
setType(Type t)
Sets the type of this local.
|
String |
toString() |
void |
toString(UnitPrinter up) |
public boolean equivTo(Object o)
public int equivHashCode()
equivHashCode
in interface EquivTo
public Object clone()
public String getName()
public void setName(String name)
public Type getType()
public void setType(Type t)
public void toString(UnitPrinter up)
public final List<ValueBox> getUseBoxes()
Value
getUseBoxes
in interface Value
public void apply(Switch sw)
Switchable
apply
in interface Switchable
public void convertToBaf(JimpleToBafContext context, List<Unit> out)
convertToBaf
in interface ConvertToBaf
public final int getNumber()
getNumber
in interface Numberable
public final void setNumber(int number)
setNumber
in interface Numberable