Enum AnnotationValue.ForConstant.PropertyDelegate.ForArrayType
java.lang.Object
java.lang.Enum<AnnotationValue.ForConstant.PropertyDelegate.ForArrayType>
net.bytebuddy.description.annotation.AnnotationValue.ForConstant.PropertyDelegate.ForArrayType
- All Implemented Interfaces:
Serializable
,Comparable<AnnotationValue.ForConstant.PropertyDelegate.ForArrayType>
,java.lang.constant.Constable
,AnnotationValue.ForConstant.PropertyDelegate
- Enclosing interface:
AnnotationValue.ForConstant.PropertyDelegate
public static enum AnnotationValue.ForConstant.PropertyDelegate.ForArrayType
extends Enum<AnnotationValue.ForConstant.PropertyDelegate.ForArrayType>
implements AnnotationValue.ForConstant.PropertyDelegate
A property delegate for an array type of a constant value.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
Nested classes/interfaces inherited from interface net.bytebuddy.description.annotation.AnnotationValue.ForConstant.PropertyDelegate
AnnotationValue.ForConstant.PropertyDelegate.ForArrayType, AnnotationValue.ForConstant.PropertyDelegate.ForNonArrayType
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionA property delegate for aboolean[]
value.A property delegate for abyte[]
value.A property delegate for achar[]
value.A property delegate for adouble[]
value.A property delegate for afloat[]
value.A property delegate for aint[]
value.A property delegate for along[]
value.A property delegate for ashort[]
value.A property delegate for aString[]
value. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<S> S
copy
(S value) Copies the provided value, if it is not immutable.protected abstract Object
Creates a copy of the provided array.Renders the supplied value as aString
.protected abstract String
Renders the array element at the specified index.Returns the enum constant of this type with the specified name.values()
Returns an array containing the constants of this enum type, in the order they are declared.Methods inherited from class java.lang.Enum
clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
Methods inherited from interface net.bytebuddy.description.annotation.AnnotationValue.ForConstant.PropertyDelegate
equals, hashCode
-
Enum Constant Details
-
BOOLEAN
A property delegate for aboolean[]
value. -
BYTE
A property delegate for abyte[]
value. -
SHORT
A property delegate for ashort[]
value. -
CHARACTER
A property delegate for achar[]
value. -
INTEGER
A property delegate for aint[]
value. -
LONG
A property delegate for along[]
value. -
FLOAT
A property delegate for afloat[]
value. -
DOUBLE
A property delegate for adouble[]
value. -
STRING
A property delegate for aString[]
value.
-
-
Constructor Details
-
ForArrayType
private ForArrayType()
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
copy
public <S> S copy(S value) Copies the provided value, if it is not immutable.- Specified by:
copy
in interfaceAnnotationValue.ForConstant.PropertyDelegate
- Type Parameters:
S
- The value's type.- Parameters:
value
- The value to copy.- Returns:
- A copy of the provided instance or the provided value, if it is immutable.
-
doCopy
Creates a copy of the provided array.- Parameters:
value
- The array to copy.- Returns:
- A shallow copy of the provided array.
-
toString
Renders the supplied value as aString
.- Specified by:
toString
in interfaceAnnotationValue.ForConstant.PropertyDelegate
- Parameters:
value
- The value to render.- Returns:
- An appropriate
String
representation of the provided value.
-
toString
Renders the array element at the specified index.- Parameters:
array
- The array for which an element should be rendered.index
- The index of the array element to render.- Returns:
- A
String
representation of the array element at the supplied index.
-