org.eclipse.xtext.xtext.ecoreInference
Class Xtext2EcoreInterpretationContext
java.lang.Object
org.eclipse.xtext.xtext.ecoreInference.Xtext2EcoreInterpretationContext
public class Xtext2EcoreInterpretationContext
- extends java.lang.Object
- Author:
- Heiko Behrens - Initial contribution and API, Sebastian Zarnekow
- See Also:
http://www.eclipse.org/Xtext/documentation/latest/xtext.html#metamodelInference
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Xtext2EcoreInterpretationContext
public Xtext2EcoreInterpretationContext(EClassifierInfos eClassifierInfos,
EClassifierInfo currentType)
Xtext2EcoreInterpretationContext
public Xtext2EcoreInterpretationContext(EClassifierInfo newType,
EClassifierInfos classifierInfos,
boolean isRuleCallAllowed)
addFeature
public void addFeature(Assignment assignment)
throws TransformationException
- Throws:
TransformationException
isContainmentAssignment
public boolean isContainmentAssignment(Assignment assignment)
addFeature
public void addFeature(java.lang.String featureName,
EClassifierInfo featureTypeInfo,
boolean isMultivalue,
boolean isContainment,
AbstractElement parserElement)
throws TransformationException
- Throws:
TransformationException
spawnContextForGroup
public Xtext2EcoreInterpretationContext spawnContextForGroup()
spawnContextWithCalledRule
public Xtext2EcoreInterpretationContext spawnContextWithCalledRule(EClassifierInfo newType,
org.eclipse.emf.ecore.EObject parserElement)
throws TransformationException
- Throws:
TransformationException
mergeSpawnedContexts
public Xtext2EcoreInterpretationContext mergeSpawnedContexts(java.util.List<Xtext2EcoreInterpretationContext> contexts)
getCurrentCompatibleType
public EClassifierInfo getCurrentCompatibleType()
spawnContextWithReferencedType
public Xtext2EcoreInterpretationContext spawnContextWithReferencedType(EClassifierInfo referencedType,
org.eclipse.emf.ecore.EObject parserElement)