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

public abstract Class AbstractEnumerationTypeProcessor

extends Object
implements RegisterGlobalsParticipant<EnumerationTypeDeclaration>, TransformationParticipant<MutableEnumerationTypeDeclaration>, CodeGenerationParticipant<EnumerationTypeDeclaration>, ValidationParticipant<EnumerationTypeDeclaration>
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.EnumerationTypeDeclaration, .MutableEnumerationTypeDeclaration, org.eclipse.xtext.xbase.lib.Extension, com.google.common.annotations.Beta

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

Constructor Summary

AccessConstructor and Description
public

Method Summary

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

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

Invoked by the compiler during the code generation phase.

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

Called during code generation.

public void
doRegisterGlobals(List<? extends EnumerationTypeDeclaration> annotatedEnumerationTypes, RegisterGlobalsContext context)

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

Called by the compiler during register-globals phase.

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

Called during global symbol collecting.

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

public void
doValidate(List<? extends EnumerationTypeDeclaration> annotatedEnumerationTypes, ValidationContext context)

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

Invoked by the validator

public void
doValidate(EnumerationTypeDeclaration
the generated enumeration type that should be validated
annotatedEnumerationType
,
ValidationContext context)

Invoked by the validator

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

AbstractEnumerationTypeProcessorback to summary
public AbstractEnumerationTypeProcessor()

Method Detail

doGenerateCodeback to summary
public void doGenerateCode(List<? extends EnumerationTypeDeclaration> 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(EnumerationTypeDeclaration annotatedEnumerationType, CodeGenerationContext context)

Called during code generation.

Parameters
annotatedEnumerationType:EnumerationTypeDeclaration

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 EnumerationTypeDeclaration> annotatedEnumerationTypes, 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(EnumerationTypeDeclaration annotatedEnumerationType, RegisterGlobalsContext context)

Called during global symbol collecting.

Parameters
annotatedEnumerationType:EnumerationTypeDeclaration

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

doTransformback to summary
public void doTransform(List<? extends MutableEnumerationTypeDeclaration> annotatedEnumerationTypes, 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(MutableEnumerationTypeDeclaration annotatedEnumerationType, TransformationContext context)
Parameters
annotatedEnumerationType:MutableEnumerationTypeDeclaration

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

doValidateback to summary
public void doValidate(List<? extends EnumerationTypeDeclaration> annotatedEnumerationTypes, 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(EnumerationTypeDeclaration annotatedEnumerationType, ValidationContext context)

Invoked by the validator

Parameters
annotatedEnumerationType:EnumerationTypeDeclaration

the generated enumeration type that should be validated

Since
2.7
See Also
doValidate(List, ValidationContext)