Package com.google.turbine.bytecode
Class ClassFile.TypeAnnotationInfo.TypePath
- java.lang.Object
-
- com.google.turbine.bytecode.ClassFile.TypeAnnotationInfo.TypePath
-
- Enclosing class:
- ClassFile.TypeAnnotationInfo
public static class ClassFile.TypeAnnotationInfo.TypePath extends java.lang.ObjectA JVMS 4.7.20.2 type_path.Represented as an immutable linked-list of nodes, which is built out by
Lowerwhile recursively searching for type annotations to process.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ClassFile.TypeAnnotationInfo.TypePatharray()Adds an array type_path_kind entry.com.google.common.collect.ImmutableList<ClassFile.TypeAnnotationInfo.TypePath>flatten()Returns a flattened view of the type path.ClassFile.TypeAnnotationInfo.TypePathnested()Adds a nested type type_path_kind entry.static ClassFile.TypeAnnotationInfo.TypePathroot()The root type_path_kind, used for initialization.bytetag()The JVMS 4.7.20.2-A serialized value of the type_path_kind.ClassFile.TypeAnnotationInfo.TypePathtypeArgument(int idx)Adds a type argument type_path_kind entry.inttypeArgumentIndex()The type argument index; set only if the kind isTYPE_ARGUMENT.ClassFile.TypeAnnotationInfo.TypePathwild()Adds a wildcard bound type_path_kind entry.
-
-
-
Method Detail
-
root
public static ClassFile.TypeAnnotationInfo.TypePath root()
The root type_path_kind, used for initialization.
-
array
public ClassFile.TypeAnnotationInfo.TypePath array()
Adds an array type_path_kind entry.
-
nested
public ClassFile.TypeAnnotationInfo.TypePath nested()
Adds a nested type type_path_kind entry.
-
wild
public ClassFile.TypeAnnotationInfo.TypePath wild()
Adds a wildcard bound type_path_kind entry.
-
typeArgument
public ClassFile.TypeAnnotationInfo.TypePath typeArgument(int idx)
Adds a type argument type_path_kind entry.
-
typeArgumentIndex
public int typeArgumentIndex()
The type argument index; set only if the kind isTYPE_ARGUMENT.
-
tag
public byte tag()
The JVMS 4.7.20.2-A serialized value of the type_path_kind.
-
flatten
public com.google.common.collect.ImmutableList<ClassFile.TypeAnnotationInfo.TypePath> flatten()
Returns a flattened view of the type path.
-
-