public class CodePosition
extends java.lang.Object
These objects describe code positions.
Code positions can be retrieved using CodeView.getCodePosition(int).
| Constructor and Description | 
|---|
| CodePosition(java.lang.String signature)Create a code position, for a class, field, or method. | 
| CodePosition(java.lang.String signature,
            int offset)Create a code position, for a class, field, method, or instruction. | 
| Modifier and Type | Method and Description | 
|---|---|
| int | getOffset()Get the method-relative position offset, only valid within a method. | 
| java.lang.String | getSignature()Get the signature of the code item. | 
public CodePosition(java.lang.String signature,
                    int offset)
Create a code position, for a class, field, method, or instruction.
signature - the item signatureoffset - optional, for instructions only (signature must be of a method)public CodePosition(java.lang.String signature)
Create a code position, for a class, field, or method.
signature - the item signaturepublic java.lang.String getSignature()
Get the signature of the code item.
The item could be:
public int getOffset()
Get the method-relative position offset, only valid within a method.