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.
|
getMemberAnnotationspublic CompositeDataModelDriver(ClassLoader serviceClassLoader)
JavaDataModelDriver as services.serviceClassLoader - the class loader to load servicesIllegalArgumentException - if some parameters were nullpublic CompositeDataModelDriver(List<? extends JavaDataModelDriver> drivers)
drivers - the drivers to compositeIllegalArgumentException - if some parameters were nullpublic List<JavaDataModelDriver> getDrivers()
public void generateResources(EmitContext context, ModelDeclaration model) throws IOException
JavaDataModelDrivergenerateResources in class JavaDataModelDrivercontext - the attached contextmodel - target modelIOException - if failed to generate resourcespublic List<Type> getInterfaces(EmitContext context, ModelDeclaration model) throws IOException
JavaDataModelDrivergetInterfaces in class JavaDataModelDrivercontext - the attached contextmodel - target modelIOException - if failed to create other modelspublic List<FieldDeclaration> getFields(EmitContext context, ModelDeclaration model) throws IOException
JavaDataModelDrivergetFields in class JavaDataModelDrivercontext - the attached contextmodel - target modelIOException - if failed to create other modelspublic List<MethodDeclaration> getMethods(EmitContext context, ModelDeclaration model) throws IOException
JavaDataModelDrivergetMethods in class JavaDataModelDrivercontext - the attached contextmodel - target modelIOException - if failed to create other modelspublic List<Annotation> getTypeAnnotations(EmitContext context, ModelDeclaration model) throws IOException
JavaDataModelDrivergetTypeAnnotations in class JavaDataModelDrivercontext - the attached contextmodel - target modelIOException - if failed to create other modelspublic List<Annotation> getMemberAnnotations(EmitContext context, PropertyDeclaration property) throws IOException
JavaDataModelDrivergetMemberAnnotations in class JavaDataModelDrivercontext - the attached contextproperty - target propertyIOException - if failed to create other modelsCopyright © 2011–2018 Asakusa Framework Team. All rights reserved.