-
- All Implemented Interfaces:
public final class TypeAnnotation extends SubStructure
Describes an entry in a RuntimeVisibleTypeAnnotations or RuntimeInvisibleTypeAnnotations attribute structure.
-
-
Field Summary
Fields Modifier and Type Field Description private TypeAnnotationTargetTypetargetTypeprivate TargetInfotargetInfoprivate Array<TypePathEntry>typePathEntriesprivate Annotationannotationprivate final Integerlength
-
Constructor Summary
Constructors Constructor Description TypeAnnotation(TypeAnnotationTargetType targetType, TargetInfo targetInfo)Constructor.
-
Method Summary
Modifier and Type Method Description final TypeAnnotationTargetTypegetTargetType()The target type. final UnitsetTargetType(TypeAnnotationTargetType targetType)The target type. final TargetInfogetTargetInfo()The target info. final UnitsetTargetInfo(TargetInfo targetInfo)The target info. final Array<TypePathEntry>getTypePathEntries()The type path entries. final UnitsetTypePathEntries(Array<TypePathEntry> typePathEntries)The type path entries. final AnnotationgetAnnotation()The annotation. final UnitsetAnnotation(Annotation annotation)The annotation. IntegergetLength()The length of the structure in bytes. -
-
Constructor Detail
-
TypeAnnotation
TypeAnnotation(TypeAnnotationTargetType targetType, TargetInfo targetInfo)
Constructor.- Parameters:
targetType- the target typetargetInfo- the target info
-
-
Method Detail
-
getTargetType
final TypeAnnotationTargetType getTargetType()
The target type.
-
setTargetType
final Unit setTargetType(TypeAnnotationTargetType targetType)
The target type.
-
getTargetInfo
final TargetInfo getTargetInfo()
The target info.
-
setTargetInfo
final Unit setTargetInfo(TargetInfo targetInfo)
The target info.
-
getTypePathEntries
final Array<TypePathEntry> getTypePathEntries()
The type path entries.
-
setTypePathEntries
final Unit setTypePathEntries(Array<TypePathEntry> typePathEntries)
The type path entries.
-
getAnnotation
final Annotation getAnnotation()
The annotation.
-
setAnnotation
final Unit setAnnotation(Annotation annotation)
The annotation.
-
-
-
-