io.sarl.lang.core.annotations
Class SarlAccessorsProcessor
All Superinterfaces:
org.eclipse.xtend.lib.macro.TransformationParticipant<T>
@javax.inject.Singleton
class SarlAccessorsProcessor
extends java.lang.Object
Processor for the @Accessors active annotations.

This processor that is defined in SARL has the following properties compared to the super processor:
  • Ensure that the visibility of the generated functions is not higher than the visibility allowed into the containing type.
Maven Group Identifier:
io.sarl.lang
Maven Artifact Identifier:
core
Since:
0.9
Nested Type Summary
Modifier and type Type and description
class SarlAccessorsProcessor.Util
Utilities for the accessor processor.
Constructor Summary
Constructor and description
new
Constructor.
Action Summary
Modifier and type Action and description
protected void _transform(MutableFieldDeclaration,TransformationContext)
protected org.eclipse.xtend.lib.macro.declaration.Visibility applyMinMaxVisibility(Visibility,MutableFieldDeclaration,TransformationContext)
Apply the minimum and maximum visibilities to the given one.
Constructor Details
new
new
Constructor.
Action Details
_transform(MutableFieldDeclaration,TransformationContext)
protected def _transform(MutableFieldDeclaration,TransformationContext)
applyMinMaxVisibility(Visibility,MutableFieldDeclaration,TransformationContext)
protected def applyMinMaxVisibility(Visibility,MutableFieldDeclaration,TransformationContext) : org.eclipse.xtend.lib.macro.declaration.Visibility
Apply the minimum and maximum visibilities to the given one.
Parameters:
visibility - the visibility.
it - the field associated to the accessors to generate.
context - the transformation context.
Returns:
the given visibility , or the min/max visibility if the given one is too high.