|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.android.dx.cf.code.LocalVariableList.Item
public static class LocalVariableList.Item
Item in a local variable table.
| Constructor Summary | |
|---|---|
LocalVariableList.Item(int startPc,
int length,
CstString name,
CstString descriptor,
CstString signature,
int index)
Constructs an instance. |
|
| Method Summary | |
|---|---|
CstString |
getDescriptor()
Gets the variable's type descriptor. |
int |
getIndex()
Gets the variable's local index. |
int |
getLength()
Gets the length (in bytecodes) of this variable's scope. |
LocalItem |
getLocalItem()
Gets the variable's LocalItem, a (name, signature) tuple |
int |
getStartPc()
Gets the start pc of this variable's scope. |
Type |
getType()
Gets the variable's type descriptor. |
boolean |
matchesAllButType(LocalVariableList.Item other)
Gets whether this instance matches (describes) the given other instance exactly in all fields except type descriptor and type signature. |
boolean |
matchesPcAndIndex(int pc,
int index)
Gets whether this instance matches (describes) the given address and index. |
LocalVariableList.Item |
withSignature(CstString newSignature)
Constructs and returns an instance which is identical to this one, except that the signature is changed to the given value. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LocalVariableList.Item(int startPc,
int length,
CstString name,
CstString descriptor,
CstString signature,
int index)
Note: At least one of descriptor or
signature must be passed as non-null.
startPc - >= 0; the start pc of this variable's scopelength - >= 0; the length (in bytecodes) of this variable's
scopename - non-null; the variable's namedescriptor - null-ok; the variable's type descriptorsignature - null-ok; the variable's type signatureindex - >= 0; the variable's local index| Method Detail |
|---|
public int getStartPc()
>= 0; the start pc of this variable's scopepublic int getLength()
>= 0; the length (in bytecodes) of this variable's scopepublic CstString getDescriptor()
null-ok; the variable's type descriptorpublic LocalItem getLocalItem()
null-ok; the variable's type descriptorpublic int getIndex()
>= 0; the variable's local indexpublic Type getType()
Type.intern(getDescriptor().getString()).
non-null; the variable's typepublic LocalVariableList.Item withSignature(CstString newSignature)
newSignature - non-null; the new signature
non-null; an appropriately-constructed instance
public boolean matchesPcAndIndex(int pc,
int index)
pc - >= 0; the address in questionindex - >= 0; the local variable index in question
true iff this instance matches pc
and indexpublic boolean matchesAllButType(LocalVariableList.Item other)
other - non-null; the instance to compare to
true iff this instance matches
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||