Package | Description |
---|---|
com.speedment.codegen.model |
Models for typical object-oriented language building blocks are located in
this package.
|
com.speedment.codegen.model.trait |
Common traits used by the codegen models located in the
com.speedment.codegen.lang.model package. |
Modifier and Type | Method and Description |
---|---|
static Field |
Field.of(String name,
Type type)
Creates a new instance implementing this interface by using the class
supplied by the default factory.
|
Modifier and Type | Method and Description |
---|---|
static InterfaceField |
InterfaceField.of(Field wrapped)
Creates a new instance implementing this interface by wrapping an existing
Field in an InterfaceFieldImpl . |
Modifier and Type | Method and Description |
---|---|
static void |
Field.setMapper(BiFunction<String,Type,Field> mapper)
Sets the instantiation method used to create new instances of this
interface.
|
Modifier and Type | Method and Description |
---|---|
List<Field> |
HasFields.getFields()
Returns a list of all the fields in this model.
|
Modifier and Type | Method and Description |
---|---|
default T |
HasFields.add(Field field)
Adds the specified
Field to this model. |
Modifier and Type | Method and Description |
---|---|
default T |
HasFields.addAllFields(Collection<? extends Field> fields)
Adds all the specified
Field members to this model. |
Copyright © 2016 Speedment, Inc.. All rights reserved.