public static class FieldProxy.Builder extends AbstractProxy.Builder<FieldProxy>
FieldProxy
.descriptor, modifiers, name, parent
Modifier and Type | Method and Description |
---|---|
FieldProxy |
build()
Builds a
FieldProxy of the given kind. |
FieldProxy.Builder |
setParent(java.lang.String parentFQN)
Sets the parent class of this field to the one described by the
fully qualified name.
|
FieldProxy.Builder |
setParent(java.lang.String parentFQN,
int modifiers)
Sets the parent class of this field to the one described by the
fully qualified name and with the given modifiers.
|
FieldProxy.Builder |
setType(java.lang.Class<?> clazz)
Sets the type of the field to the given
Class object. |
FieldProxy.Builder |
setType(java.lang.String fqn,
int arrayLevel)
Sets the type of the field to the given type.
|
addModifier, setDescriptor, setModifiers, setParent, setType
public FieldProxy.Builder setParent(java.lang.String parentFQN, int modifiers)
parentFQN
- the fully qualified name of the parentmodifiers
- the modifiers of the parentpublic FieldProxy.Builder setParent(java.lang.String parentFQN)
parentFQN
- the fully qualified name of the parentpublic FieldProxy.Builder setType(java.lang.Class<?> clazz)
Class
object.clazz
- the Class
corresponding to the elementpublic FieldProxy.Builder setType(java.lang.String fqn, int arrayLevel)
fqn
- the fully qualified name of the parameter typearrayLevel
- the array levelpublic FieldProxy build()
FieldProxy
of the given kind.build
in class AbstractProxy.Builder<FieldProxy>
FieldProxy