Modifier and type | Action and description |
---|---|
protected final void | addDefaultConstructor(XtendClass,JvmGenericType) |
protected void | appendAOPMembers(JvmGenericType,XtendTypeDeclaration,GenerationContext) Generate the code for the given SARL members in a agent-oriented container. |
protected void | appendCapacityContextAwareWrapper(SarlCapacity,JvmGenericType) Initialize the SARL capacity context-aware wrapper. |
protected void | appendCloneFunction(GenerationContext,XtendTypeDeclaration,JvmGenericType) Append the clone function. |
protected void | appendCloneFunctionIfCloneable(GenerationContext,XtendTypeDeclaration,JvmGenericType) Append the clone function only if the type is a subtype of Cloneable. |
protected void | appendComparisonFunctions(GenerationContext,XtendTypeDeclaration,JvmGenericType) Create the functions that permits to compare the object. |
protected void | appendConstrainedExtends(GenerationContext,JvmGenericType,Class<T>,Class<T>,List<E>) Generate the extended types for the given SARL statement. |
protected void | appendConstrainedExtends(GenerationContext,JvmGenericType,Class<T>,Class<T>,JvmParameterizedTypeReference) Generate the extended types for the given SARL statement. |
protected void | appendConstrainedImplements(GenerationContext,JvmGenericType,Class<T>,Class<T>,List<E>) Generate the implemented types for the given SARL statement. |
protected void | appendDefaultConstructors(XtendTypeDeclaration,JvmGenericType) Add the default constructors. |
protected java.lang.String | appendEventGuardEvaluatorForReflectMethod(Pair<K,V>,JvmGenericType,GenerationContext) Append the guard evaluators for the reflection-based method. |
protected void | appendEventGuardEvaluators(JvmGenericType) Append the guard evaluators. |
protected void | appendEventGuardEvaluatorsForPolymorphicMethod(Map<K,V>,boolean,JvmGenericType,GenerationContext) Append the guard evaluators for the polymorphic method. |
protected void | appendFunctionalInterfaceAnnotation(JvmGenericType) Append the @FunctionalInterface to the given type if it is a functional interface according to the Java 8 specification definition. |
protected final void | appendGeneratedAnnotation(JvmAnnotationTarget,GenerationContext) Add the @Generated annotation to the given target. |
protected void | appendGeneratedAnnotation(JvmAnnotationTarget,GenerationContext,String) Add the @Generated annotation to the given target. |
protected void | appendInjectableAnnotationIfInjectable(JvmDeclaredType,GenerationContext) Append the injectable annotation to the given container. |
protected void | appendSARLElementType(XtendTypeDeclaration,JvmDeclaredType) Append the SARL element type as an annotation to the given container. |
protected void | appendSARLSpecificationVersion(GenerationContext,XtendTypeDeclaration,JvmDeclaredType) Append the SARL specification version as an annotation to the given container. |
protected void | appendSerialNumber(GenerationContext,XtendTypeDeclaration,JvmGenericType) Append the serial number field. |
protected void | appendSerialNumberIfSerializable(GenerationContext,XtendTypeDeclaration,JvmGenericType) Append the serial number field if and only if the container type is serializable. |
protected void | appendSyntheticDefaultValuedParameterMethods(XtendTypeDeclaration,JvmDeclaredType,boolean,GenerationContext) Generate the missed operations that are the results from the generation of actions with default value parameters. |
protected void | appendToStringFunctions(GenerationContext,XtendTypeDeclaration,JvmGenericType) Create the functions that are related to the toString function. |
protected org.eclipse.xtext.common.types.JvmTypeReference | cloneWithProxiesFromOtherResource(JvmTypeReference,JvmOperation) Clone the given type reference that is associated to another Xtext resource. |
protected org.eclipse.xtext.common.types.JvmTypeReference | cloneWithTypeParametersAndProxies(JvmTypeReference,JvmExecutable) Clone the given type reference that for being link to the given executable component. |
protected final void | closeContext(GenerationContext) Close a generation context. |
protected boolean | copyAndCleanDocumentationTo(XtendExecutable,JvmExecutable) Copy and clean the given documentation by removing any unecessary @param . |
protected boolean | copyAndCleanDocumentationTo(JvmExecutable,JvmExecutable) Copy and clean the given documentation by removing any unnecessary @param . |
protected void | copyNonStaticPublicJvmOperations(JvmGenericType,JvmGenericType,Set<E>,boolean,Procedure2<P1,P2>) Copy the JVM operations from the source to the destination. |
protected void | copyTypeParametersFromJvmOperation(JvmOperation,JvmOperation) Copy the type parameters from a JvmOperation. |
protected void | copyVisibleJvmConstructors(GenerationContext,JvmGenericType,JvmGenericType,XtendTypeDeclaration,Set<E>,JvmVisibility) Copy the JVM constructors from the source to the destination. |
protected org.eclipse.xtext.common.types.JvmOperation | deriveGenericDispatchOperationSignature(Iterable<T>,JvmGenericType) |
protected org.eclipse.xtext.common.types.JvmDeclaredType | doInferTypeSceleton(XtendTypeDeclaration,IJvmDeclaredTypeAcceptor,boolean,XtendFile,List<E>) |
protected final io.sarl.lang.jvmmodel.GenerationContext | getContext(JvmIdentifiableElement) Replies the SARL-specific generation context. |
protected java.util.List<E> | getTypeParametersFor(XtendTypeDeclaration) Replies the type parameters for the given type. |
protected org.eclipse.xtext.common.types.JvmTypeReference | inferFunctionReturnType(XExpression) Infer the function's return type. |
protected org.eclipse.xtext.common.types.JvmTypeReference | inferFunctionReturnType(XtendFunction,JvmOperation,JvmOperation) Infer the return type for the given source function. |
void | inferLocalClass(AnonymousClass,String,JvmFeature) . |
protected void | initialize(SarlAgent,JvmGenericType) Initialize the SARL agent type. |
protected void | initialize(SarlArtifact,JvmGenericType) Initialize the SARL artifact type. |
protected void | initialize(SarlBehavior,JvmGenericType) Initialize the SARL behavior type. |
protected void | initialize(SarlCapacity,JvmGenericType) Initialize the SARL capacity type. |
protected void | initialize(SarlEvent,JvmGenericType) Initialize the SARL event type. |
protected void | initialize(SarlSkill,JvmGenericType) Initialize the SARL skill type. |
protected void | initialize(SarlSpace,JvmGenericType) Initialize the SARL space type. |
protected void | initialize(XtendAnnotationType,JvmAnnotationType) |
protected void | initialize(XtendClass,JvmGenericType) |
protected void | initialize(XtendEnum,JvmEnumerationType) |
protected void | initialize(XtendInterface,JvmGenericType) |
protected void | initializeLocalTypes(GenerationContext,JvmFeature,XExpression) Initialize the local class to the given expression. |
protected boolean | isAccessibleTypeAccordingToJavaSpecifications(GenerationContext,JvmDeclaredType) Replies if the given type is accessible according to the Java specifications. |
protected void | logInternalError(String) Log an internal error but do not fail. |
protected void | logInternalError(Throwable) Log an internal error but do not fail. |
protected final io.sarl.lang.jvmmodel.GenerationContext | openContext(EObject,JvmDeclaredType,Iterable<T>) Open the context for the generation of a SARL-specific element. |
protected void | setBody(JvmExecutable,StringConcatenationClient) Set the body of the executable. |
protected void | setBody(JvmExecutable,Procedure1<Param>) Set the body of the executable. |
protected void | setBody(JvmExecutable,XExpression) . |
protected org.eclipse.xtext.common.types.JvmTypeReference | skipTypeParameters(JvmTypeReference,Notifier) Remove the type parameters from the given type. |
protected void | transform(SarlBehaviorUnit,JvmGenericType) Transform the given behavior unit. |
protected void | transform(SarlCapacityUses,JvmGenericType) Transform the uses of SARL capacities. |
protected void | transform(SarlRequiredCapacity,JvmGenericType) Transform the requirements of SARL capacities. |
protected void | transform(XtendConstructor,JvmGenericType) Transform the constructor. |
protected void | transform(XtendField,JvmGenericType) Transform the field. |
protected void | transform(XtendFunction,JvmGenericType,boolean) Transform the function. |
protected void | transform(XtendMember,JvmGenericType,boolean) |
protected void | translateAnnotationsTo(List<E>,JvmAnnotationTarget,Class<T>*) Copy the annotations, except the ones given as parameters. |
protected void | translateSarlFormalParameters(GenerationContext,JvmExecutable,JvmGenericType,boolean,List<E>,boolean,List<E>,boolean) Generate a list of formal parameters with annotations for the default values. |
protected void | translateSarlFormalParametersForLocalHiddenDefaultValues(GenerationContext,JvmOperation) Generate the local default values. |
protected java.util.List<E> | translateSarlFormalParametersForSyntheticOperation(JvmExecutable,JvmGenericType,boolean,List<E>) Generate a list arguments from the formal parameters in order to be used for a call into a synthetic operation, such as default-valued parameter function. |
new
protected def addDefaultConstructor(XtendClass,JvmGenericType)
protected def appendAOPMembers(JvmGenericType,XtendTypeDeclaration,GenerationContext)
protected def appendCapacityContextAwareWrapper(SarlCapacity,JvmGenericType)
protected def appendCloneFunction(GenerationContext,XtendTypeDeclaration,JvmGenericType)
Object
.
protected def appendCloneFunctionIfCloneable(GenerationContext,XtendTypeDeclaration,JvmGenericType)
Object
.
protected def appendComparisonFunctions(GenerationContext,XtendTypeDeclaration,JvmGenericType)
protected def appendConstrainedExtends(GenerationContext,JvmGenericType,Class<T>,Class<T>,List<E>)
protected def appendConstrainedExtends(GenerationContext,JvmGenericType,Class<T>,Class<T>,JvmParameterizedTypeReference)
protected def appendConstrainedImplements(GenerationContext,JvmGenericType,Class<T>,Class<T>,List<E>)
protected def appendDefaultConstructors(XtendTypeDeclaration,JvmGenericType)
protected def appendEventGuardEvaluatorForReflectMethod(Pair<K,V>,JvmGenericType,GenerationContext) : java.lang.String
protected def appendEventGuardEvaluators(JvmGenericType)
protected def appendEventGuardEvaluatorsForPolymorphicMethod(Map<K,V>,boolean,JvmGenericType,GenerationContext)
protected def appendFunctionalInterfaceAnnotation(JvmGenericType)
protected def appendGeneratedAnnotation(JvmAnnotationTarget,GenerationContext)
protected def appendGeneratedAnnotation(JvmAnnotationTarget,GenerationContext,String)
protected def appendInjectableAnnotationIfInjectable(JvmDeclaredType,GenerationContext)
protected def appendSARLElementType(XtendTypeDeclaration,JvmDeclaredType)
protected def appendSARLSpecificationVersion(GenerationContext,XtendTypeDeclaration,JvmDeclaredType)
protected def appendSerialNumber(GenerationContext,XtendTypeDeclaration,JvmGenericType)
protected def appendSerialNumberIfSerializable(GenerationContext,XtendTypeDeclaration,JvmGenericType)
protected def appendSyntheticDefaultValuedParameterMethods(XtendTypeDeclaration,JvmDeclaredType,boolean,GenerationContext)
protected def appendToStringFunctions(GenerationContext,XtendTypeDeclaration,JvmGenericType)
toString
function.
protected def cloneWithProxiesFromOtherResource(JvmTypeReference,JvmOperation) : org.eclipse.xtext.common.types.JvmTypeReference
target
is null
for the first, and not null
for the second.
protected def cloneWithTypeParametersAndProxies(JvmTypeReference,JvmExecutable) : org.eclipse.xtext.common.types.JvmTypeReference
protected def closeContext(GenerationContext)
protected def copyAndCleanDocumentationTo(XtendExecutable,JvmExecutable) : boolean
@param
.
protected def copyAndCleanDocumentationTo(JvmExecutable,JvmExecutable) : boolean
@param
.
protected def copyNonStaticPublicJvmOperations(JvmGenericType,JvmGenericType,Set<E>,boolean,Procedure2<P1,P2>)
protected def copyTypeParametersFromJvmOperation(JvmOperation,JvmOperation)
protected def copyVisibleJvmConstructors(GenerationContext,JvmGenericType,JvmGenericType,XtendTypeDeclaration,Set<E>,JvmVisibility)
protected def deriveGenericDispatchOperationSignature(Iterable<T>,JvmGenericType) : org.eclipse.xtext.common.types.JvmOperation
protected def doInferTypeSceleton(XtendTypeDeclaration,IJvmDeclaredTypeAcceptor,boolean,XtendFile,List<E>) : org.eclipse.xtext.common.types.JvmDeclaredType
protected def getContext(JvmIdentifiableElement) : io.sarl.lang.jvmmodel.GenerationContext
protected def getTypeParametersFor(XtendTypeDeclaration) : java.util.List<E>
protected def inferFunctionReturnType(XExpression) : org.eclipse.xtext.common.types.JvmTypeReference
protected def inferFunctionReturnType(XtendFunction,JvmOperation,JvmOperation) : org.eclipse.xtext.common.types.JvmTypeReference
def inferLocalClass(AnonymousClass,String,JvmFeature)
protected def initialize(SarlAgent,JvmGenericType)
protected def initialize(SarlArtifact,JvmGenericType)
protected def initialize(SarlBehavior,JvmGenericType)
protected def initialize(SarlCapacity,JvmGenericType)
protected def initialize(SarlEvent,JvmGenericType)
protected def initialize(SarlSkill,JvmGenericType)
protected def initialize(SarlSpace,JvmGenericType)
protected def initialize(XtendAnnotationType,JvmAnnotationType)
protected def initialize(XtendClass,JvmGenericType)
protected def initialize(XtendEnum,JvmEnumerationType)
protected def initialize(XtendInterface,JvmGenericType)
protected def initializeLocalTypes(GenerationContext,JvmFeature,XExpression)
protected def isAccessibleTypeAccordingToJavaSpecifications(GenerationContext,JvmDeclaredType) : boolean
HotSpotIntrinsicCandidate
annotation, are inaccessible because they are in private modules.
protected def logInternalError(String)
protected def logInternalError(Throwable)
protected def openContext(EObject,JvmDeclaredType,Iterable<T>) : io.sarl.lang.jvmmodel.GenerationContext
protected def setBody(JvmExecutable,StringConcatenationClient)
protected def setBody(JvmExecutable,Procedure1<Param>)
protected def setBody(JvmExecutable,XExpression)
protected def skipTypeParameters(JvmTypeReference,Notifier) : org.eclipse.xtext.common.types.JvmTypeReference
Referenced type | Input | Replied referenced type | Output |
---|---|---|---|
Type with generic type parameter | T<G> |
the type itself | T |
Type without generic type parameter | T |
the type itself | T |
Type parameter without bound | <S> |
Object |
Object |
Type parameter with lower bound | <S super B> |
Object |
Object |
Type parameter with upper bound | <S extends B> |
the bound type | B |
protected def transform(SarlBehaviorUnit,JvmGenericType)
protected def transform(SarlCapacityUses,JvmGenericType)
protected def transform(SarlRequiredCapacity,JvmGenericType)
protected def transform(XtendConstructor,JvmGenericType)
protected def transform(XtendField,JvmGenericType)
protected def transform(XtendFunction,JvmGenericType,boolean)
protected def transform(XtendMember,JvmGenericType,boolean)
protected def translateAnnotationsTo(List<E>,JvmAnnotationTarget,Class<T>*)
protected def translateSarlFormalParameters(GenerationContext,JvmExecutable,JvmGenericType,boolean,List<E>,boolean,List<E>,boolean)
protected def translateSarlFormalParametersForLocalHiddenDefaultValues(GenerationContext,JvmOperation)
protected def translateSarlFormalParametersForSyntheticOperation(JvmExecutable,JvmGenericType,boolean,List<E>) : java.util.List<E>