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

public abstract Class AbstractConstructorProcessor

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

A convenient base class to process active annotations for constructors.
Author
Sven Efftinge
Since
2.8

Constructor Summary

AccessConstructor and Description
public

Method Summary

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

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

Invoked by the compiler during the code generation phase.

public void
doGenerateCode(ConstructorDeclaration
a source method annotated with the annotation this processor is responsible for.
annotatedConstructor
,
CodeGenerationContext context)

public void
doRegisterGlobals(List<? extends ConstructorDeclaration> annotatedConstructors, RegisterGlobalsContext context)

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

Called by the compiler during register-globals phase.

public void
doRegisterGlobals(ConstructorDeclaration
a source method annotated with the annotation this processor is responsible for.
annotatedConstructor
,
RegisterGlobalsContext context)

public void
public void
doTransform(MutableConstructorDeclaration
a mutable method representation annotated with the annotation this processor is responsible for.
annotatedConstructor
,
TransformationContext context)

public void
doValidate(List<? extends ConstructorDeclaration> annotatedConstructors, ValidationContext context)

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

Invoked by the validator

public void
doValidate(ConstructorDeclaration
that generated method that should be validated
annotatedConstructor
,
ValidationContext context)

Invoked by the validator

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

AbstractConstructorProcessorback to summary
public AbstractConstructorProcessor()

Method Detail

doGenerateCodeback to summary
public void doGenerateCode(List<? extends ConstructorDeclaration> annotatedConstructors, 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(ConstructorDeclaration annotatedConstructor, CodeGenerationContext context)
Parameters
annotatedConstructor:ConstructorDeclaration

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

doRegisterGlobalsback to summary
public void doRegisterGlobals(List<? extends ConstructorDeclaration> annotatedConstructors, 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(ConstructorDeclaration annotatedConstructor, RegisterGlobalsContext context)
Parameters
annotatedConstructor:ConstructorDeclaration

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

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

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

doValidateback to summary
public void doValidate(List<? extends ConstructorDeclaration> annotatedConstructors, 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(ConstructorDeclaration annotatedConstructor, ValidationContext context)

Invoked by the validator

Parameters
annotatedConstructor:ConstructorDeclaration

that generated method that should be validated

Since
2.7
See Also
doValidate(ConstructorDeclaration, ValidationContext)