-
- All Superinterfaces:
ClassOrInterface<Enum>,EnumModifier<Enum>,HasAnnotationUsage<Enum>,HasCall<Enum>,HasClasses<Enum>,HasConstructors<Enum>,HasCopy<Enum>,HasFields<Enum>,HasGenerics<Enum>,HasImplements<Enum>,HasImports<Enum>,HasInitializers<Enum>,HasJavadoc<Enum>,HasMethods<Enum>,HasModifiers<Enum>,HasName<Enum>,HasParent<HasClasses<?>,Enum>
public interface Enum extends ClassOrInterface<Enum>, EnumModifier<Enum>, HasConstructors<Enum>
A model that represents an enumeration in code.- Since:
- 2.0
- Author:
- Emil Forslund
- See Also:
EnumConstant
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default Enumadd(EnumConstant constant)Adds the specified constant to this enum.List<EnumConstant>getConstants()Returns a modifiable list of all the constants in this enum.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.static Enumof(String name)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.-
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.HasClasses
add, addAllClasses, getClasses
-
Methods inherited from interface com.speedment.common.codegen.model.trait.HasConstructors
add, getConstructors
-
Methods inherited from interface com.speedment.common.codegen.model.trait.HasFields
add, addAllFields, constant, constant, constant, constant, field, field, getFields
-
Methods inherited from interface com.speedment.common.codegen.model.trait.HasGenerics
add, generic, generic, generic, generic, getGenerics
-
Methods inherited from interface com.speedment.common.codegen.model.trait.HasImplements
add, getInterfaces, implement, implement, implement
-
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.HasInitializers
add, getInitializers
-
Methods inherited from interface com.speedment.common.codegen.model.trait.HasJavadoc
getJavadoc, javadoc, set
-
Methods inherited from interface com.speedment.common.codegen.model.trait.HasMethods
add, getMethods
-
Methods inherited from interface com.speedment.common.codegen.model.trait.HasModifiers
getModifiers
-
-
-
-
Method Detail
-
add
default Enum add(EnumConstant constant)
Adds the specified constant to this enum. The constant must not be null.- Parameters:
constant- the constant- Returns:
- a reference to this model
-
getConstants
List<EnumConstant> getConstants()
Returns a modifiable list of all the constants in this enum.- Returns:
- a list of constants
-
of
static Enum of(String name)
Creates a new instance implementing this interface by using the default implementation.- Parameters:
name- the name- 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
-
-