- appendAOPMembers(IBaseJvmModelInferrer,JvmGenericType,XtendTypeDeclaration,GenerationContext)
-
protected def appendAOPMembers(IBaseJvmModelInferrer,JvmGenericType,XtendTypeDeclaration,GenerationContext)
Generate the code for the given SARL members in a agent-oriented container.
- Parameters:
-
baseInferrer -
featureContainerType -
container -
context -
- appendCloneFunctionIfCloneable(IBaseJvmModelInferrer,GenerationContext,XtendTypeDeclaration,JvmGenericType)
-
protected def appendCloneFunctionIfCloneable(IBaseJvmModelInferrer,GenerationContext,XtendTypeDeclaration,JvmGenericType)
Append the clone function only if the type is a subtype of
Cloneable.
The clone function replies a value of the current type, not
Object
.
- Parameters:
-
baseInferrer -
context -
source -
target -
- Since:
-
- appendComparisonFunctions(IBaseJvmModelInferrer,GenerationContext,XtendTypeDeclaration,JvmGenericType)
-
protected def appendComparisonFunctions(IBaseJvmModelInferrer,GenerationContext,XtendTypeDeclaration,JvmGenericType)
Create the functions that permits to compare the object. The comparaison functions are equals(Object) and hashCode().
- Parameters:
-
baseInferrer -
context -
source -
target -
- appendConstrainedExtends(IBaseJvmModelInferrer,GenerationContext,JvmGenericType,Class<T>,Class<T>,List<E>)
-
protected def appendConstrainedExtends(IBaseJvmModelInferrer,GenerationContext,JvmGenericType,Class<T>,Class<T>,List<E>)
Generate the extended types for the given SARL statement.
- Parameters:
-
baseInferrer -
context -
owner -
defaultJvmType -
defaultSarlType -
supertypes -
- appendConstrainedExtends(IBaseJvmModelInferrer,GenerationContext,JvmGenericType,Class<T>,Class<T>,JvmParameterizedTypeReference)
-
protected def appendConstrainedExtends(IBaseJvmModelInferrer,GenerationContext,JvmGenericType,Class<T>,Class<T>,JvmParameterizedTypeReference)
Generate the extended types for the given SARL statement.
- Parameters:
-
baseInferrer -
context -
owner -
defaultJvmType -
defaultSarlType -
supertype -
- appendConstrainedImplements(IBaseJvmModelInferrer,GenerationContext,JvmGenericType,Class<T>,Class<T>,List<E>)
-
protected def appendConstrainedImplements(IBaseJvmModelInferrer,GenerationContext,JvmGenericType,Class<T>,Class<T>,List<E>)
Generate the implemented types for the given SARL statement.
- Parameters:
-
baseInferrer -
context -
owner -
defaultJvmType -
defaultSarlType -
implementedtypes -
- appendDefaultConstructors(IBaseJvmModelInferrer,XtendTypeDeclaration,JvmGenericType)
-
protected def appendDefaultConstructors(IBaseJvmModelInferrer,XtendTypeDeclaration,JvmGenericType)
Add the default constructors.
The default constructors have the same signature as the constructors of the super class.
This function adds the default constructors if no constructor was already added. This condition is determined with a call to
hasConstructor().
- Parameters:
-
baseInferrer -
source -
target -
- See:
-
- appendFunctionalInterfaceAnnotation(IBaseJvmModelInferrer,JvmGenericType)
-
protected def appendFunctionalInterfaceAnnotation(IBaseJvmModelInferrer,JvmGenericType)
Append the @FunctionalInterface to the given type if it is a functional interface according to the Java 8 specification definition.
- Parameters:
-
baseInferrer -
type -
- appendInjectableAnnotationIfInjectable(IBaseJvmModelInferrer,JvmDeclaredType,GenerationContext)
-
protected def appendInjectableAnnotationIfInjectable(IBaseJvmModelInferrer,JvmDeclaredType,GenerationContext)
Append the injectable annotation to the given container.
- Parameters:
-
baseInferrer -
target -
context -
- Since:
-
- appendSARLElementType(IBaseJvmModelInferrer,XtendTypeDeclaration,JvmDeclaredType)
-
protected def appendSARLElementType(IBaseJvmModelInferrer,XtendTypeDeclaration,JvmDeclaredType)
Append the SARL element type as an annotation to the given container.
The added annotation may be used by any underground platform for determining what is the type of the SARL element without invoking the costly "instanceof" operations.
- Parameters:
-
baseInferrer -
source -
target -
- appendSARLSpecificationVersion(IBaseJvmModelInferrer,GenerationContext,XtendTypeDeclaration,JvmDeclaredType)
-
protected def appendSARLSpecificationVersion(IBaseJvmModelInferrer,GenerationContext,XtendTypeDeclaration,JvmDeclaredType)
Append the SARL specification version as an annotation to the given container.
The added annotation may be used by any underground platform for determining what is the version of the SARL specification that was used for generating the container.
- Parameters:
-
baseInferrer -
context -
source -
target -
- appendSerialNumber(IBaseJvmModelInferrer,GenerationContext,XtendTypeDeclaration,JvmGenericType)
-
protected def appendSerialNumber(IBaseJvmModelInferrer,GenerationContext,XtendTypeDeclaration,JvmGenericType)
Append the serial number field.
The serial number field is computed from the given context and from the generated fields. The field is added if no field with name "serialVersionUID" was defined.
This function does not test if the field container is serializable.
- Parameters:
-
baseInferrer -
context -
source -
target -
- See:
-
- appendSerialNumberIfSerializable(IBaseJvmModelInferrer,GenerationContext,XtendTypeDeclaration,JvmGenericType)
-
protected def appendSerialNumberIfSerializable(IBaseJvmModelInferrer,GenerationContext,XtendTypeDeclaration,JvmGenericType)
Append the serial number field if and only if the container type is serializable.
The serial number field is computed from the given context and from the generated fields.
- Parameters:
-
baseInferrer -
context -
source -
target -
- See:
-
- appendSyntheticDefaultValuedParameterMethods(IBaseJvmModelInferrer,XtendTypeDeclaration,JvmDeclaredType,boolean,GenerationContext)
-
protected def appendSyntheticDefaultValuedParameterMethods(IBaseJvmModelInferrer,XtendTypeDeclaration,JvmDeclaredType,boolean,GenerationContext)
Generate the missed operations that are the results from the generation of actions with default value parameters.
- Parameters:
-
baseInferrer -
source -
target -
ignoreOverridableOperations -
context -
- appendXbaseGeneratedAnnotation(IBaseJvmModelInferrer,JvmAnnotationTarget)
-
protected def appendXbaseGeneratedAnnotation(IBaseJvmModelInferrer,JvmAnnotationTarget)
Add the @XbaseGenerated annotation to the given target.
- Parameters:
-
baseInferrer -
target -
- copyNonStaticPublicJvmOperations(IBaseJvmModelInferrer,JvmGenericType,JvmGenericType,Set<E>,boolean,Procedure2<P1,P2>)
-
protected def copyNonStaticPublicJvmOperations(IBaseJvmModelInferrer,JvmGenericType,JvmGenericType,Set<E>,boolean,Procedure2<P1,P2>)
Copy the JVM operations from the source to the destination.
- Parameters:
-
baseInferrer -
source -
target -
createdActions -
copyHiddenNames -
bodyBuilder -
- Since:
-
- copyTypeParametersFromJvmOperation(IBaseJvmModelInferrer,JvmOperation,JvmOperation)
-
protected def copyTypeParametersFromJvmOperation(IBaseJvmModelInferrer,JvmOperation,JvmOperation)
- Parameters:
-
baseInferrer -
fromOperation -
toOperation -
- getVisibleInheritedJvmConstructors(JvmGenericType,JvmGenericType)
-
protected def getVisibleInheritedJvmConstructors(JvmGenericType,JvmGenericType) : java.lang.Iterable<T>
Replies the constructors from the super type that are visible.
- Returns:
-
- Since:
-