Interface IGrammarConstraintProvider.IConstraint
-
- All Superinterfaces:
java.lang.Comparable<IGrammarConstraintProvider.IConstraint>
- All Known Implementing Classes:
GrammarConstraintProvider.Constraint
- Enclosing interface:
- IGrammarConstraintProvider
public static interface IGrammarConstraintProvider.IConstraint extends java.lang.Comparable<IGrammarConstraintProvider.IConstraint>
One constraint defines all conditions one semantic object must comply with. A constraint is specific for one EClass and belongs to one or more contexts. The conditions defined by a constraint are represented by a tree ofIGrammarConstraintProvider.IConstraintElement. This tree's root can be accessed bygetBody().
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description IGrammarConstraintProvider.IConstraintElementgetBody()java.util.List<ISerializationContext>getContexts()IGrammarConstraintProvider.IFeatureInfo[]getFeatures()java.lang.StringgetName()org.eclipse.xtext.util.formallang.Nfa<ISemanticSequencerNfaProvider.ISemState>getNfa()java.lang.StringgetSimpleName()org.eclipse.emf.ecore.EClassgetType()
-
-
-
Method Detail
-
getBody
IGrammarConstraintProvider.IConstraintElement getBody()
- Returns:
- the root of the tree of
IGrammarConstraintProvider.IConstraintElementthat defines this constraint.
-
getFeatures
IGrammarConstraintProvider.IFeatureInfo[] getFeatures()
- Returns:
- a list of
IGrammarConstraintProvider.IFeatureInfofor allEStructuralFeatures from theEClassreturned bygetType()that have an assignment if this constraint. If there is no assignment for anEStructuralFeaturein this constraint, the array's item is null.
-
getName
java.lang.String getName()
- Returns:
- a name that is unique for a grammar and that aims to be human-readable.
-
getSimpleName
java.lang.String getSimpleName()
-
getType
org.eclipse.emf.ecore.EClass getType()
- Returns:
- This constraint only applies to EObjects of this type.
-
getContexts
java.util.List<ISerializationContext> getContexts()
-
getNfa
org.eclipse.xtext.util.formallang.Nfa<ISemanticSequencerNfaProvider.ISemState> getNfa()
-
-