- All Known Subinterfaces:
TypeAnnotation.CatchTarget,TypeAnnotation.EmptyTarget,TypeAnnotation.FormalParameterTarget,TypeAnnotation.LocalVarTarget,TypeAnnotation.OffsetTarget,TypeAnnotation.SupertypeTarget,TypeAnnotation.ThrowsTarget,TypeAnnotation.TypeArgumentTarget,TypeAnnotation.TypeParameterBoundTarget,TypeAnnotation.TypeParameterTarget
- All Known Implementing Classes:
TargetInfoImpl.CatchTargetImpl,TargetInfoImpl.EmptyTargetImpl,TargetInfoImpl.FormalParameterTargetImpl,TargetInfoImpl.LocalVarTargetImpl,TargetInfoImpl.OffsetTargetImpl,TargetInfoImpl.SupertypeTargetImpl,TargetInfoImpl.ThrowsTargetImpl,TargetInfoImpl.TypeArgumentTargetImpl,TargetInfoImpl.TypeParameterBoundTargetImpl,TargetInfoImpl.TypeParameterTargetImpl
- Enclosing interface:
TypeAnnotation
public static sealed interface TypeAnnotation.TargetInfo
permits TypeAnnotation.TypeParameterTarget, TypeAnnotation.SupertypeTarget, TypeAnnotation.TypeParameterBoundTarget, TypeAnnotation.EmptyTarget, TypeAnnotation.FormalParameterTarget, TypeAnnotation.ThrowsTarget, TypeAnnotation.LocalVarTarget, TypeAnnotation.CatchTarget, TypeAnnotation.OffsetTarget, TypeAnnotation.TypeArgumentTarget
Specifies which type in a declaration or expression is being annotated.
-
Method Summary
Modifier and TypeMethodDescriptionstatic TypeAnnotation.EmptyTargetof(TypeAnnotation.TargetType targetType) ofCastExpr(Label target, int typeArgumentIndex) ofClassExtends(int supertypeIndex) ofClassTypeParameter(int typeParameterIndex) ofClassTypeParameterBound(int typeParameterIndex, int boundIndex) ofConstructorInvocationTypeArgument(Label target, int typeArgumentIndex) static TypeAnnotation.OffsetTargetofConstructorReference(Label target) ofConstructorReferenceTypeArgument(Label target, int typeArgumentIndex) static TypeAnnotation.CatchTargetofExceptionParameter(int exceptionTableIndex) static TypeAnnotation.EmptyTargetofField()static TypeAnnotation.OffsetTargetofInstanceofExpr(Label target) ofMethodFormalParameter(int formalParameterIndex) ofMethodInvocationTypeArgument(Label target, int typeArgumentIndex) static TypeAnnotation.EmptyTargetstatic TypeAnnotation.OffsetTargetofMethodReference(Label target) ofMethodReferenceTypeArgument(Label target, int typeArgumentIndex) static TypeAnnotation.EmptyTargetofMethodTypeParameter(int typeParameterIndex) ofMethodTypeParameterBound(int typeParameterIndex, int boundIndex) static TypeAnnotation.OffsetTargetstatic TypeAnnotation.OffsetTargetofOffset(TypeAnnotation.TargetType targetType, Label target) static TypeAnnotation.ThrowsTargetofThrows(int throwsTargetIndex) ofTypeArgument(TypeAnnotation.TargetType targetType, Label target, int typeArgumentIndex) ofTypeParameter(TypeAnnotation.TargetType targetType, int typeParameterIndex) ofTypeParameterBound(TypeAnnotation.TargetType targetType, int typeParameterIndex, int boundIndex) ofVariable(TypeAnnotation.TargetType targetType, List<TypeAnnotation.LocalVarTargetInfo> table) default intsize()
-
Method Details
-
targetType
TypeAnnotation.TargetType targetType() -
size
default int size() -
ofTypeParameter
static TypeAnnotation.TypeParameterTarget ofTypeParameter(TypeAnnotation.TargetType targetType, int typeParameterIndex) -
ofClassTypeParameter
-
ofMethodTypeParameter
-
ofClassExtends
-
ofTypeParameterBound
static TypeAnnotation.TypeParameterBoundTarget ofTypeParameterBound(TypeAnnotation.TargetType targetType, int typeParameterIndex, int boundIndex) -
ofClassTypeParameterBound
static TypeAnnotation.TypeParameterBoundTarget ofClassTypeParameterBound(int typeParameterIndex, int boundIndex) -
ofMethodTypeParameterBound
static TypeAnnotation.TypeParameterBoundTarget ofMethodTypeParameterBound(int typeParameterIndex, int boundIndex) -
of
-
ofField
-
ofMethodReturn
-
ofMethodReceiver
-
ofMethodFormalParameter
-
ofThrows
-
ofVariable
static TypeAnnotation.LocalVarTarget ofVariable(TypeAnnotation.TargetType targetType, List<TypeAnnotation.LocalVarTargetInfo> table) -
ofLocalVariable
-
ofResourceVariable
static TypeAnnotation.LocalVarTarget ofResourceVariable(List<TypeAnnotation.LocalVarTargetInfo> table) -
ofExceptionParameter
-
ofOffset
-
ofInstanceofExpr
-
ofNewExpr
-
ofConstructorReference
-
ofMethodReference
-
ofTypeArgument
static TypeAnnotation.TypeArgumentTarget ofTypeArgument(TypeAnnotation.TargetType targetType, Label target, int typeArgumentIndex) -
ofCastExpr
-
ofConstructorInvocationTypeArgument
static TypeAnnotation.TypeArgumentTarget ofConstructorInvocationTypeArgument(Label target, int typeArgumentIndex) -
ofMethodInvocationTypeArgument
static TypeAnnotation.TypeArgumentTarget ofMethodInvocationTypeArgument(Label target, int typeArgumentIndex) -
ofConstructorReferenceTypeArgument
static TypeAnnotation.TypeArgumentTarget ofConstructorReferenceTypeArgument(Label target, int typeArgumentIndex) -
ofMethodReferenceTypeArgument
static TypeAnnotation.TypeArgumentTarget ofMethodReferenceTypeArgument(Label target, int typeArgumentIndex)
-