public class Xtext2EcoreInterpretationContext
extends java.lang.Object
| Constructor and Description |
|---|
Xtext2EcoreInterpretationContext(EClassifierInfo newType,
EClassifierInfos classifierInfos,
boolean isRuleCallAllowed) |
Xtext2EcoreInterpretationContext(EClassifierInfos eClassifierInfos,
EClassifierInfo currentType) |
| Modifier and Type | Method and Description |
|---|---|
void |
addFeature(Assignment assignment) |
void |
addFeature(java.lang.String featureName,
org.eclipse.xtext.xtext.ecoreInference.EClassifierInfoAccess featureTypeInfo,
boolean isMultivalue,
boolean isContainment,
AbstractElement parserElement) |
EClassifierInfo |
getCurrentCompatibleType()
The most specific single super type of all known potential types.
|
java.util.Collection<EClassifierInfo> |
getCurrentTypes()
All types that have be used to instantiate the current object or all the types
that are the outcome of a grammar alternative.
|
boolean |
isContainmentAssignment(Assignment assignment) |
Xtext2EcoreInterpretationContext |
mergeSpawnedContexts(java.util.List<Xtext2EcoreInterpretationContext> contexts) |
Xtext2EcoreInterpretationContext |
spawnContextForGroup() |
Xtext2EcoreInterpretationContext |
spawnContextWithCalledRule(EClassifierInfo newType,
org.eclipse.emf.ecore.EObject parserElement) |
Xtext2EcoreInterpretationContext |
spawnContextWithReferencedType(EClassifierInfo referencedType,
org.eclipse.emf.ecore.EObject parserElement) |
public Xtext2EcoreInterpretationContext(EClassifierInfos eClassifierInfos, EClassifierInfo currentType)
public Xtext2EcoreInterpretationContext(EClassifierInfo newType, EClassifierInfos classifierInfos, boolean isRuleCallAllowed)
public void addFeature(Assignment assignment) throws TransformationException
TransformationExceptionpublic boolean isContainmentAssignment(Assignment assignment)
public void addFeature(java.lang.String featureName,
org.eclipse.xtext.xtext.ecoreInference.EClassifierInfoAccess featureTypeInfo,
boolean isMultivalue,
boolean isContainment,
AbstractElement parserElement)
throws TransformationException
TransformationExceptionpublic Xtext2EcoreInterpretationContext spawnContextForGroup()
public Xtext2EcoreInterpretationContext spawnContextWithCalledRule(EClassifierInfo newType, org.eclipse.emf.ecore.EObject parserElement) throws TransformationException
TransformationExceptionpublic Xtext2EcoreInterpretationContext mergeSpawnedContexts(java.util.List<Xtext2EcoreInterpretationContext> contexts)
public java.util.Collection<EClassifierInfo> getCurrentTypes()
public EClassifierInfo getCurrentCompatibleType()
public Xtext2EcoreInterpretationContext spawnContextWithReferencedType(EClassifierInfo referencedType, org.eclipse.emf.ecore.EObject parserElement)