@Data public class ClassRule extends AbstractRule
| Modifier and Type | Field and Description |
|---|---|
protected AnnotationExtensions |
_annotationExtensions |
_elementsExtensions, _eLSupport, _generateClassContext, _messageCollector, _ruleFactory, _ruleUtils, _typesExtensions, _typesRegistry| Constructor and Description |
|---|
ClassRule(AnnotationMirror metaAnnotation,
TypeElement templateClass,
boolean isTopLevelClass) |
ClassRule(AnnotationMirror metaAnnotation,
TypeElement templateClass,
boolean isTopLevelClass,
boolean isAuxClass) |
getMetaAnnotation, getMetaElement, getRuleCreationException, inRule, registerMetaTypeElement, throwRuleCreationException, throwRuleCreationException@Extension protected final transient AnnotationExtensions _annotationExtensions
public ClassRule(AnnotationMirror metaAnnotation, TypeElement templateClass, boolean isTopLevelClass)
public ClassRule(AnnotationMirror metaAnnotation, TypeElement templateClass, boolean isTopLevelClass, boolean isAuxClass)
public List<? extends GenTypeElement> generateClass(String name, Set<GenTypeElement> generatedTopLevelClasses)
public void addAllAuxTopLevelClasses(Set<GenTypeElement> result, GenTypeElement typeElement)
public Object createShadowAnnotation(GenTypeElement generatedClass)
protected void _addOrderAnnotation(GenElement element, Integer order)
protected void _addParamNamesAnnotations(GenTypeElement typeElement)
protected void _addParamNamesAnnotations(GenExecutableElement element)
protected void _addParamNamesAnnotations(Element element)
public GenTypeElement createClass(GenTypeElement enclosingClass, String name)
public String getGeneratedTypeElementFqn(TypeElement annotatedClass)
public void addParamNamesAnnotations(Element 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 org.eclipse.xtext.xbase.lib.Functions.Function0<? extends Boolean> getActivationRule()
@Pure public TemplateRule getTemplateRule()
@Pure public MembersRule getMembersRule()
@Pure public ElementKind getKind()
@Pure public org.eclipse.xtext.xbase.lib.Functions.Function0<? extends Set<Modifier>> getModifiersRule()
@Pure public boolean isKeepAbstract()
@Pure public org.eclipse.xtext.xbase.lib.Functions.Function1<? super GenElement,? extends List<? extends AnnotationMirror>> getAnnotationsRule()
@Pure public org.eclipse.xtext.xbase.lib.Functions.Function0<? extends CharSequence> getCommentRule()
@Pure public boolean isTopLevelClass()
@Pure public ClassNameRule getNameRule()
@Pure public BehaviorDelegationRule getBehaviorRule()
@Pure public org.eclipse.xtext.xbase.lib.Functions.Function0<? extends TypeMirror> getSuperclassRule()
@Pure public List<org.eclipse.xtext.xbase.lib.Functions.Function0<? extends TypeMirror>> getInterfaceRules()
@Pure public ScopeRule<GenTypeElement> getScopeRule()
@Pure public boolean isShallCreateShadowAnnotation()
@Pure public boolean isAuxClass()
@Pure public List<ELVariableRule> getVarRules()
Copyright © 2018. All rights reserved.