| Modifier and Type | Field and Description |
|---|---|
| private final int | address
|
| private final int | line
|
| public static final SourcePosition | NO_INFO
|
| private final CstString | sourceFile
|
| Access | Constructor and Description |
|---|---|
| public | SourcePosition(CstString
null-ok; name of the file of origin or
null if unknown>= -1; original bytecode address or -1
if unknown>= -1; original line number or -1 if
unknownConstructs an instance. |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | equals(Object
the reference object with which to compare. other)Overrides java. |
| public int | |
| public int | |
| public CstString | |
| public int | |
| public boolean | Returns: true iff the lines matchnon-null; the instance to compare toReturns whether the lines match between this instance and the one given. |
| public boolean | Returns: true iff the lines and files matchnon-null; the instance to compare toReturns whether the lines and files match between this instance and the one given. |
| public String |
| address | back to summary |
|---|---|
| private final int address
| |
| line | back to summary |
|---|---|
| private final int line
| |
| NO_INFO | back to summary |
|---|---|
| public static final SourcePosition NO_INFO
| |
| sourceFile | back to summary |
|---|---|
| private final CstString sourceFile
| |
| SourcePosition | back to summary |
|---|---|
| public SourcePosition(CstString sourceFile, int address, int line) Constructs an instance.
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object other) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| getAddress | back to summary |
|---|---|
| public int getAddress() Gets the original bytecode address.
| |
| getLine | back to summary |
|---|---|
| public int getLine() Gets the original line number.
| |
| getSourceFile | back to summary |
|---|---|
| public CstString getSourceFile() Gets the source file, if known.
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| sameLine | back to summary |
|---|---|
| public boolean sameLine(SourcePosition other) Returns whether the lines match between this instance and the one given.
| |
| sameLineAndFile | back to summary |
|---|---|
| public boolean sameLineAndFile(SourcePosition other) Returns whether the lines and files match between this instance and the one given.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |