Class Xtext2EcoreInterpretationContext
java.lang.Object
org.eclipse.xtext.xtext.ecoreInference.Xtext2EcoreInterpretationContext
Please refer to the
documentation
for details.
- Author:
- Heiko Behrens - Initial contribution and API, Sebastian Zarnekow
-
Constructor Summary
ConstructorDescriptionXtext2EcoreInterpretationContext
(EClassifierInfo newType, EClassifierInfos classifierInfos, boolean isRuleCallAllowed) Xtext2EcoreInterpretationContext
(EClassifierInfos eClassifierInfos, EClassifierInfo currentType) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addFeature
(String featureName, org.eclipse.xtext.xtext.ecoreInference.EClassifierInfoAccess featureTypeInfo, boolean isMultivalue, boolean isContainment, AbstractElement parserElement) void
addFeature
(Assignment assignment) boolean
isContainmentAssignment
(Assignment assignment) spawnContextWithCalledRule
(EClassifierInfo newType, org.eclipse.emf.ecore.EObject parserElement) spawnContextWithReferencedType
(EClassifierInfo referencedType, org.eclipse.emf.ecore.EObject parserElement)
-
Constructor Details
-
Xtext2EcoreInterpretationContext
public Xtext2EcoreInterpretationContext(EClassifierInfos eClassifierInfos, EClassifierInfo currentType) -
Xtext2EcoreInterpretationContext
public Xtext2EcoreInterpretationContext(EClassifierInfo newType, EClassifierInfos classifierInfos, boolean isRuleCallAllowed)
-
-
Method Details
-
addFeature
- Throws:
TransformationException
-
isContainmentAssignment
-
addFeature
public void addFeature(String featureName, org.eclipse.xtext.xtext.ecoreInference.EClassifierInfoAccess featureTypeInfo, boolean isMultivalue, boolean isContainment, AbstractElement parserElement) throws TransformationException - Throws:
TransformationException
-
spawnContextForGroup
-
spawnContextWithCalledRule
public Xtext2EcoreInterpretationContext spawnContextWithCalledRule(EClassifierInfo newType, org.eclipse.emf.ecore.EObject parserElement) throws TransformationException - Throws:
TransformationException
-
mergeSpawnedContexts
public Xtext2EcoreInterpretationContext mergeSpawnedContexts(List<Xtext2EcoreInterpretationContext> contexts) -
getCurrentTypes
-
getCurrentCompatibleType
-
spawnContextWithReferencedType
public Xtext2EcoreInterpretationContext spawnContextWithReferencedType(EClassifierInfo referencedType, org.eclipse.emf.ecore.EObject parserElement)
-