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

public abstract Class AbstractInterfaceProcessor

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

A convenient base class to process active annotations for interfaces.

Constructor Summary

AccessConstructor and Description
public

Method Summary

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

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

Invoked by the compiler during the code generation phase.

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

Called during code generation.

public void
doRegisterGlobals(List<? extends InterfaceDeclaration> annotatedInterfaces, RegisterGlobalsContext context)

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

Called by the compiler during register-globals phase.

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

Called during global symbol collecting.

public void
public void
doTransform(MutableInterfaceDeclaration
a mutable interface representation annotated with the annotation this processor is responsible for.
annotatedInterface
,
TransformationContext context)

public void
doValidate(List<? extends InterfaceDeclaration> annotatedInterfaces, ValidationContext context)

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

Invoked by the validator

public void
doValidate(InterfaceDeclaration
the generated interface that should be validated
annotatedInterface
,
ValidationContext context)

Invoked by the validator

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

AbstractInterfaceProcessorback to summary
public AbstractInterfaceProcessor()

Method Detail

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

Called during code generation.

Parameters
annotatedInterface:InterfaceDeclaration

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 InterfaceDeclaration> annotatedInterfaces, 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(InterfaceDeclaration annotatedInterface, RegisterGlobalsContext context)

Called during global symbol collecting.

Parameters
annotatedInterface:InterfaceDeclaration

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

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

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

doValidateback to summary
public void doValidate(List<? extends InterfaceDeclaration> annotatedInterfaces, 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(InterfaceDeclaration annotatedInterface, ValidationContext context)

Invoked by the validator

Parameters
annotatedInterface:InterfaceDeclaration

the generated interface that should be validated

Since
2.7
See Also
doValidate(List, ValidationContext)