public interface IEMFTypeProvider
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.
|
org.eclipse.emf.ecore.EClassifier getClassifierForVariable(Variable variable)
variable
- EClassifier
for the given Variable
. Returns null, if it fails.org.eclipse.emf.ecore.EClassifier getClassifierForType(Type type)
type
- EClassifier
for the given Type
. Returns null, if it fails.java.util.Set<org.eclipse.emf.ecore.EClassifier> getIrreducibleClassifiersForVariableInBody(PatternBody patternBody, Variable variable)
patternBody
- variable
- org.eclipse.emf.ecore.EClassifier getExplicitClassifierForPatternParameterVariable(Variable variable)
variable
- EClassifier
explicitly given in the parameter list for the given pattern parameter Variable
. Returns null, if none found or not a parameter(Ref).org.eclipse.xtext.common.types.JvmTypeReference getVariableType(Variable variable)
variable
- org.eclipse.xtext.common.types.JvmTypeReference getJvmType(org.eclipse.emf.ecore.EClassifier classifier, org.eclipse.emf.ecore.EObject context)
classifier
- context
- org.eclipse.emf.ecore.EClassifier getClassifierForLiteralComputationEnumValueReference(ValueReference valueReference)
valueReference
- EClassifier
for the given input ValueReference
. The ValueReference can be a
LiteralValueReference
, or a ComputationValue
.java.util.Map<PathExpressionTail,org.eclipse.emf.ecore.EStructuralFeature> getAllFeaturesFromPathExpressionTail(PathExpressionTail pathExpressionTail)
Type getTypeFromPathExpressionTail(PathExpressionTail pathExpressionTail)