| Modifier and Type | Class and Description |
|---|---|
class |
ClassExtendsTypeTarget
Represents a target of type annotation which occurs in the
extends or implements clause
of an enclosing class. |
class |
ClassInfo
Represents a class entry in an index.
|
class |
EmptyTypeTarget
Represents a target of type annotation which occurs directly on a field type, a method return type,
or a method receiver type.
|
class |
FieldInfo
Represents a field.
|
class |
MethodInfo
Represents a Java method, constructor, or static initializer.
|
class |
MethodParameterInfo
Represents an individual Java method parameter that was annotated.
|
class |
MethodParameterTypeTarget
Represents a type annotation target which occurs within a method parameter type.
|
class |
PositionBasedTypeTarget
A common parent for type targets which provide a position.
|
class |
RecordComponentInfo
Represents an individual Java record component that was annotated.
|
class |
ThrowsTypeTarget
Represents a target of type annotation which occurs in the
throws clause of an enclosing method. |
class |
TypeParameterBoundTypeTarget
Represents a target of type annotation which occurs within a bound of type parameter.
|
class |
TypeParameterTypeTarget
Represents a target of type annotation which occurs within a type parameter.
|
class |
TypeTarget
Represents a type that is the target of a type annotation.
|
| Modifier and Type | Method and Description |
|---|---|
AnnotationTarget |
TypeTarget.enclosingTarget()
Returns the enclosing target that contains the type referred to by the
TypeTarget.target() method. |
AnnotationTarget |
AnnotationInstance.target()
The Java element that this annotation was declared on.
|
| Modifier and Type | Method and Description |
|---|---|
AnnotationInstance |
AnnotationInstanceBuilder.buildWithTarget(AnnotationTarget target)
Returns an
AnnotationInstance that includes all annotation members defined by
previous method calls on this builder. |
static AnnotationInstance |
AnnotationInstance.create(DotName name,
AnnotationTarget target,
AnnotationValue[] values)
Construct a new mock annotation instance.
|
static AnnotationInstance |
AnnotationInstance.create(DotName name,
AnnotationTarget target,
List<AnnotationValue> values)
Construct a new mock annotation instance.
|
static AnnotationInstance |
AnnotationInstance.create(DotName name,
boolean visible,
AnnotationTarget target,
AnnotationValue[] values)
Construct a new mock annotation instance.
|
static AnnotationInstance |
AnnotationInstance.create(DotName name,
boolean visible,
AnnotationTarget target,
List<AnnotationValue> values)
Construct a new mock annotation instance.
|
static EquivalenceKey |
EquivalenceKey.of(AnnotationTarget annotationTarget)
Returns an equivalence key for given
annotation target. |
| Constructor and Description |
|---|
ClassExtendsTypeTarget(AnnotationTarget enclosingTarget,
Type target,
int position) |
Copyright © 2018–2022. All rights reserved.