public class JimpleLocal extends java.lang.Object implements Local
| Constructor and Description |
|---|
JimpleLocal(java.lang.String name,
Type t)
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.
|
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.
|
int |
getIndex()
Returns the index of the bytecode local variable this Local represents or
-1 if it doesn't represent a local variable.
|
java.lang.String |
getName()
Returns the name of this object.
|
int |
getNumber() |
Type |
getType()
Returns the type of this local.
|
java.util.List |
getUseBoxes()
Returns a List of boxes corresponding to Values
which are used by (ie contained within) this Value.
|
int |
hashCode()
Returns a hashCode consistent with object equality.
|
void |
setIndex(int index)
Sets the index of the bytecode local variable this Local represents.
|
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 t)
public boolean equivTo(java.lang.Object o)
public int equivHashCode()
equivHashCode in interface EquivTopublic java.lang.Object clone()
public java.lang.String getName()
public void setName(java.lang.String name)
public int getIndex()
Localpublic void setIndex(int index)
Localpublic int hashCode()
hashCode in class java.lang.Objectpublic Type getType()
public void setType(Type t)
public java.lang.String toString()
toString in class java.lang.Objectpublic void toString(UnitPrinter up)
public java.util.List getUseBoxes()
ValuegetUseBoxes in interface Valuepublic void apply(Switch sw)
Switchableapply in interface Switchablepublic final int getNumber()
getNumber in interface Numberablepublic final void setNumber(int number)
setNumber in interface NumberableCopyright © 2012-2019 RoboVM AB. All Rights Reserved.