Class MethodInfo
- java.lang.Object
-
- org.jboss.jandex.MethodInfo
-
- All Implemented Interfaces:
AnnotationTarget
,Declaration
,Descriptor
,GenericSignature
public final class MethodInfo extends java.lang.Object implements Declaration, Descriptor, GenericSignature
Represents a Java method, constructor, or static initializer.Jandex makes reasonable attempts to not include implicitly declared (aka mandated) and synthetic parameters in
parameters()
,parameterTypes()
,parameterName(int)
,parameterType(int)
andparametersCount()
. However,descriptorParameterTypes()
anddescriptorParametersCount()
may be used to obtain information about all parameters, including mandated and synthetic.As an exception to the rule above, implicitly declared parameters are always included in case of methods that don't have an explicit parameter list. These are:
- the implicitly declared
valueOf()
method in enums; - the compact constructor in records.
Thread-Safety
This class is immutable and can be shared between threads without safe publication.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.jboss.jandex.AnnotationTarget
AnnotationTarget.Kind
-
-
Field Summary
Fields Modifier and Type Field Description private ClassInfo
clazz
(package private) static java.lang.String[]
EMPTY_PARAMETER_NAMES
private MethodInternal
methodInternal
-
Fields inherited from interface org.jboss.jandex.Descriptor
NO_SUBSTITUTION
-
Fields inherited from interface org.jboss.jandex.GenericSignature
NO_SUBSTITUTION
-
-
Constructor Summary
Constructors Constructor Description MethodInfo()
MethodInfo(ClassInfo clazz, byte[] name, byte[][] parameterNames, Type[] parameterTypes, Type returnType, short flags)
MethodInfo(ClassInfo clazz, byte[] name, byte[][] parameterNames, Type[] parameterTypes, Type returnType, short flags, Type[] typeParameters, Type[] exceptions)
MethodInfo(ClassInfo clazz, MethodInternal methodInternal)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description AnnotationInstance
annotation(DotName name)
Returns the annotation instance with given name declared on this method, any of its parameters or any type within its signature.java.util.List<AnnotationInstance>
annotations()
Returns the annotation instances declared on this method, any of its parameters or any type within its signature.java.util.List<AnnotationInstance>
annotations(DotName name)
Returns the annotation instances with given name declared on this method, any of its parameters or any type within its signature.java.util.List<AnnotationInstance>
annotationsWithRepeatable(DotName name, IndexView index)
Returns the annotation instances with given name declared on this method, any of its parameters or any type within its signature.Type[]
args()
Deprecated.useparameterTypes()
ClassInfo
asClass()
Casts and returns this target as aClassInfo
if it is of kindCLASS
FieldInfo
asField()
Casts and returns this target as aFieldInfo
if it is of kindFIELD
MethodInfo
asMethod()
Casts and returns this target as aMethodInfo
if it is of kindMETHOD
MethodParameterInfo
asMethodParameter()
Casts and returns this target as aMethodParameterInfo
if it is of kindMETHOD_PARAMETER
RecordComponentInfo
asRecordComponent()
Casts and returns this target as aRecordComponentInfo
if it is of kindRECORD_COMPONENT
TypeTarget
asType()
Casts and returns this target as aTypeTarget
if it is of kindTYPE
(package private) Type[]
copyExceptions()
(package private) Type[]
copyParameters()
static MethodInfo
create(ClassInfo clazz, java.lang.String name, java.lang.String[] parameterNames, Type[] parameterTypes, Type returnType, short flags, TypeVariable[] typeParameters, Type[] exceptions)
Construct a new mock Method instance.static MethodInfo
create(ClassInfo clazz, java.lang.String name, Type[] parameterTypes, Type returnType, short flags)
Construct a new mock Method instance.static MethodInfo
create(ClassInfo clazz, java.lang.String name, Type[] parameterTypes, Type returnType, short flags, TypeVariable[] typeParameters, Type[] exceptions)
Construct a new mock Method instance.AnnotationInstance
declaredAnnotation(DotName name)
Returns the annotation instance with given name declared on this method.java.util.List<AnnotationInstance>
declaredAnnotations()
Returns the annotation instances declared on this method.java.util.List<AnnotationInstance>
declaredAnnotationsWithRepeatable(DotName name, IndexView index)
Returns the annotation instances with given name declared on this method.ClassInfo
declaringClass()
Returns the class that declared this methodAnnotationValue
defaultValue()
Returns the default annotation value if this method represents an annotation member with a default value.java.lang.String
descriptor(java.util.function.Function<java.lang.String,Type> typeVariableSubstitution)
Returns a bytecode descriptor of this method.int
descriptorParametersCount()
Returns the number of all parameters present on this method, based on the method descriptor.java.util.List<Type>
descriptorParameterTypes()
Returns a list of types of all parameters present on this method, based on the method descriptor.boolean
equals(java.lang.Object o)
java.util.List<Type>
exceptions()
Returns the list of throwable classes declared to be thrown by this method.short
flags()
Returns the access fields of this method.java.lang.String
genericSignature(java.util.function.Function<java.lang.String,Type> typeVariableSubstitution)
Returns a generic signature of this method, possibly without any generic-related information.boolean
hasAnnotation(DotName name)
Returns whether an annotation instance with given name is declared on this method, its parameters or any type within its signature.boolean
hasDeclaredAnnotation(DotName name)
Returns whether an annotation instance with given name is declared on this method.int
hashCode()
boolean
isAbstract()
boolean
isBridge()
boolean
isConstructor()
boolean
isDefault()
A default method is a public non-abstract non-static method declared in an interface.boolean
isStaticInitializer()
boolean
isSynthetic()
AnnotationTarget.Kind
kind()
Returns the kind of object this target represents.(package private) MethodInternal
methodInternal()
java.lang.String
name()
Returns the name of this methodjava.lang.String
parameterName(int i)
Returns the name of the given parameter.java.util.List<MethodParameterInfo>
parameters()
Returns a list of parameters declared on this method, in declaration order.int
parametersCount()
Returns the number of parameters this method declares.Type
parameterType(int i)
Returns the type of the given parameter.java.util.List<Type>
parameterTypes()
Returns a list of types of parameters declared on this method, in declaration order.Type
receiverType()
Returns the receiver type of this method (a declaration of the "this" reference), if specified.boolean
requiresGenericSignature()
Returns whether this method must have a generic signature.Type
returnType()
Returns this method's return parameter type.(package private) void
setAnnotations(java.util.List<AnnotationInstance> annotations)
(package private) void
setClassInfo(ClassInfo clazz)
(package private) void
setDefaultValue(AnnotationValue defaultValue)
(package private) void
setExceptions(Type[] exceptions)
(package private) void
setMethodInternal(MethodInternal methodInternal)
(package private) void
setParameters(Type[] parameters)
(package private) void
setReceiverType(Type receiverType)
(package private) void
setReturnType(Type returnType)
(package private) void
setTypeParameters(Type[] typeParameters)
java.lang.String
toString()
Returns a string representation describing this method.(package private) Type[]
typeParameterArray()
java.util.List<TypeVariable>
typeParameters()
Returns the generic type parameters defined by this method.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.jboss.jandex.AnnotationTarget
annotation, annotation, annotations, annotations, annotationsWithRepeatable, annotationsWithRepeatable, declaredAnnotation, declaredAnnotation, declaredAnnotationsWithRepeatable, declaredAnnotationsWithRepeatable, hasAnnotation, hasAnnotation, hasDeclaredAnnotation, hasDeclaredAnnotation
-
Methods inherited from interface org.jboss.jandex.Declaration
asDeclaration, isDeclaration
-
Methods inherited from interface org.jboss.jandex.Descriptor
descriptor
-
Methods inherited from interface org.jboss.jandex.GenericSignature
genericSignature, genericSignatureIfRequired, genericSignatureIfRequired
-
-
-
-
Field Detail
-
EMPTY_PARAMETER_NAMES
static final java.lang.String[] EMPTY_PARAMETER_NAMES
-
methodInternal
private MethodInternal methodInternal
-
clazz
private ClassInfo clazz
-
-
Constructor Detail
-
MethodInfo
MethodInfo()
-
MethodInfo
MethodInfo(ClassInfo clazz, MethodInternal methodInternal)
-
MethodInfo
MethodInfo(ClassInfo clazz, byte[] name, byte[][] parameterNames, Type[] parameterTypes, Type returnType, short flags)
-
-
Method Detail
-
create
public static MethodInfo create(ClassInfo clazz, java.lang.String name, Type[] parameterTypes, Type returnType, short flags)
Construct a new mock Method instance.- Parameters:
clazz
- the class declaring the fieldname
- the name of the fieldparameterTypes
- a read only array containing the types of each parameter in parameter orderreturnType
- the return value typeflags
- the method attributes- Returns:
- a mock method
-
create
public static MethodInfo create(ClassInfo clazz, java.lang.String name, Type[] parameterTypes, Type returnType, short flags, TypeVariable[] typeParameters, Type[] exceptions)
Construct a new mock Method instance.- Parameters:
clazz
- the class declaring the fieldname
- the name of the fieldparameterTypes
- a read only array containing the types of each parameter in parameter orderreturnType
- the return value typeflags
- the method attributestypeParameters
- the generic type parameters for this methodexceptions
- the exceptions declared as thrown by this method- Returns:
- a mock method
- Since:
- 2.1
-
create
public static MethodInfo create(ClassInfo clazz, java.lang.String name, java.lang.String[] parameterNames, Type[] parameterTypes, Type returnType, short flags, TypeVariable[] typeParameters, Type[] exceptions)
Construct a new mock Method instance.- Parameters:
clazz
- the class declaring the fieldname
- the name of the fieldparameterNames
- the names of the method parameterparameterTypes
- a read only array containing the types of each parameter in parameter orderreturnType
- the return value typeflags
- the method attributestypeParameters
- the generic type parameters for this methodexceptions
- the exceptions declared as thrown by this method- Returns:
- a mock method
- Since:
- 2.2
-
name
public final java.lang.String name()
Returns the name of this method- Returns:
- the name of the method
-
parameterName
public final java.lang.String parameterName(int i)
Returns the name of the given parameter.- Parameters:
i
- the parameter index, zero-based- Returns:
- the name of the given parameter, or
null
if not known
-
parameterType
public final Type parameterType(int i)
Returns the type of the given parameter.- Parameters:
i
- the parameter index, zero-based- Returns:
- the type of the given parameter
-
kind
public final AnnotationTarget.Kind kind()
Description copied from interface:AnnotationTarget
Returns the kind of object this target represents.- Specified by:
kind
in interfaceAnnotationTarget
- Returns:
- the target kind.
-
declaringClass
public final ClassInfo declaringClass()
Returns the class that declared this method- Returns:
- the declaring class
-
args
@Deprecated public final Type[] args()
Deprecated.useparameterTypes()
Returns an array of parameter types in declaration order. Jandex makes reasonable attempts to not include implicitly declared (aka mandated) and synthetic parameters.This method performs a defensive array copy per call, and should be avoided. Instead, the
parameterTypes()
method should be used.- Returns:
- an array copy contain parameter types
-
copyParameters
final Type[] copyParameters()
-
parametersCount
public final int parametersCount()
Returns the number of parameters this method declares. Jandex makes reasonable attempts to not count implicitly declared (aka mandated) and synthetic parameters.- Returns:
- the number of parameters this method declares
-
parameterTypes
public final java.util.List<Type> parameterTypes()
Returns a list of types of parameters declared on this method, in declaration order. Jandex makes reasonable attempts to not include implicitly declared (aka mandated) and synthetic parameters. Positions of types in this list may be used to retrieve a name usingparameterName(int)
or look for annotations.- Returns:
- immutable list of parameter types of this method, never
null
-
parameters
public final java.util.List<MethodParameterInfo> parameters()
Returns a list of parameters declared on this method, in declaration order. Jandex makes reasonable attempts to not include implicitly declared (aka mandated) and synthetic parameters.- Returns:
- immutable list of parameter types of this method, never
null
-
descriptorParametersCount
public final int descriptorParametersCount()
Returns the number of all parameters present on this method, based on the method descriptor. This always includes implicitly declared (aka mandated) and synthetic parameters.- Returns:
- the number of all parameters present on this method
-
descriptorParameterTypes
public final java.util.List<Type> descriptorParameterTypes()
Returns a list of types of all parameters present on this method, based on the method descriptor. This always includes implicitly declared (aka mandated) and synthetic parameters. These types are never annotated and their position in the list cannot be used to retrieve a name usingparameterName(int)
or look for annotations.
-
returnType
public final Type returnType()
Returns this method's return parameter type. If this method has a void return, a special void type is returned. This method will never return null.- Returns:
- the type of this method's return value
-
receiverType
public final Type receiverType()
Returns the receiver type of this method (a declaration of the "this" reference), if specified. This is used to convey annotations on the "this" instance.- Returns:
- the receiver type of this method
-
exceptions
public final java.util.List<Type> exceptions()
Returns the list of throwable classes declared to be thrown by this method. This method may return an empty list, but never null.- Returns:
- immutable list of throwable classes thrown by this method
-
copyExceptions
final Type[] copyExceptions()
-
typeParameters
public final java.util.List<TypeVariable> typeParameters()
Returns the generic type parameters defined by this method. This list will contain resolved type variables which may reference other type parameters, including those declared by the enclosing class of this method.- Returns:
- immutable list of generic type parameters for this method, or an empty list if none
-
hasAnnotation
public final boolean hasAnnotation(DotName name)
Returns whether an annotation instance with given name is declared on this method, its parameters or any type within its signature.- Specified by:
hasAnnotation
in interfaceAnnotationTarget
- Parameters:
name
- name of the annotation type to look for, must not benull
- Returns:
true
if the annotation is present,false
otherwise- See Also:
annotation(DotName)
-
annotation
public final AnnotationInstance annotation(DotName name)
Returns the annotation instance with given name declared on this method, any of its parameters or any type within its signature. Thetarget()
method of the returned annotation instance may be used to determine the exact location of the annotation instance.The following is a non-exhaustive list of examples of annotations returned by this method:
@MyMethodAnnotation public void foo() {...} public void foo(@MyParamAnnotation int param) {...} public void foo(List<@MyTypeAnnotation String> list) {...} public <@MyTypeAnnotation T> void foo(T t) {...}
In case an annotation with given name occurs more than once, the result of this method is not deterministic. For such situations,
annotations(DotName)
is preferable.- Specified by:
annotation
in interfaceAnnotationTarget
- Parameters:
name
- name of the annotation type to look for, must not benull
- Returns:
- the annotation instance, or
null
if not found - Since:
- 3.0
- See Also:
annotations(DotName)
-
annotations
public final java.util.List<AnnotationInstance> annotations(DotName name)
Returns the annotation instances with given name declared on this method, any of its parameters or any type within its signature. Thetarget()
method of the returned annotation instances may be used to determine the exact location of the respective annotation instance.The following is a non-exhaustive list of examples of annotations returned by this method:
@MyMethodAnnotation public void foo() {...} public void foo(@MyParamAnnotation int param) {...} public void foo(List<@MyTypeAnnotation String> list) {...} public <@MyTypeAnnotation T> void foo(T t) {...}
- Specified by:
annotations
in interfaceAnnotationTarget
- Parameters:
name
- name of the annotation type, must not benull
- Returns:
- immutable list of annotation instances, never
null
- See Also:
annotationsWithRepeatable(DotName, IndexView)
,annotations()
-
annotationsWithRepeatable
public final java.util.List<AnnotationInstance> annotationsWithRepeatable(DotName name, IndexView index)
Returns the annotation instances with given name declared on this method, any of its parameters or any type within its signature. Thetarget()
method of the returned annotation instances may be used to determine the exact location of the respective annotation instance.If the specified annotation is repeatable, the result also contains all values from the container annotation instance. In this case, the
AnnotationInstance.target()
returns the target of the container annotation instance.- Specified by:
annotationsWithRepeatable
in interfaceAnnotationTarget
- Parameters:
name
- name of the annotation type, must not benull
index
- index used to obtain the annotation type, must not benull
- Returns:
- immutable list of annotation instances, never
null
- Throws:
java.lang.IllegalArgumentException
- if the index isnull
, if the index does not contain the annotation type or ifname
does not identify an annotation type- See Also:
annotations(DotName)
,annotations()
-
annotations
public final java.util.List<AnnotationInstance> annotations()
Returns the annotation instances declared on this method, any of its parameters or any type within its signature. Thetarget()
method of the returned annotation instances may be used to determine the exact location of the respective annotation instance.The following is a non-exhaustive list of examples of annotations returned by this method:
@MyMethodAnnotation public void foo() {...} public void foo(@MyParamAnnotation int param) {...} public void foo(List<@MyTypeAnnotation String> list) {...} public <@AnotherTypeAnnotation T> void foo(T t) {...}
- Specified by:
annotations
in interfaceAnnotationTarget
- Returns:
- immutable list of annotation instances, never
null
-
hasDeclaredAnnotation
public boolean hasDeclaredAnnotation(DotName name)
Returns whether an annotation instance with given name is declared on this method.Unlike
hasAnnotation(DotName)
, this method ignores annotations declared on the method parameters and types within the method signature.- Specified by:
hasDeclaredAnnotation
in interfaceAnnotationTarget
- Parameters:
name
- name of the annotation type to look for, must not benull
- Returns:
true
if the annotation is present,false
otherwise- Since:
- 3.0
- See Also:
hasAnnotation(DotName)
-
declaredAnnotation
public AnnotationInstance declaredAnnotation(DotName name)
Returns the annotation instance with given name declared on this method.Unlike
annotation(DotName)
, this method doesn't return annotations declared on the method parameters and types within the method signature.- Specified by:
declaredAnnotation
in interfaceAnnotationTarget
- Parameters:
name
- name of the annotation type to look for, must not benull
- Returns:
- the annotation instance, or
null
if not found - Since:
- 3.0
- See Also:
annotation(DotName)
-
declaredAnnotationsWithRepeatable
public java.util.List<AnnotationInstance> declaredAnnotationsWithRepeatable(DotName name, IndexView index)
Returns the annotation instances with given name declared on this method.If the specified annotation is repeatable, the result also contains all values from the container annotation instance. In this case, the
AnnotationInstance.target()
returns the target of the container annotation instance.Unlike
annotationsWithRepeatable(DotName, IndexView)
, this method doesn't return annotations declared on the method parameters and types within the method signature.- Specified by:
declaredAnnotationsWithRepeatable
in interfaceAnnotationTarget
- Parameters:
name
- name of the annotation type, must not benull
index
- index used to obtain the annotation type, must not benull
- Returns:
- immutable list of annotation instances, never
null
- Throws:
java.lang.IllegalArgumentException
- if the index isnull
, if the index does not contain the annotation type or ifname
does not identify an annotation type- Since:
- 3.0
- See Also:
annotationsWithRepeatable(DotName, IndexView)
-
declaredAnnotations
public java.util.List<AnnotationInstance> declaredAnnotations()
Returns the annotation instances declared on this method.Unlike
annotations()
, this method doesn't return annotations declared on the method parameters and types within the method signature.- Specified by:
declaredAnnotations
in interfaceAnnotationTarget
- Returns:
- immutable list of annotation instances, never
null
- Since:
- 3.0
- See Also:
annotations()
-
defaultValue
public AnnotationValue defaultValue()
Returns the default annotation value if this method represents an annotation member with a default value. Otherwise null is returned- Returns:
- default annotation value if available, otherwise null
- Since:
- 2.1
-
flags
public final short flags()
Returns the access fields of this method.Modifier
can be used on this value.- Returns:
- the access flags of this method
-
isSynthetic
public boolean isSynthetic()
- Returns:
true
if this method is a synthetic method
-
isBridge
public boolean isBridge()
- Returns:
true
if this method is a bridge method as defined by the JLS,false
otherwise
-
isConstructor
public boolean isConstructor()
- Returns:
true
if this method is a constructor
-
isStaticInitializer
public boolean isStaticInitializer()
- Returns:
true
if this method is a static initializer
-
isDefault
public boolean isDefault()
A default method is a public non-abstract non-static method declared in an interface.- Returns:
true
if this method is a default interface method,false
otherwise
-
isAbstract
public boolean isAbstract()
- Returns:
true
if this method isabstract
-
requiresGenericSignature
public boolean requiresGenericSignature()
Returns whether this method must have a generic signature. That is, whether the Java compiler when compiling this method had to emit theSignature
bytecode attribute.- Specified by:
requiresGenericSignature
in interfaceGenericSignature
- Returns:
- whether this method must have a generic signature
-
genericSignature
public java.lang.String genericSignature(java.util.function.Function<java.lang.String,Type> typeVariableSubstitution)
Returns a generic signature of this method, possibly without any generic-related information. That is, produces a correct generic signature even if this method is not generic and does not use any type variables.Signatures of type variables are substituted for signatures of types provided by the substitution function
typeVariableSubstitution
. If the substitution function returnsnull
for some type variable identifier, no substitution happens and the type variable signature is used unmodified.Note that the return value does not come directly from bytecode. Jandex does not store the signature strings. Instead, the return value is reconstructed from the Jandex object model.
- Specified by:
genericSignature
in interfaceGenericSignature
- Parameters:
typeVariableSubstitution
- a substitution function from type variable identifiers to types- Returns:
- a generic signature of this method with type variables substituted, never
null
-
descriptor
public java.lang.String descriptor(java.util.function.Function<java.lang.String,Type> typeVariableSubstitution)
Returns a bytecode descriptor of this method.Descriptors of type variables are substituted for descriptors of types provided by the substitution function
typeVariableSubstitution
. If the substitution function returnsnull
for some type variable identifier, or if it returns the type variable itself, no substitution happens and the type variable descriptor is used unmodified.Note that the return value does not come directly from bytecode. Jandex does not store the descriptor strings. Instead, the return value is reconstructed from the Jandex object model.
- Specified by:
descriptor
in interfaceDescriptor
- Parameters:
typeVariableSubstitution
- a substitution function from type variable identifiers to types- Returns:
- the bytecode descriptor of this method
-
toString
public java.lang.String toString()
Returns a string representation describing this method. It is similar although not necessarily identical to a Java source code declaration of this method.- Overrides:
toString
in classjava.lang.Object
- Returns:
- a string representation of this method
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
asClass
public final ClassInfo asClass()
Description copied from interface:AnnotationTarget
Casts and returns this target as aClassInfo
if it is of kindCLASS
- Specified by:
asClass
in interfaceAnnotationTarget
- Returns:
- this instance cast to a class
-
asField
public final FieldInfo asField()
Description copied from interface:AnnotationTarget
Casts and returns this target as aFieldInfo
if it is of kindFIELD
- Specified by:
asField
in interfaceAnnotationTarget
- Returns:
- this instance cast to a field
-
asMethod
public final MethodInfo asMethod()
Description copied from interface:AnnotationTarget
Casts and returns this target as aMethodInfo
if it is of kindMETHOD
- Specified by:
asMethod
in interfaceAnnotationTarget
- Returns:
- this instance cast to a method
-
asMethodParameter
public final MethodParameterInfo asMethodParameter()
Description copied from interface:AnnotationTarget
Casts and returns this target as aMethodParameterInfo
if it is of kindMETHOD_PARAMETER
- Specified by:
asMethodParameter
in interfaceAnnotationTarget
- Returns:
- this instance cast to a method parameter
-
asType
public final TypeTarget asType()
Description copied from interface:AnnotationTarget
Casts and returns this target as aTypeTarget
if it is of kindTYPE
- Specified by:
asType
in interfaceAnnotationTarget
- Returns:
- this instance cast to a type target
-
asRecordComponent
public final RecordComponentInfo asRecordComponent()
Description copied from interface:AnnotationTarget
Casts and returns this target as aRecordComponentInfo
if it is of kindRECORD_COMPONENT
- Specified by:
asRecordComponent
in interfaceAnnotationTarget
- Returns:
- this instance cast to a record component
-
methodInternal
final MethodInternal methodInternal()
-
setMethodInternal
final void setMethodInternal(MethodInternal methodInternal)
-
setClassInfo
final void setClassInfo(ClassInfo clazz)
-
typeParameterArray
final Type[] typeParameterArray()
-
setTypeParameters
void setTypeParameters(Type[] typeParameters)
-
setParameters
void setParameters(Type[] parameters)
-
setReturnType
void setReturnType(Type returnType)
-
setExceptions
void setExceptions(Type[] exceptions)
-
setReceiverType
void setReceiverType(Type receiverType)
-
setAnnotations
void setAnnotations(java.util.List<AnnotationInstance> annotations)
-
setDefaultValue
void setDefaultValue(AnnotationValue defaultValue)
-
-