public class EMFPatternTypeProvider extends java.lang.Object implements IEMFTypeProvider
| Constructor and Description |
|---|
EMFPatternTypeProvider() |
| Modifier and Type | Method and Description |
|---|---|
java.util.Map<PathExpressionTail,org.eclipse.emf.ecore.EStructuralFeature> |
getAllFeaturesFromPathExpressionTail(PathExpressionTail pathExpressionTail) |
org.eclipse.emf.ecore.EClassifier |
getClassifierForLiteralComputationEnumValueReference(ValueReference valueReference) |
org.eclipse.emf.ecore.EClassifier |
getClassifierForType(Type type) |
org.eclipse.emf.ecore.EClassifier |
getClassifierForVariable(Variable variable) |
org.eclipse.emf.ecore.EClassifier |
getExplicitClassifierForPatternParameterVariable(Variable variable) |
java.util.Set<org.eclipse.emf.ecore.EClassifier> |
getIrreducibleClassifiersForVariableInBody(PatternBody patternBody,
Variable variable) |
org.eclipse.xtext.common.types.JvmTypeReference |
getJvmType(org.eclipse.emf.ecore.EClassifier classifier,
org.eclipse.emf.ecore.EObject context)
Calculates the corresponding JVM type of a selected EClassifier.
|
Type |
getTypeFromPathExpressionTail(PathExpressionTail pathExpressionTail) |
org.eclipse.xtext.common.types.JvmTypeReference |
getVariableType(Variable variable)
Calculates the JVM type of the selected variable.
|
public org.eclipse.xtext.common.types.JvmTypeReference getVariableType(Variable variable)
IEMFTypeProvidergetVariableType in interface IEMFTypeProviderpublic org.eclipse.xtext.common.types.JvmTypeReference getJvmType(org.eclipse.emf.ecore.EClassifier classifier,
org.eclipse.emf.ecore.EObject context)
IEMFTypeProvidergetJvmType in interface IEMFTypeProviderpublic org.eclipse.emf.ecore.EClassifier getClassifierForVariable(Variable variable)
getClassifierForVariable in interface IEMFTypeProviderEClassifier for the given Variable. Returns null, if it fails.public java.util.Set<org.eclipse.emf.ecore.EClassifier> getIrreducibleClassifiersForVariableInBody(PatternBody patternBody, Variable variable)
getIrreducibleClassifiersForVariableInBody in interface IEMFTypeProviderpublic org.eclipse.emf.ecore.EClassifier getExplicitClassifierForPatternParameterVariable(Variable variable)
getExplicitClassifierForPatternParameterVariable in interface IEMFTypeProviderEClassifier explicitly given in the parameter list for the given pattern parameter Variable. Returns null, if none found or not a parameter(Ref).public org.eclipse.emf.ecore.EClassifier getClassifierForType(Type type)
getClassifierForType in interface IEMFTypeProviderEClassifier for the given Type. Returns null, if it fails.public org.eclipse.emf.ecore.EClassifier getClassifierForLiteralComputationEnumValueReference(ValueReference valueReference)
getClassifierForLiteralComputationEnumValueReference in interface IEMFTypeProviderEClassifier for the given input ValueReference. The ValueReference can be a
LiteralValueReference, or a ComputationValue.public Type getTypeFromPathExpressionTail(PathExpressionTail pathExpressionTail)
getTypeFromPathExpressionTail in interface IEMFTypeProviderpublic java.util.Map<PathExpressionTail,org.eclipse.emf.ecore.EStructuralFeature> getAllFeaturesFromPathExpressionTail(PathExpressionTail pathExpressionTail)
getAllFeaturesFromPathExpressionTail in interface IEMFTypeProvider