| Modifier and Type | Field and Description |
|---|---|
| public static final int | ARRAY_ELEMENT
A type path step that steps into the element type of an array type. |
| public static final int | INNER_TYPE
A type path step that steps into the nested type of a class type. |
| public static final int | TYPE_ARGUMENT
A type path step that steps into a type argument of a generic type. |
| private final byte[] | typePathContainer
The byte array where the 'type_path' structure - as defined in the Java Virtual Machine Specification (JVMS) - corresponding to this TypePath is stored. |
| private final int | typePathOffset
The offset of the first byte of the type_path JVMS structure in |
| public static final int | WILDCARD_BOUND
A type path step that steps into the bound of a wildcard type. |
| Access | Constructor and Description |
|---|---|
| pack-priv | TypePath(final byte[]
a byte array containing a type_path JVMS structure. typePathContainer, final int the offset of the first byte of the type_path structure in
typePathContainer. typePathOffset)Constructs a new TypePath. |
| Modifier and Type | Method and Description |
|---|---|
| public static TypePath | Returns: the corresponding TypePath object, or null if the path is empty.a type path in string form, in the format used by typePath)toString(). May be
null or empty.Converts a type path in string form, in the format used by |
| public int | Returns: the length of this path.Returns the length of this path, i.e. its number of steps. |
| public int | getStep(final int
an index between 0 and index)getLength(), exclusive.Returns the value of the given step of this path. |
| public int | Returns: the index of the type argument that the given step is stepping into.an index between 0 and index)getLength(), exclusive.Returns the index of the type argument that the given step is stepping into. |
| pack-priv static void | put(final TypePath
a TypePath instance, or null for empty paths. typePath, final ByteVector where the type path must be put. output)Puts the type_path JVMS structure corresponding to the given TypePath into the given ByteVector. |
| public String |
| ARRAY_ELEMENT | back to summary |
|---|---|
| public static final int ARRAY_ELEMENT A type path step that steps into the element type of an array type. See | |
| INNER_TYPE | back to summary |
|---|---|
| public static final int INNER_TYPE A type path step that steps into the nested type of a class type. See | |
| TYPE_ARGUMENT | back to summary |
|---|---|
| public static final int TYPE_ARGUMENT A type path step that steps into a type argument of a generic type. See | |
| typePathContainer | back to summary |
|---|---|
| private final byte[] typePathContainer The byte array where the 'type_path' structure - as defined in the Java Virtual Machine
Specification (JVMS) - corresponding to this TypePath is stored. The first byte of the
structure in this array is given by
| |
| typePathOffset | back to summary |
|---|---|
| private final int typePathOffset The offset of the first byte of the type_path JVMS structure in | |
| WILDCARD_BOUND | back to summary |
|---|---|
| public static final int WILDCARD_BOUND A type path step that steps into the bound of a wildcard type. See | |
| TypePath | back to summary |
|---|---|
| pack-priv TypePath(final byte[] typePathContainer, final int typePathOffset) Constructs a new TypePath.
| |
| fromString | back to summary |
|---|---|
| public static TypePath fromString(final String typePath) Converts a type path in string form, in the format used by
| |
| getLength | back to summary |
|---|---|
| public int getLength() Returns the length of this path, i.e. its number of steps.
| |
| getStep | back to summary |
|---|---|
| public int getStep(final int index) Returns the value of the given step of this path.
| |
| getStepArgument | back to summary |
|---|---|
| public int getStepArgument(final int index) Returns the index of the type argument that the given step is stepping into. This method should
only be used for steps whose value is
| |
| put | back to summary |
|---|---|
| pack-priv static void put(final TypePath typePath, final ByteVector output) Puts the type_path JVMS structure corresponding to the given TypePath into the given ByteVector.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Returns a string representation of this type path.
| |