public interface CreateFieldRequest extends ActionRequest
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getFieldName() |
java.util.List<ExpectedType> |
getFieldType() |
java.util.Collection<JvmModifier> |
getModifiers()
Implementation are free to render any modifiers as long as they don't contradict with requested ones.
|
JvmSubstitutor |
getTargetSubstitutor()
Given:
- target class:
A<T>
- expected field type: String
- usage: new A<String>.foo |
boolean |
isConstant()
Constant fields may be used in annotations and in other constant expressions.
|
isValid
java.lang.String getFieldName()
java.util.List<ExpectedType> getFieldType()
JvmSubstitutor getTargetSubstitutor()
A<T>
- expected field type: String
- usage: new A<String>.foo
To make newly created field foo
have type T
the substitutor is needed to provide mapping T -> String.
java.util.Collection<JvmModifier> getModifiers()
static final
modifiers even if they are not present in this collection.boolean isConstant()