org.eclipse.xtext.xtext.ecoreInference
Class Xtext2EcoreInterpretationContext

java.lang.Object
  extended by org.eclipse.xtext.xtext.ecoreInference.Xtext2EcoreInterpretationContext

public class Xtext2EcoreInterpretationContext
extends java.lang.Object

Please refer to the documentation for details.

Author:
Heiko Behrens - Initial contribution and API, Sebastian Zarnekow

Constructor Summary
Xtext2EcoreInterpretationContext(EClassifierInfo newType, EClassifierInfos classifierInfos, boolean isRuleCallAllowed)
           
Xtext2EcoreInterpretationContext(EClassifierInfos eClassifierInfos, EClassifierInfo currentType)
           
 
Method Summary
 void addFeature(Assignment assignment)
           
 void addFeature(java.lang.String featureName, EClassifierInfo featureTypeInfo, boolean isMultivalue, boolean isContainment, AbstractElement parserElement)
           
 EClassifierInfo getCurrentCompatibleType()
           
 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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Xtext2EcoreInterpretationContext

public Xtext2EcoreInterpretationContext(EClassifierInfos eClassifierInfos,
                                        EClassifierInfo currentType)

Xtext2EcoreInterpretationContext

public Xtext2EcoreInterpretationContext(EClassifierInfo newType,
                                        EClassifierInfos classifierInfos,
                                        boolean isRuleCallAllowed)
Method Detail

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)