public final class KeyMirror extends Object
Key annotation model.| Modifier and Type | Class and Description |
|---|---|
static class |
KeyMirror.Direction
Represent ordering direction.
|
static class |
KeyMirror.Group
Represents grouping.
|
static class |
KeyMirror.Order
Represents ordering.
|
| Modifier and Type | Method and Description |
|---|---|
List<KeyMirror.Group> |
getGroup()
Returns the grouping key list.
|
List<KeyMirror.Order> |
getOrder()
Returns the ordering key list.
|
AnnotationMirror |
getSource()
Returns the source annotation.
|
static KeyMirror |
parse(CompileEnvironment environment,
AnnotationMirror source,
Element annotationOwner,
DataModelMirror contextType)
Parses the target
Key annotation. |
String |
toString() |
List<String> |
toTerms()
Returns the property terms.
|
public AnnotationMirror getSource()
public List<KeyMirror.Group> getGroup()
public List<KeyMirror.Order> getOrder()
public List<String> toTerms()
= (grouping), + (ascendant order), or - (descendant
order), and follow its property name.public static KeyMirror parse(CompileEnvironment environment, AnnotationMirror source, Element annotationOwner, DataModelMirror contextType)
Key annotation.environment - current environmentsource - the source annotationannotationOwner - annotated targetcontextType - target data model typenull if failed to parseIllegalArgumentException - if some parameters were nullCopyright © 2011–2019 Asakusa Framework Team. All rights reserved.