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:
java.io.Serializable
,java.lang.Comparable<AnnotationValue.ForConstant.PropertyDelegate.ForArrayType>
,AnnotationValue.ForConstant.PropertyDelegate
- Enclosing interface:
- AnnotationValue.ForConstant.PropertyDelegate
public static enum AnnotationValue.ForConstant.PropertyDelegate.ForArrayType extends java.lang.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 interface net.bytebuddy.description.annotation.AnnotationValue.ForConstant.PropertyDelegate
AnnotationValue.ForConstant.PropertyDelegate.ForArrayType, AnnotationValue.ForConstant.PropertyDelegate.ForNonArrayType
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BOOLEAN
A property delegate for aboolean[]
value.BYTE
A property delegate for abyte[]
value.CHARACTER
A property delegate for achar[]
value.DOUBLE
A property delegate for adouble[]
value.FLOAT
A property delegate for afloat[]
value.INTEGER
A property delegate for aint[]
value.LONG
A property delegate for along[]
value.SHORT
A property delegate for ashort[]
value.STRING
A property delegate for aString[]
value.
-
Constructor Summary
Constructors Modifier Constructor Description private
ForArrayType()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description <S> S
copy(S value)
Copies the provided value, if it is not immutable.protected abstract java.lang.Object
doCopy(java.lang.Object value)
Creates a copy of the provided array.java.lang.String
toString(java.lang.Object value)
Renders the supplied value as aString
.protected abstract java.lang.String
toString(java.lang.Object array, int index)
Renders the array element at the specified index.static AnnotationValue.ForConstant.PropertyDelegate.ForArrayType
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static AnnotationValue.ForConstant.PropertyDelegate.ForArrayType[]
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, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Methods inherited from interface net.bytebuddy.description.annotation.AnnotationValue.ForConstant.PropertyDelegate
equals, hashCode
-
-
-
-
Enum Constant Detail
-
BOOLEAN
public static final AnnotationValue.ForConstant.PropertyDelegate.ForArrayType BOOLEAN
A property delegate for aboolean[]
value.
-
BYTE
public static final AnnotationValue.ForConstant.PropertyDelegate.ForArrayType BYTE
A property delegate for abyte[]
value.
-
SHORT
public static final AnnotationValue.ForConstant.PropertyDelegate.ForArrayType SHORT
A property delegate for ashort[]
value.
-
CHARACTER
public static final AnnotationValue.ForConstant.PropertyDelegate.ForArrayType CHARACTER
A property delegate for achar[]
value.
-
INTEGER
public static final AnnotationValue.ForConstant.PropertyDelegate.ForArrayType INTEGER
A property delegate for aint[]
value.
-
LONG
public static final AnnotationValue.ForConstant.PropertyDelegate.ForArrayType LONG
A property delegate for along[]
value.
-
FLOAT
public static final AnnotationValue.ForConstant.PropertyDelegate.ForArrayType FLOAT
A property delegate for afloat[]
value.
-
DOUBLE
public static final AnnotationValue.ForConstant.PropertyDelegate.ForArrayType DOUBLE
A property delegate for adouble[]
value.
-
STRING
public static final AnnotationValue.ForConstant.PropertyDelegate.ForArrayType STRING
A property delegate for aString[]
value.
-
-
Method Detail
-
values
public static AnnotationValue.ForConstant.PropertyDelegate.ForArrayType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (AnnotationValue.ForConstant.PropertyDelegate.ForArrayType c : AnnotationValue.ForConstant.PropertyDelegate.ForArrayType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AnnotationValue.ForConstant.PropertyDelegate.ForArrayType valueOf(java.lang.String name)
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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- 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
protected abstract java.lang.Object doCopy(java.lang.Object value)
Creates a copy of the provided array.- Parameters:
value
- The array to copy.- Returns:
- A shallow copy of the provided array.
-
toString
public java.lang.String toString(java.lang.Object value)
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
protected abstract java.lang.String toString(java.lang.Object array, int index)
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.
-
-