Modifier and Type | Field and Description |
---|---|
private final int | |
private final BytecodePosition | |
private final ResolvedJavaMethod |
Access | Constructor and Description |
---|---|
public | BytecodePosition(BytecodePosition
the parent position caller, ResolvedJavaMethod the method method, int a BCI such that bci)method.codeSize() == 0 || bci < method.getCodeSize() . That
is, if code size is 0 then allow any value, otherwise the bci must be less than
the code size.Constructs a new object representing a given parent/caller, a given method, and a given BCI. |
Modifier and Type | Method and Description |
---|---|
public BytecodePosition | |
public boolean | equals(Object
the reference object with which to compare. obj)Overrides java. Deep equality test. |
public int | Returns: The location within the method, as a bytecode index. The constant-1 may be
used to indicate the location is unknown, for example within code synthesized by the
compiler.
|
public BytecodePosition | |
public ResolvedJavaMethod | |
public int | |
public String | Returns: a string representation of this code positionOverrides java. Converts this code position to a string representation. |
bci | back to summary |
---|---|
private final int bci |
caller | back to summary |
---|---|
private final BytecodePosition caller |
method | back to summary |
---|---|
private final ResolvedJavaMethod method |
BytecodePosition | back to summary |
---|---|
public BytecodePosition(BytecodePosition caller, ResolvedJavaMethod method, int bci) Constructs a new object representing a given parent/caller, a given method, and a given BCI.
|
addCaller | back to summary |
---|---|
public BytecodePosition addCaller(BytecodePosition link) Adds a caller to the current position returning the new position. |
equals | back to summary |
---|---|
public boolean equals(Object obj) Overrides java. Deep equality test.
|
getBCI | back to summary |
---|---|
public int getBCI()
|
getCaller | back to summary |
---|---|
public BytecodePosition getCaller() The position where this position has been called, |
getMethod | back to summary |
---|---|
public ResolvedJavaMethod getMethod()
|
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
|
toString | back to summary |
---|---|
public String toString() Overrides java. Converts this code position to a string representation. |