Package ftbsc.lll.proxies.impl
Class FieldProxy.Builder
- java.lang.Object
-
- ftbsc.lll.proxies.AbstractProxy.Builder<FieldProxy>
-
- ftbsc.lll.proxies.impl.FieldProxy.Builder
-
- Enclosing class:
- FieldProxy
public static class FieldProxy.Builder extends AbstractProxy.Builder<FieldProxy>
A builder object forFieldProxy
.
-
-
Field Summary
-
Fields inherited from class ftbsc.lll.proxies.AbstractProxy.Builder
descriptor, modifiers, name, parent
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FieldProxy
build()
Builds aFieldProxy
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 givenClass
object.FieldProxy.Builder
setType(java.lang.String fqn, int arrayLevel)
Sets the type of the field to the given type.-
Methods inherited from class ftbsc.lll.proxies.AbstractProxy.Builder
addModifier, setDescriptor, setModifiers, setParent, setType
-
-
-
-
Method Detail
-
setParent
public 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.- Parameters:
parentFQN
- the fully qualified name of the parentmodifiers
- the modifiers of the parent- Returns:
- the builder's state after the change
-
setParent
public FieldProxy.Builder setParent(java.lang.String parentFQN)
Sets the parent class of this field to the one described by the fully qualified name.- Parameters:
parentFQN
- the fully qualified name of the parent- Returns:
- the builder's state after the change
-
setType
public FieldProxy.Builder setType(java.lang.Class<?> clazz)
Sets the type of the field to the givenClass
object.- Parameters:
clazz
- theClass
corresponding to the element- Returns:
- the current state of the builder
-
setType
public FieldProxy.Builder setType(java.lang.String fqn, int arrayLevel)
Sets the type of the field to the given type.- Parameters:
fqn
- the fully qualified name of the parameter typearrayLevel
- the array level- Returns:
- the builder's state after the change
-
build
public FieldProxy build()
Builds aFieldProxy
of the given kind.- Specified by:
build
in classAbstractProxy.Builder<FieldProxy>
- Returns:
- the built
FieldProxy
-
-