io.sarl.lang.typesystem
Class AnnotationJavaGenerationAdapter
All Superinterfaces:
org.eclipse.emf.common.notify.Adapter, org.eclipse.emf.common.notify.Adapter.Internal
Enclosing class:
SARLOperationHelper
static class AnnotationJavaGenerationAdapter
extends java.lang.Object
Adapter that enables to adda annotation when generating the Java code.
Maven Group Identifier:
io.sarl.lang
Maven Artifact Identifier:
compiler
Since:
0.6
Constructor Summary
Constructor and description
new
Action Summary
Modifier and type Action and description
void addPredicate(Function2<P1,P2,Result>)
Add a predicate.
boolean applyAdaptations(IOperationHelper,JvmOperation,ISideEffectContext)
Evaluate the predicates.
boolean isAdapterForType(Object)
void removeAllPredicates
Remove all the predicates.
Constructor Details
new
new
Action Details
addPredicate(Function2<P1,P2,Result>)
def addPredicate(Function2<P1,P2,Result>)
Add a predicate.
Parameters:
predicate - the predicate.
applyAdaptations(IOperationHelper,JvmOperation,ISideEffectContext)
def applyAdaptations(IOperationHelper,JvmOperation,ISideEffectContext) : boolean
Evaluate the predicates.
Parameters:
helper - the helper.
operation - the operation to adapt.
context - the context or null if none.
Returns:
the view to the operation with adaptations.
isAdapterForType(Object)
def isAdapterForType(Object) : boolean
removeAllPredicates
def removeAllPredicates
Remove all the predicates.