Top Description Constructors Methods
org.eclipse.xtend.lib.macro

public abstract Class AbstractAnnotationTypeProcessor

extends Object
implements RegisterGlobalsParticipant<AnnotationTypeDeclaration>, TransformationParticipant<MutableAnnotationTypeDeclaration>, CodeGenerationParticipant<AnnotationTypeDeclaration>, ValidationParticipant<AnnotationTypeDeclaration>
Class Inheritance
All Implemented Interfaces
org.eclipse.xtend.lib.macro.ValidationParticipant, org.eclipse.xtend.lib.macro.CodeGenerationParticipant, org.eclipse.xtend.lib.macro.TransformationParticipant, org.eclipse.xtend.lib.macro.RegisterGlobalsParticipant
Annotations
@Beta
Imports
java.util.List, org.eclipse.xtend.lib.macro.declaration.AnnotationTypeDeclaration, .MutableAnnotationTypeDeclaration, org.eclipse.xtext.xbase.lib.Extension, com.google.common.annotations.Beta

A convenient base class to process active annotations for annotation types.

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
doGenerateCode(List<? extends AnnotationTypeDeclaration> annotatedSourceElements, CodeGenerationContext context)

Implements org.eclipse.xtend.lib.macro.CodeGenerationParticipant.doGenerateCode.

Invoked by the compiler during the code generation phase.

public void
doGenerateCode(AnnotationTypeDeclaration
a source element annotated with the annotation this processor is responsible for.
annotatedAnnotationType
,
CodeGenerationContext context)

Called during code generation.

public void
doRegisterGlobals(List<? extends AnnotationTypeDeclaration> annotatedAnnotationTypes, RegisterGlobalsContext context)

Implements org.eclipse.xtend.lib.macro.RegisterGlobalsParticipant.doRegisterGlobals.

Called by the compiler during register-globals phase.

public void
doRegisterGlobals(AnnotationTypeDeclaration
a source element annotated with the annotation this processor is responsible for.
annotatedAnnotationType
,
RegisterGlobalsContext context)

Called during global symbol collecting.

public void
public void
doTransform(MutableAnnotationTypeDeclaration
a mutable annotation type representation annotated with the annotation this processor is responsible for.
annotatedAnnotationType
,
TransformationContext context)

public void
doValidate(List<? extends AnnotationTypeDeclaration> annotatedAnnotationTypes, ValidationContext context)

Implements org.eclipse.xtend.lib.macro.ValidationParticipant.doValidate.

Invoked by the validator

public void
doValidate(AnnotationTypeDeclaration
the generated annotation type that should be validated
annotatedAnnotationType
,
ValidationContext context)

Invoked by the validator

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

AbstractAnnotationTypeProcessorback to summary
public AbstractAnnotationTypeProcessor()

Method Detail

doGenerateCodeback to summary
public void doGenerateCode(List<? extends AnnotationTypeDeclaration> annotatedSourceElements, CodeGenerationContext context)

Implements org.eclipse.xtend.lib.macro.CodeGenerationParticipant.doGenerateCode.

Doc from org.eclipse.xtend.lib.macro.CodeGenerationParticipant.doGenerateCode.

Invoked by the compiler during the code generation phase.

doGenerateCodeback to summary
public void doGenerateCode(AnnotationTypeDeclaration annotatedAnnotationType, CodeGenerationContext context)

Called during code generation.

Parameters
annotatedAnnotationType:AnnotationTypeDeclaration

a source element annotated with the annotation this processor is responsible for.

See Also
CodeGenerationParticipant#doGenerateCode(List, CodeGenerationContext)
doRegisterGlobalsback to summary
public void doRegisterGlobals(List<? extends AnnotationTypeDeclaration> annotatedAnnotationTypes, RegisterGlobalsContext context)

Implements org.eclipse.xtend.lib.macro.RegisterGlobalsParticipant.doRegisterGlobals.

Doc from org.eclipse.xtend.lib.macro.RegisterGlobalsParticipant.doRegisterGlobals.

Called by the compiler during register-globals phase.

doRegisterGlobalsback to summary
public void doRegisterGlobals(AnnotationTypeDeclaration annotatedAnnotationType, RegisterGlobalsContext context)

Called during global symbol collecting.

Parameters
annotatedAnnotationType:AnnotationTypeDeclaration

a source element annotated with the annotation this processor is responsible for.

doTransformback to summary
public void doTransform(List<? extends MutableAnnotationTypeDeclaration> annotatedAnnotationTypes, TransformationContext context)

Implements org.eclipse.xtend.lib.macro.TransformationParticipant.doTransform.

Doc from org.eclipse.xtend.lib.macro.TransformationParticipant.doTransform.

Invoked by the compiler

doTransformback to summary
public void doTransform(MutableAnnotationTypeDeclaration annotatedAnnotationType, TransformationContext context)
Parameters
annotatedAnnotationType:MutableAnnotationTypeDeclaration

a mutable annotation type representation annotated with the annotation this processor is responsible for.

doValidateback to summary
public void doValidate(List<? extends AnnotationTypeDeclaration> annotatedAnnotationTypes, ValidationContext context)

Implements org.eclipse.xtend.lib.macro.ValidationParticipant.doValidate.

Doc from org.eclipse.xtend.lib.macro.ValidationParticipant.doValidate.

Invoked by the validator

doValidateback to summary
public void doValidate(AnnotationTypeDeclaration annotatedAnnotationType, ValidationContext context)

Invoked by the validator

Parameters
annotatedAnnotationType:AnnotationTypeDeclaration

the generated annotation type that should be validated

Since
2.7
See Also
doValidate(List, ValidationContext)