public interface AnnotationTarget
ClassInfo
,
FieldInfo
,
MethodInfo
,
MethodParameterInfo
Modifier and Type | Interface and Description |
---|---|
static class |
AnnotationTarget.Kind
Specifies the kind of object a target represents.
|
Modifier and Type | Method and Description |
---|---|
ClassInfo |
asClass()
Casts and returns this target as a
ClassInfo if it is of kind CLASS |
FieldInfo |
asField()
Casts and returns this target as a
FieldInfo if it is of kind FIELD |
MethodInfo |
asMethod()
Casts and returns this target as a
MethodInfo if it is of kind METHOD |
MethodParameterInfo |
asMethodParameter()
Casts and returns this target as a
MethodParameterInfo if it is of kind METHOD_PARAMETER |
TypeTarget |
asType()
Casts and returns this target as a
TypeTarget if it is of kind TYPE |
AnnotationTarget.Kind |
kind()
Returns the kind of object this target represents.
|
AnnotationTarget.Kind kind()
ClassInfo asClass()
ClassInfo
if it is of kind CLASS
FieldInfo asField()
FieldInfo
if it is of kind FIELD
MethodInfo asMethod()
MethodInfo
if it is of kind METHOD
MethodParameterInfo asMethodParameter()
MethodParameterInfo
if it is of kind METHOD_PARAMETER
TypeTarget asType()
TypeTarget
if it is of kind TYPE
Copyright © 2018 JBoss by Red Hat. All rights reserved.