|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.android.dx.rop.code.SourcePosition
public final class SourcePosition
Information about a source position for code, which includes both a line number and original bytecode address.
| Field Summary | |
|---|---|
static SourcePosition |
NO_INFO
non-null; convenient "no information known" instance |
| Constructor Summary | |
|---|---|
SourcePosition(CstString sourceFile,
int address,
int line)
Constructs an instance. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object other)
|
int |
getAddress()
Gets the original bytecode address. |
int |
getLine()
Gets the original line number. |
CstString |
getSourceFile()
Gets the source file, if known. |
int |
hashCode()
|
boolean |
sameLine(SourcePosition other)
Returns whether the lines match between this instance and the one given. |
boolean |
sameLineAndFile(SourcePosition other)
Returns whether the lines and files match between this instance and the one given. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final SourcePosition NO_INFO
non-null; convenient "no information known" instance
| Constructor Detail |
|---|
public SourcePosition(CstString sourceFile,
int address,
int line)
sourceFile - null-ok; name of the file of origin or
null if unknownaddress - >= -1; original bytecode address or -1
if unknownline - >= -1; original line number or -1 if
unknown| Method Detail |
|---|
public String toString()
toString in class Objectpublic boolean equals(Object other)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic boolean sameLine(SourcePosition other)
other - non-null; the instance to compare to
true iff the lines matchpublic boolean sameLineAndFile(SourcePosition other)
other - non-null; the instance to compare to
true iff the lines and files matchpublic CstString getSourceFile()
null-ok; the source file or null if unknownpublic int getAddress()
>= -1; the address or -1 if unknownpublic int getLine()
>= -1; the original line number or -1 if
unknown
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||