-
- All Superinterfaces:
HasAnnotationUsage<Method>,HasCall<Method>,HasCode<Method>,HasCopy<Method>,HasFields<Method>,HasGenerics<Method>,HasImports<Method>,HasJavadoc<Method>,HasModifiers<Method>,HasName<Method>,HasParent<HasMethods<?>,Method>,HasThrows<Method>,HasType<Method>,MethodModifier<Method>
public interface Method extends HasParent<HasMethods<?>,Method>, HasImports<Method>, HasName<Method>, HasType<Method>, HasThrows<Method>, HasGenerics<Method>, HasFields<Method>, HasJavadoc<Method>, HasAnnotationUsage<Method>, HasCode<Method>, HasCall<Method>, MethodModifier<Method>, HasCopy<Method>
A model that represents a method declaration in code.- Since:
- 2.0
- Author:
- Emil Forslund
-
-
Method Summary
All Methods Static Methods Instance Methods Default Methods Modifier and Type Method Description default Tabstract_()Adds theabstractkeyword to this model.default Tdefault_()Adds thedefaultkeyword to this model.default Tfinal_()Adds thefinalkeyword to this model.default Tnative_()Adds thenativekeyword to this model.default TnotAbstract()Removes theabstractkeyword from this model.default TnotDefault()Removes thedefaultkeyword from this model.default TnotFinal()Removes thefinalkeyword from this model.default TnotNative()Removes thenativekeyword 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 TnotStrictfp()Removes thestrictfpkeyword from this model.default TnotSynchronized()Removes thesynchronizedkeyword from this model.static Methodof(String name, Type type)Creates a new instance implementing this interface by using the default implementation.default Methodoverride()Adds anOverride-annotation to this model.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 Tstrictfp_()Adds thestrictfpkeyword to this model.default Tsynchronized_()Adds thesynchronizedkeyword 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 Method 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
-
override
default Method override()
Adds anOverride-annotation to this model.- Returns:
- this 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
-
abstract_
default T abstract_()
Adds theabstractkeyword to this model.- Returns:
- a reference to this model
-
notAbstract
default T notAbstract()
Removes theabstractkeyword 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
-
strictfp_
default T strictfp_()
Adds thestrictfpkeyword to this model.- Returns:
- a reference to this model
-
notStrictfp
default T notStrictfp()
Removes thestrictfpkeyword 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
-
native_
default T native_()
Adds thenativekeyword to this model.- Returns:
- a reference to this model
-
notNative
default T notNative()
Removes thenativekeyword from this model.- Returns:
- a reference to this model
-
default_
default T default_()
Adds thedefaultkeyword to this model.- Returns:
- a reference to this model
-
notDefault
default T notDefault()
Removes thedefaultkeyword from this model.- Returns:
- a reference to this model
-
-