@Singleton
public class SarlAccessorsProcessor
extends org.eclipse.xtend.lib.annotations.AccessorsProcessor
@Accessors
active annotations.
This processor that is defined in SARL has the following properties compared to the super processor:
Modifier and Type | Class and Description |
---|---|
class |
SarlAccessorsProcessor.Util
Utilities for the accessor processor.
|
Constructor and Description |
---|
SarlAccessorsProcessor() |
Modifier and Type | Method and Description |
---|---|
protected void |
_transform(it : org.eclipse.xtend.lib.macro.declaration.MutableFieldDeclaration,
context : org.eclipse.xtend.lib.macro.TransformationContext) |
protected org.eclipse.xtend.lib.macro.declaration.Visibility |
applyMinMaxVisibility(visibility : org.eclipse.xtend.lib.macro.declaration.Visibility,
it : org.eclipse.xtend.lib.macro.declaration.MutableFieldDeclaration,
context : org.eclipse.xtend.lib.macro.TransformationContext)
Apply the minimum and maximum visibilities to the given one.
|
protected def
_transform(it : org.eclipse.xtend.lib.macro.declaration.MutableFieldDeclaration,
context : org.eclipse.xtend.lib.macro.TransformationContext) : void
_transform
in class org.eclipse.xtend.lib.annotations.AccessorsProcessor
protected def
applyMinMaxVisibility(visibility : org.eclipse.xtend.lib.macro.declaration.Visibility,
it : org.eclipse.xtend.lib.macro.declaration.MutableFieldDeclaration,
context : org.eclipse.xtend.lib.macro.TransformationContext) : org.eclipse.xtend.lib.macro.declaration.Visibility
SarlAccessorsProcessor
visibility
- the visibility.it
- the field associated to the accessors to generate.context
- the transformation context.visibility
, or the min/max visibility if the given one is too high.Copyright © 2021 the original authors or authors.