S - The most specific known type of the dynamic type, usually the type itself, an interface or the
direct super class.public static interface DynamicType.Builder.FieldValueTarget<S> extends DynamicType.Builder.FieldAnnotationTarget<S>
static fields of a primitive type or of the String
type.| Modifier and Type | Interface and Description |
|---|---|
static class |
DynamicType.Builder.FieldValueTarget.NumericRangeValidator
A validator for assuring that a given value can be represented by a given primitive type.
|
DynamicType.Builder.AbstractBase<S>, DynamicType.Builder.ExceptionDeclarableMethodInterception<S>, DynamicType.Builder.FieldAnnotationTarget<S>, DynamicType.Builder.FieldValueTarget<S>, DynamicType.Builder.MatchedMethodInterception<T>, DynamicType.Builder.MethodAnnotationTarget<S>, DynamicType.Builder.OptionalMatchedMethodInterception<S>| Modifier and Type | Method and Description |
|---|---|
DynamicType.Builder.FieldAnnotationTarget<S> |
value(boolean value)
Defines a
boolean value to become the optional default value for the recently defined
static field. |
DynamicType.Builder.FieldAnnotationTarget<S> |
value(double value)
Defined a default value for a
double-typed static field. |
DynamicType.Builder.FieldAnnotationTarget<S> |
value(float value)
Defined a default value for a
float-typed static field. |
DynamicType.Builder.FieldAnnotationTarget<S> |
value(int value)
Defines an
int value to be become the optional default value for the recently defined
static field. |
DynamicType.Builder.FieldAnnotationTarget<S> |
value(long value)
Defined a default value for a
long-typed static field. |
DynamicType.Builder.FieldAnnotationTarget<S> |
value(String value)
Defined a default value for a
String-typed static field. |
annotateField, attributeannotateType, attribute, bridgeMethodResolverFactory, classFileVersion, classVisitor, constructor, defineConstructor, defineConstructor, defineField, defineField, defineMethod, defineMethod, ignoreMethods, implement, implement, invokable, make, method, methodLookupEngine, modifiers, nameDynamicType.Builder.FieldAnnotationTarget<S> value(boolean value)
boolean value to become the optional default value for the recently defined
static field. Defining such a boolean default value is only legal for fields that are
represented as an integer within the Java virtual machine. These types are the boolean type,
the byte type, the short type, the char type and the int type.value - The value to be defined as a default value for the recently defined field.DynamicType.Builder.FieldAnnotationTarget<S> value(int value)
int value to be become the optional default value for the recently defined
static field. Defining such an integer default value is only legal for fields that are
represented as an integer within the Java virtual machine. These types are the boolean type,
the byte type, the short type, the char type and the int type. By
extension, integer types can also be defined for long types and are automatically converted.value - The value to be defined as a default value for the recently defined field.DynamicType.Builder.FieldAnnotationTarget<S> value(long value)
long-typed static field. This is only legal if the
defined field is also of type long.value - The value to be defined as a default value for the recently defined field.DynamicType.Builder.FieldAnnotationTarget<S> value(float value)
float-typed static field. This is only legal if the
defined field is also of type float.value - The value to be defined as a default value for the recently defined field.DynamicType.Builder.FieldAnnotationTarget<S> value(double value)
double-typed static field. This is only legal if the
defined field is also of type double.value - The value to be defined as a default value for the recently defined field.DynamicType.Builder.FieldAnnotationTarget<S> value(String value)
String-typed static field. This is only legal if
the defined field is also of type String. The string must not be null.value - The value to be defined as a default value for the recently defined field.Copyright © 2014. All rights reserved.