Module com.speedment.common.codegen
Interface Constructor
-
- All Superinterfaces:
ConstructorModifier<Constructor>,HasAnnotationUsage<Constructor>,HasCall<Constructor>,HasCode<Constructor>,HasCopy<Constructor>,HasFields<Constructor>,HasGenerics<Constructor>,HasImports<Constructor>,HasJavadoc<Constructor>,HasModifiers<Constructor>,HasParent<HasConstructors<?>,Constructor>,HasThrows<Constructor>
public interface Constructor extends HasParent<HasConstructors<?>,Constructor>, HasImports<Constructor>, HasCopy<Constructor>, HasCall<Constructor>, HasGenerics<Constructor>, HasThrows<Constructor>, HasJavadoc<Constructor>, HasAnnotationUsage<Constructor>, HasFields<Constructor>, HasCode<Constructor>, ConstructorModifier<Constructor>
A model that represents a constructor in code.- Since:
- 2.0
- Author:
- Emil Forslund
-
-
Method Summary
All Methods Static Methods Instance Methods Default Methods Modifier and Type Method Description static ConstructornewPrivate()Creates a new instance implementing this interface by using the default implementation and setting theModifier.PRIVATE-modifier.static ConstructornewProtected()Creates a new instance implementing this interface by using the default implementation and setting theModifier.PROTECTED-modifier.static ConstructornewPublic()Creates a new instance implementing this interface by using the default implementation and setting theModifier.PUBLIC-modifier.default TnotPrivate()Removes theprivatekeyword from this model.default TnotProtected()Removes theprotectedkeyword from this model.default TnotPublic()Removes thepublickeyword from this model.static Constructorof()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.-
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.HasCode
add, add, add, getCode
-
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.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
-
Methods inherited from interface com.speedment.common.codegen.model.trait.HasParent
getParent, setParent
-
Methods inherited from interface com.speedment.common.codegen.model.trait.HasThrows
add, getExceptions, throwing
-
-
-
-
Method Detail
-
of
static Constructor of()
Creates a new instance implementing this interface by using the default implementation.- Returns:
- the new instance
-
newPublic
static Constructor newPublic()
Creates a new instance implementing this interface by using the default implementation and setting theModifier.PUBLIC-modifier.- Returns:
- the new instance
- Since:
- 2.5
-
newPrivate
static Constructor newPrivate()
Creates a new instance implementing this interface by using the default implementation and setting theModifier.PRIVATE-modifier.- Returns:
- the new instance
- Since:
- 2.5
-
newProtected
static Constructor newProtected()
Creates a new instance implementing this interface by using the default implementation and setting theModifier.PROTECTED-modifier.- Returns:
- the new instance
- Since:
- 2.5
-
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
-
-