-
- All Superinterfaces:
FieldModifier<Field>,HasAnnotationUsage<Field>,HasCall<Field>,HasCopy<Field>,HasImports<Field>,HasJavadoc<Field>,HasModifiers<Field>,HasName<Field>,HasParent<HasFields<?>,Field>,HasType<Field>,HasValue<Field>
public interface Field extends HasParent<HasFields<?>,Field>, HasImports<Field>, HasCopy<Field>, HasCall<Field>, HasName<Field>, HasType<Field>, HasJavadoc<Field>, HasValue<Field>, HasAnnotationUsage<Field>, FieldModifier<Field>
A model that represents a field in code. This can be either as a method parameter or as a class member.- Since:
- 2.0
- Author:
- Emil Forslund
-
-
Method Summary
All Methods Static Methods Instance Methods Default Methods Modifier and Type Method Description default Tfinal_()Adds thefinalkeyword to this model.default TnotFinal()Removes thefinalkeyword from this model.default TnotPrivate()Removes theprivatekeyword from this model.default TnotProtected()Removes theprotectedkeyword from this model.default TnotPublic()Removes thepublickeyword from this model.default TnotStatic()Removes thestatickeyword from this model.default TnotSynchronized()Removes thesynchronizedkeyword from this model.default TnotTransient()Removes thevolatilekeyword from this model.default TnotVolatile()Removes thevolatilekeyword from this model.static Fieldof(String name, Type type)Creates a new instance implementing this interface by using the default implementation.default Tprivate_()Adds theprivatekeyword to this model.default Tprotected_()Adds theprotectedkeyword to this model.default Tpublic_()Adds thepublickeyword to this model.default Tstatic_()Adds thestatickeyword to this model.default Tsynchronized_()Adds thesynchronizedkeyword to this model.default Ttransient_()Adds thetransientkeyword to this model.default Tvolatile_()Adds thevolatilekeyword to this model.-
Methods inherited from interface com.speedment.common.codegen.model.trait.HasAnnotationUsage
add, annotate, annotate, annotate, getAnnotations
-
Methods inherited from interface com.speedment.common.codegen.model.trait.HasImports
add, getImports, imports, imports, imports
-
Methods inherited from interface com.speedment.common.codegen.model.trait.HasJavadoc
getJavadoc, javadoc, set
-
Methods inherited from interface com.speedment.common.codegen.model.trait.HasModifiers
getModifiers
-
-
-
-
Method Detail
-
of
static Field of(String name, Type type)
Creates a new instance implementing this interface by using the default implementation.- Parameters:
name- the nametype- the type- Returns:
- the new instance
-
public_
default T public_()
Adds thepublickeyword to this model.- Returns:
- a reference to this model
-
notPublic
default T notPublic()
Removes thepublickeyword from this model.- Returns:
- a reference to this model
-
protected_
default T protected_()
Adds theprotectedkeyword to this model.- Returns:
- a reference to this model
-
notProtected
default T notProtected()
Removes theprotectedkeyword from this model.- Returns:
- a reference to this model
-
private_
default T private_()
Adds theprivatekeyword to this model.- Returns:
- a reference to this model
-
notPrivate
default T notPrivate()
Removes theprivatekeyword from this model.- Returns:
- a reference to this model
-
static_
default T static_()
Adds thestatickeyword to this model.- Returns:
- a reference to this model
-
notStatic
default T notStatic()
Removes thestatickeyword from this model.- Returns:
- a reference to this model
-
final_
default T final_()
Adds thefinalkeyword to this model.- Returns:
- a reference to this model
-
notFinal
default T notFinal()
Removes thefinalkeyword from this model.- Returns:
- a reference to this model
-
synchronized_
default T synchronized_()
Adds thesynchronizedkeyword to this model.- Returns:
- a reference to this model
-
notSynchronized
default T notSynchronized()
Removes thesynchronizedkeyword from this model.- Returns:
- a reference to this model
-
transient_
default T transient_()
Adds thetransientkeyword to this model.- Returns:
- a reference to this model
-
notTransient
default T notTransient()
Removes thevolatilekeyword from this model.- Returns:
- a reference to this model
-
volatile_
default T volatile_()
Adds thevolatilekeyword to this model.- Returns:
- a reference to this model
-
notVolatile
default T notVolatile()
Removes thevolatilekeyword from this model.- Returns:
- a reference to this model
-
-