public class DmdlDataModelMirrorRepository extends Object implements DataModelMirrorRepository, PropertyMirrorCollector
DataModelMirrorRepository
for DMDL.Constructor and Description |
---|
DmdlDataModelMirrorRepository() |
Modifier and Type | Method and Description |
---|---|
Set<PropertyMirror> |
collect(CompileEnvironment environment,
TypeMirror targetType,
List<TypeElement> upperBounds)
Creates and returns the set of properties.
|
DataModelMirror |
load(CompileEnvironment environment,
TypeMirror type)
Loads a mirror of the data model corresponded to the specified type.
|
public DataModelMirror load(CompileEnvironment environment, TypeMirror type)
DataModelMirrorRepository
load
in interface DataModelMirrorRepository
environment
- the compiling environmenttype
- the corresponded typenull
if the type does not represent a valid data model for this repositorypublic Set<PropertyMirror> collect(CompileEnvironment environment, TypeMirror targetType, List<TypeElement> upperBounds)
PropertyMirrorCollector
collect
in interface PropertyMirrorCollector
environment
- current environmenttargetType
- target property owner typeupperBounds
- upper-bound types of owner typeCopyright © 2011–2019 Asakusa Framework Team. All rights reserved.