public class SingleBlangModelInferrer
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
SingleBlangModelInferrer.ConstructorArgument |
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
BUILDER_NAME |
static java.lang.String |
COMPONENTS_LIST_NAME |
Constructor and Description |
---|
SingleBlangModelInferrer(BlangModel model,
org.eclipse.xtext.common.types.JvmDeclaredType output,
org.eclipse.xtext.xbase.jvmmodel.JvmTypesBuilder _typeBuilder,
org.eclipse.xtext.xbase.jvmmodel.JvmAnnotationReferenceBuilder _annotationTypesBuilder,
org.eclipse.xtext.xbase.jvmmodel.JvmTypeReferenceBuilder _typeReferenceBuilder) |
Modifier and Type | Method and Description |
---|---|
protected java.util.List<SingleBlangModelInferrer.ConstructorArgument> |
_constructorParameters(BlangDist distribution)
For technical reasons, we need to look into other model's constructors to find out which variables are param and
which are random.
|
protected java.util.List<SingleBlangModelInferrer.ConstructorArgument> |
_constructorParameters(JavaDist distribution) |
org.eclipse.xtext.common.types.JvmTypeReference |
adaptorType() |
static java.util.List<SingleBlangModelInferrer.ConstructorArgument> |
blangConstructorParameters(BlangDist distribution) |
java.util.List<SingleBlangModelInferrer.ConstructorArgument> |
constructorParameters(DistributionTypeSpecification distribution) |
org.eclipse.xtext.common.types.JvmTypeReference |
distributionType() |
org.eclipse.xtext.common.types.JvmTypeReference |
extractSupplierType(java.lang.reflect.Parameter supplier) |
void |
infer() |
boolean |
isRealOrIntDistributionType() |
org.eclipse.xtext.common.types.JvmTypeReference |
optionalize(org.eclipse.xtext.common.types.JvmTypeReference deboxedType,
boolean makeOptional) |
boolean |
setupMain(org.eclipse.xtext.common.types.JvmGenericType type) |
java.lang.String |
varName(ForLoop component) |
java.lang.String |
varName(VariableDeclarationComponent component) |
org.eclipse.xtext.common.types.JvmTypeReference |
writableVariableImpl() |
public static final java.lang.String COMPONENTS_LIST_NAME
public static final java.lang.String BUILDER_NAME
public SingleBlangModelInferrer(BlangModel model, org.eclipse.xtext.common.types.JvmDeclaredType output, org.eclipse.xtext.xbase.jvmmodel.JvmTypesBuilder _typeBuilder, org.eclipse.xtext.xbase.jvmmodel.JvmAnnotationReferenceBuilder _annotationTypesBuilder, org.eclipse.xtext.xbase.jvmmodel.JvmTypeReferenceBuilder _typeReferenceBuilder)
public void infer()
public boolean setupMain(org.eclipse.xtext.common.types.JvmGenericType type)
public org.eclipse.xtext.common.types.JvmTypeReference optionalize(org.eclipse.xtext.common.types.JvmTypeReference deboxedType, boolean makeOptional)
public java.lang.String varName(VariableDeclarationComponent component)
public java.lang.String varName(ForLoop component)
public org.eclipse.xtext.common.types.JvmTypeReference adaptorType()
public org.eclipse.xtext.common.types.JvmTypeReference distributionType()
public org.eclipse.xtext.common.types.JvmTypeReference writableVariableImpl()
public boolean isRealOrIntDistributionType()
protected java.util.List<SingleBlangModelInferrer.ConstructorArgument> _constructorParameters(BlangDist distribution)
public static java.util.List<SingleBlangModelInferrer.ConstructorArgument> blangConstructorParameters(BlangDist distribution)
protected java.util.List<SingleBlangModelInferrer.ConstructorArgument> _constructorParameters(JavaDist distribution)
public org.eclipse.xtext.common.types.JvmTypeReference extractSupplierType(java.lang.reflect.Parameter supplier)
public java.util.List<SingleBlangModelInferrer.ConstructorArgument> constructorParameters(DistributionTypeSpecification distribution)