Modifier and type | Type and description |
---|---|
class | AbstractJvmModelInferrerFragment.Impl
Abstract implementation of a fragment that may be used for inferring the JVM model. |
Modifier and type | Field and description |
---|---|
protected var SARLAnnotationUtil | annotationUtils
Utilities for JVM annotations. |
protected var org.eclipse.xtext.xbase.jvmmodel.IJvmModelAssociator | associator
Associator of the SARL element to the generated JVM element. |
protected var ITypeDefaultValueProvider | defaultValueProvider
Provider the default value for a specific type. |
protected static val java.lang.String | GENERATED_NAME
Name of the annotation used for marking the constructs as generated. |
protected var SARLGrammarKeywordAccess | grammarKeywordAccess
Accessor to the SARL keywords defined in the grammar. |
protected var org.eclipse.xtext.common.types.util.AnnotationLookup | jvmAnnotationFinder
Finder of JVM annotations attached to JVM elements. |
protected var org.eclipse.xtext.xbase.jvmmodel.JvmTypesBuilder | jvmTypeBuilder
Tools for adding constructs to the JVM elements. |
protected var org.eclipse.xtext.common.types.util.TypeReferences | jvmTypeReferences
Builder of and accessor to JVM type references. |
protected var org.eclipse.xtext.common.types.TypesFactory | jvmTypesFactory
Factory of JVM types. |
protected var org.eclipse.xtend.core.jvmmodel.SyntheticNameClashResolver | nameClashResolver
Resolver on name incompatibility. |
protected static val java.lang.String | RUNNABLE_COLLECTION
Name for the collection of runnable objects for the behavior units. |
protected var SarlJvmModelAssociations | sarlAssociations
Access to the associations between SARL objects and JVM objects. |
protected var IActionPrototypeProvider | sarlSignatureProvider
Manager and provider of SARL action signatures. |
protected var org.eclipse.xtext.xbase.typesystem.util.CommonTypeComputationServices | services
Several generation services. |
Modifier and type | Action and description |
---|---|
protected org.eclipse.xtext.common.types.JvmAnnotationReference | addAnnotationSafe(JvmAnnotationTarget,Class<T>,int)
Add annotation safely. |
protected org.eclipse.xtext.common.types.JvmAnnotationReference | addAnnotationSafe(IBaseJvmModelInferrer,JvmAnnotationTarget,Class<T>,String*)
Add annotation safely. |
protected org.eclipse.xtext.common.types.JvmAnnotationReference | addAnnotationSafe(IBaseJvmModelInferrer,JvmAnnotationTarget,String,String*)
Add annotation safely. |
protected org.eclipse.xtext.common.types.JvmAnnotationReference | annotationClassRef(IBaseJvmModelInferrer,Class<T>,List<E>)
Create a JVM annotation with classes as values. |
protected final void | appendGeneratedAnnotation(IBaseJvmModelInferrer,JvmAnnotationTarget,GenerationContext)
Add the @Generated annotation to the given target. |
protected void | appendGeneratedAnnotation(IBaseJvmModelInferrer,JvmAnnotationTarget,GenerationContext,String)
Add the @Generated annotation to the given target. |
protected org.eclipse.xtext.common.types.JvmTypeReference | cloneWithProxiesFromOtherResource(JvmTypeReference,JvmExecutable,IBaseJvmModelInferrer)
Clone the given type reference that is associated to another Xtext resource. |
protected org.eclipse.xtext.common.types.JvmTypeReference | cloneWithTypeParametersAndProxies(JvmTypeReference,JvmExecutable,IBaseJvmModelInferrer)
Clone the given type reference that for being link to the given executable component. |
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 . |
void | inferLocalClass(IBaseJvmModelInferrer,AnonymousClass,String,JvmFeature)
Infer and transform the local (anonymous) class. |
protected void | initializeLocalTypes(IBaseJvmModelInferrer,GenerationContext,JvmFeature,XExpression)
Initialize the local class to the given expression. |
protected void | setBody(JvmExecutable,StringConcatenationClient)
Set the body of the executable. |
protected void | setBody(JvmExecutable,Procedure1<Param>)
Set the body of the executable. |
void | setBody(IBaseJvmModelInferrer,JvmExecutable,XExpression)
Set the body of the executable. |
protected void | setVisibility(JvmMember,XtendMember)
Change the visibility modifier of the given member. |
protected org.eclipse.xtext.common.types.JvmTypeReference | skipTypeParameters(JvmTypeReference,Notifier)
Remove the type parameters from the given type. |
protected static org.eclipse.xtend2.lib.StringConcatenationClient | toStringConcatenation(String*)
Create a string concatenation client from a set of Java code lines. |
protected void | translateAnnotationsTo(List<E>,JvmAnnotationTarget,Class<T>*)
Copy the annotations, except the ones given as parameters. |
protected var annotationUtils : SARLAnnotationUtil
protected var associator : org.eclipse.xtext.xbase.jvmmodel.IJvmModelAssociator
protected var defaultValueProvider : ITypeDefaultValueProvider
protected static val GENERATED_NAME : java.lang.String
protected var grammarKeywordAccess : SARLGrammarKeywordAccess
protected var jvmAnnotationFinder : org.eclipse.xtext.common.types.util.AnnotationLookup
protected var jvmTypeBuilder : org.eclipse.xtext.xbase.jvmmodel.JvmTypesBuilder
protected var jvmTypeReferences : org.eclipse.xtext.common.types.util.TypeReferences
protected var jvmTypesFactory : org.eclipse.xtext.common.types.TypesFactory
protected var nameClashResolver : org.eclipse.xtend.core.jvmmodel.SyntheticNameClashResolver
protected static val RUNNABLE_COLLECTION : java.lang.String
protected var sarlAssociations : SarlJvmModelAssociations
protected var sarlSignatureProvider : IActionPrototypeProvider
protected var services : org.eclipse.xtext.xbase.typesystem.util.CommonTypeComputationServices
new
protected def addAnnotationSafe(JvmAnnotationTarget,Class<T>,int) : org.eclipse.xtext.common.types.JvmAnnotationReference
protected def addAnnotationSafe(IBaseJvmModelInferrer,JvmAnnotationTarget,Class<T>,String*) : org.eclipse.xtext.common.types.JvmAnnotationReference
protected def addAnnotationSafe(IBaseJvmModelInferrer,JvmAnnotationTarget,String,String*) : org.eclipse.xtext.common.types.JvmAnnotationReference
protected def annotationClassRef(IBaseJvmModelInferrer,Class<T>,List<E>) : org.eclipse.xtext.common.types.JvmAnnotationReference
protected def appendGeneratedAnnotation(IBaseJvmModelInferrer,JvmAnnotationTarget,GenerationContext)
protected def appendGeneratedAnnotation(IBaseJvmModelInferrer,JvmAnnotationTarget,GenerationContext,String)
protected def cloneWithProxiesFromOtherResource(JvmTypeReference,JvmExecutable,IBaseJvmModelInferrer) : org.eclipse.xtext.common.types.JvmTypeReference
target
is null
for the first, and not null
for the second.
protected def cloneWithTypeParametersAndProxies(JvmTypeReference,JvmExecutable,IBaseJvmModelInferrer) : org.eclipse.xtext.common.types.JvmTypeReference
protected def copyAndCleanDocumentationTo(XtendExecutable,JvmExecutable) : boolean
@param
.
protected def copyAndCleanDocumentationTo(JvmExecutable,JvmExecutable) : boolean
@param
.
def inferLocalClass(IBaseJvmModelInferrer,AnonymousClass,String,JvmFeature)
protected def initializeLocalTypes(IBaseJvmModelInferrer,GenerationContext,JvmFeature,XExpression)
protected def setBody(JvmExecutable,StringConcatenationClient)
protected def setBody(JvmExecutable,Procedure1<Param>)
def setBody(IBaseJvmModelInferrer,JvmExecutable,XExpression)
protected def setVisibility(JvmMember,XtendMember)
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 toStringConcatenation(String*) : org.eclipse.xtend2.lib.StringConcatenationClient
protected def translateAnnotationsTo(List<E>,JvmAnnotationTarget,Class<T>*)