@Data public class AnnotationMappingRule extends AbstractRule
_elementsExtensions, _eLSupport, _generateClassContext, _messageCollector, _ruleFactory, _ruleUtils, _typesExtensions, _typesRegistry| Constructor and Description |
|---|
AnnotationMappingRule(AnnotationMirror annotationTemplate,
Element templateElement) |
AnnotationMappingRule(AnnotationMirror am,
Map<String,AnnotationMappingRule> annotationMappingsById) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
org.eclipse.xtext.xbase.lib.Functions.Function0<? extends Boolean> |
getActivationRule() |
Set<String> |
getCopyAnnotationsFqns() |
String[] |
getCopyAnnotationsFromPackages() |
String |
getId() |
AnnotationMode |
getMode() |
org.eclipse.xtext.xbase.lib.Functions.Function1<? super org.eclipse.xtext.xbase.lib.Functions.Function1<? super Object,?>,? extends Iterable<Object>> |
getScopeRule() |
DeclaredType |
getTargetAnnotation() |
AnnotationValueMappingRule[] |
getValueMappings() |
int |
hashCode() |
boolean |
isSetShadowOnTriggerAnnotations() |
void |
mapOrCopyAnnotations(List<GenAnnotationMirror> annotations)
Adds the annotation mapped by this rule.
|
String |
toString() |
getMetaAnnotation, getMetaElement, getRuleCreationException, inRule, registerMetaTypeElement, throwRuleCreationException, throwRuleCreationExceptionpublic AnnotationMappingRule(AnnotationMirror am, Map<String,AnnotationMappingRule> annotationMappingsById)
public AnnotationMappingRule(AnnotationMirror annotationTemplate, Element templateElement)
public void mapOrCopyAnnotations(List<GenAnnotationMirror> annotations)
annotations - the annotations generated so far for the elementsrcElement - the source element@Pure public int hashCode()
hashCode in class AbstractRule@Pure public boolean equals(Object obj)
equals in class AbstractRule@Pure public String toString()
toString in class AbstractRule@Pure public String getId()
@Pure public org.eclipse.xtext.xbase.lib.Functions.Function0<? extends Boolean> getActivationRule()
@Pure public DeclaredType getTargetAnnotation()
@Pure public AnnotationValueMappingRule[] getValueMappings()
@Pure public AnnotationMode getMode()
@Pure public String[] getCopyAnnotationsFromPackages()
@Pure public boolean isSetShadowOnTriggerAnnotations()
Copyright © 2018. All rights reserved.