public class CompositeDataModelDriver extends JavaDataModelDriver
JavaDataModelDriver
.Constructor and Description |
---|
CompositeDataModelDriver(ClassLoader serviceClassLoader)
Creates composite data model driver with using registered
JavaDataModelDriver as services. |
CompositeDataModelDriver(List<? extends JavaDataModelDriver> drivers)
Creates and returns a new instance.
|
Modifier and Type | Method and Description |
---|---|
void |
generateResources(EmitContext context,
ModelDeclaration model)
Generates any resources (includes source programs) for the model.
|
List<JavaDataModelDriver> |
getDrivers()
Returns the element drivers.
|
List<FieldDeclaration> |
getFields(EmitContext context,
ModelDeclaration model)
Returns the field declarations to mixin to the model.
|
List<Type> |
getInterfaces(EmitContext context,
ModelDeclaration model)
Returns the interface types to implement to the model.
|
List<Annotation> |
getMemberAnnotations(EmitContext context,
PropertyDeclaration property)
Returns the type annotations to attach to the property.
|
List<MethodDeclaration> |
getMethods(EmitContext context,
ModelDeclaration model)
Returns the method declarations to mixin to the model.
|
List<Annotation> |
getTypeAnnotations(EmitContext context,
ModelDeclaration model)
Returns the type annotations to attach to the model.
|
getMemberAnnotations
public CompositeDataModelDriver(ClassLoader serviceClassLoader)
JavaDataModelDriver
as services.serviceClassLoader
- the class loader to load servicesIllegalArgumentException
- if some parameters were null
public CompositeDataModelDriver(List<? extends JavaDataModelDriver> drivers)
drivers
- the drivers to compositeIllegalArgumentException
- if some parameters were null
public List<JavaDataModelDriver> getDrivers()
public void generateResources(EmitContext context, ModelDeclaration model) throws IOException
JavaDataModelDriver
generateResources
in class JavaDataModelDriver
context
- the attached contextmodel
- target modelIOException
- if failed to generate resourcespublic List<Type> getInterfaces(EmitContext context, ModelDeclaration model) throws IOException
JavaDataModelDriver
getInterfaces
in class JavaDataModelDriver
context
- the attached contextmodel
- target modelIOException
- if failed to create other modelspublic List<FieldDeclaration> getFields(EmitContext context, ModelDeclaration model) throws IOException
JavaDataModelDriver
getFields
in class JavaDataModelDriver
context
- the attached contextmodel
- target modelIOException
- if failed to create other modelspublic List<MethodDeclaration> getMethods(EmitContext context, ModelDeclaration model) throws IOException
JavaDataModelDriver
getMethods
in class JavaDataModelDriver
context
- the attached contextmodel
- target modelIOException
- if failed to create other modelspublic List<Annotation> getTypeAnnotations(EmitContext context, ModelDeclaration model) throws IOException
JavaDataModelDriver
getTypeAnnotations
in class JavaDataModelDriver
context
- the attached contextmodel
- target modelIOException
- if failed to create other modelspublic List<Annotation> getMemberAnnotations(EmitContext context, PropertyDeclaration property) throws IOException
JavaDataModelDriver
getMemberAnnotations
in class JavaDataModelDriver
context
- the attached contextproperty
- target propertyIOException
- if failed to create other modelsCopyright © 2011–2019 Asakusa Framework Team. All rights reserved.