public class TypeAnnotationPosition extends Object
This is NOT part of any supported API. If you write code that depends on this, you do so at your own risk. This code and its internal interfaces are subject to change or deletion without notice.
Modifier and Type | Class and Description |
---|---|
static class |
TypeAnnotationPosition.TypePathEntry |
static class |
TypeAnnotationPosition.TypePathEntryKind |
Modifier and Type | Field and Description |
---|---|
int |
bound_index |
int |
exception_index |
boolean |
isValidOffset |
List<TypeAnnotationPosition.TypePathEntry> |
location |
int[] |
lvarIndex |
int[] |
lvarLength |
int[] |
lvarOffset |
int |
offset |
JCTree.JCLambda |
onLambda |
int |
parameter_index |
int |
pos |
TargetType |
type |
int |
type_index |
Constructor and Description |
---|
TypeAnnotationPosition() |
Modifier and Type | Method and Description |
---|---|
boolean |
emitToClassfile()
Indicates whether the target tree of the annotation has been optimized
away from classfile or not.
|
static List<Integer> |
getBinaryFromTypePath(List<TypeAnnotationPosition.TypePathEntry> locs) |
static List<TypeAnnotationPosition.TypePathEntry> |
getTypePathFromBinary(List<Integer> list)
Decode the binary representation for a type path and set
the
location field. |
boolean |
matchesPos(int pos) |
String |
toString() |
void |
updatePosOffset(int to) |
public TargetType type
public List<TypeAnnotationPosition.TypePathEntry> location
public int pos
public boolean isValidOffset
public int offset
public int[] lvarOffset
public int[] lvarLength
public int[] lvarIndex
public int bound_index
public int parameter_index
public int type_index
public int exception_index
public JCTree.JCLambda onLambda
public boolean emitToClassfile()
public boolean matchesPos(int pos)
public void updatePosOffset(int to)
public static List<TypeAnnotationPosition.TypePathEntry> getTypePathFromBinary(List<Integer> list)
location
field.list
- The bytecode representation of the type path.public static List<Integer> getBinaryFromTypePath(List<TypeAnnotationPosition.TypePathEntry> locs)
Copyright © 2015. All rights reserved.