org.eclipse.xtext.serializer.analysis
Interface IGrammarConstraintProvider.IConstraintContext

All Known Implementing Classes:
GrammarConstraintProvider.AbstractConstraintContext, GrammarConstraintProvider.AssignedActionConstraintContext, GrammarConstraintProvider.ParserRuleConstraintContext
Enclosing interface:
IGrammarConstraintProvider

public static interface IGrammarConstraintProvider.IConstraintContext

A ConstraintContext is defined by a ParserRule or an AssignedAction. A ConstraintContext holds a list of all constraints that are valid for this context. All these constraints have an EClass as their common super type. If the context is a parser rule, the constraints of this context describe all the objects that can be instantiated via this parser rule. If this context is an assigned action, the constraints of this context describe all the objects that can assigned by this action. These are all the objects that can be the "current" *before* the action is being executed. This is *not* the EObject that is instantiated by the action.


Method Summary
 org.eclipse.emf.ecore.EClass getCommonType()
           
 java.util.List<IGrammarConstraintProvider.IConstraint> getConstraints()
           
 org.eclipse.emf.ecore.EObject getContext()
           
 java.lang.String getName()
           
 

Method Detail

getCommonType

org.eclipse.emf.ecore.EClass getCommonType()

getConstraints

java.util.List<IGrammarConstraintProvider.IConstraint> getConstraints()

getContext

org.eclipse.emf.ecore.EObject getContext()
Returns:
an AssignedAction or ParserRule

getName

java.lang.String getName()