-
- All Superinterfaces:
ClassOrInterface<Interface>,HasAnnotationUsage<Interface>,HasCall<Interface>,HasClasses<Interface>,HasCopy<Interface>,HasFields<Interface>,HasGenerics<Interface>,HasImplements<Interface>,HasImports<Interface>,HasInitializers<Interface>,HasJavadoc<Interface>,HasMethods<Interface>,HasModifiers<Interface>,HasName<Interface>,HasParent<HasClasses<?>,Interface>,InterfaceModifier<Interface>
public interface Interface extends ClassOrInterface<Interface>, InterfaceModifier<Interface>
A model that represents an interface in code.- Since:
- 2.0
- Author:
- Emil Forslund
- See Also:
InterfaceField,InterfaceMethod
-
-
Method Summary
All Methods Static Methods Instance Methods Default Methods Modifier and Type Method Description default TnotPublic()Removes thepublickeyword from this model.static Interfaceof(String name)Creates a new instance implementing this interface by using the default implementation.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.HasClasses
add, addAllClasses, getClasses
-
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
-
of
static Interface 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
-
-