public class JimpleLocal extends java.lang.Object implements Local, ConvertToBaf
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
name |
Constructor and Description |
---|
JimpleLocal(java.lang.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.
|
java.lang.Object |
clone()
Returns a clone of the current JimpleLocal.
|
void |
convertToBaf(JimpleToBafContext context,
java.util.List<Unit> out) |
int |
equivHashCode()
Returns a hash code for this object, consistent with structural equality.
|
boolean |
equivTo(java.lang.Object o)
Returns true if the given object is structurally equal to this one.
|
java.lang.String |
getName()
Returns the name of this object.
|
int |
getNumber() |
Type |
getType()
Returns the type of this local.
|
java.util.List<ValueBox> |
getUseBoxes()
Returns a List of boxes corresponding to Values
which are used by (ie contained within) this Value.
|
void |
setName(java.lang.String name)
Sets the name of this object as given.
|
void |
setNumber(int number) |
void |
setType(Type t)
Sets the type of this local.
|
java.lang.String |
toString() |
void |
toString(UnitPrinter up) |
public JimpleLocal(java.lang.String name, Type type)
public boolean equivTo(java.lang.Object o)
public int equivHashCode()
equivHashCode
in interface EquivTo
public java.lang.Object clone()
public java.lang.String getName()
public void setName(java.lang.String name)
public Type getType()
public void setType(Type t)
public java.lang.String toString()
toString
in class java.lang.Object
public void toString(UnitPrinter up)
public final java.util.List<ValueBox> getUseBoxes()
Value
getUseBoxes
in interface Value
public void apply(Switch sw)
Switchable
apply
in interface Switchable
public void convertToBaf(JimpleToBafContext context, java.util.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