@Singleton
public class SarlAccessorsProcessor
extends org.eclipse.xtend.lib.annotations.AccessorsProcessor
@Accessors
active annotations.
This processor ensures that the visibility of the generated functions is not higher than the visility allowed into the containing type.
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 © 2020 the original authors or authors.