io.sarl.lang.jvmmodel.fragments
Interface IBiStageInferrerFragment<S>
Type Parameters:
S - the type of the SARL's Ecore element.
All Known Implementing Classes:
SpaceInferrerFragment
interface IBiStageInferrerFragment<S>
Fragment for inferred to the JVM model based on a two stage process. The two stage process in based on a transformation preparation and the final transformation.
Parameters:
<S> - the type of the SARL's Ecore element.
Maven Group Identifier:
io.sarl.lang
Maven Artifact Identifier:
compiler
Since:
0.15
Property Summary
Modifier and type Property and description
java.lang.Class<T> supportedType
Replies the type of the source Ecore element that is supported by this fragment.
Action Summary
Modifier and type Action and description
abstract java.lang.Class<T> getSupportedType
Replies the type of the source Ecore element that is supported by this fragment.
abstract void prepareTransform(S,JvmGenericTypeFactory,IBaseJvmModelInferrer)
Transform the source Ecore element to its equivalent JVM elements during the first step of the creation process of multiple output files.
abstract void transform(S,JvmGenericTypeProvider,IBaseJvmModelInferrer)
Transform the source Ecore element to its equivalent JVM elements during the second step of the creation process of multiple output files.
Property Details
supportedType
val supportedType : java.lang.Class<T>
Replies the type of the source Ecore element that is supported by this fragment.

This property is an alias for the action: getSupportedType

Returns:
the type.
Action Details
getSupportedType
def getSupportedType : java.lang.Class<T>
Replies the type of the source Ecore element that is supported by this fragment.
Returns:
the type.
prepareTransform(S,JvmGenericTypeFactory,IBaseJvmModelInferrer)
def prepareTransform(S,JvmGenericTypeFactory,IBaseJvmModelInferrer)
Transform the source Ecore element to its equivalent JVM elements during the first step of the creation process of multiple output files.
Parameters:
source - the source Ecore element.
inferredJvmTypes - the provider of the generated JVM types.
baseInferrer - the inferrer that is the considered as the base (starting point) of inferring process.
See:
transform(S,JvmGenericTypeProvider,IBaseJvmModelInferrer)
transform(S,JvmGenericTypeProvider,IBaseJvmModelInferrer)
def transform(S,JvmGenericTypeProvider,IBaseJvmModelInferrer)
Transform the source Ecore element to its equivalent JVM elements during the second step of the creation process of multiple output files.
Parameters:
source - the source Ecore element.
inferredJvmTypes - the provider of the generated JVM types.
baseInferrer - the inferrer that is the considered as the base (starting point) of inferring process.
See:
prepareTransform(S,JvmGenericTypeFactory,IBaseJvmModelInferrer)