protected static class GrammarConstraintProvider.Constraint extends java.lang.Object implements IGrammarConstraintProvider.IConstraint
| Constructor and Description |
|---|
Constraint(Grammar grammar,
org.eclipse.emf.ecore.EClass type,
org.eclipse.xtext.util.formallang.Nfa<ISemanticSequencerNfaProvider.ISemState> nfa) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(IGrammarConstraintProvider.IConstraint o) |
protected int[] |
computeLowerBounds() |
protected int[] |
computeUpperBounds()
Computing the upper bounds is equivalent to the longest path problem.
|
boolean |
equals(java.lang.Object obj) |
IGrammarConstraintProvider.IConstraintElement |
getBody() |
java.util.List<ISerializationContext> |
getContexts() |
IGrammarConstraintProvider.IFeatureInfo[] |
getFeatures() |
protected java.lang.String |
getIdentity() |
java.lang.String |
getName() |
org.eclipse.xtext.util.formallang.Nfa<ISemanticSequencerNfaProvider.ISemState> |
getNfa() |
java.lang.String |
getSimpleName() |
org.eclipse.emf.ecore.EClass |
getType() |
int |
hashCode() |
protected void |
setName(java.lang.String name) |
java.lang.String |
toString() |
public Constraint(Grammar grammar, org.eclipse.emf.ecore.EClass type, org.eclipse.xtext.util.formallang.Nfa<ISemanticSequencerNfaProvider.ISemState> nfa)
protected int[] computeLowerBounds()
protected int[] computeUpperBounds()
public int compareTo(IGrammarConstraintProvider.IConstraint o)
compareTo in interface java.lang.Comparable<IGrammarConstraintProvider.IConstraint>public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic IGrammarConstraintProvider.IConstraintElement getBody()
getBody in interface IGrammarConstraintProvider.IConstraintIGrammarConstraintProvider.IConstraintElement that defines this constraint.public java.util.List<ISerializationContext> getContexts()
getContexts in interface IGrammarConstraintProvider.IConstraintpublic IGrammarConstraintProvider.IFeatureInfo[] getFeatures()
getFeatures in interface IGrammarConstraintProvider.IConstraintIGrammarConstraintProvider.IFeatureInfo for all EStructuralFeatures from the EClass returned
by IGrammarConstraintProvider.IConstraint.getType() that have an assignment if this constraint. If there is no assignment for an
EStructuralFeature in this constraint, the array's item is null.protected java.lang.String getIdentity()
public java.lang.String getName()
getName in interface IGrammarConstraintProvider.IConstraintpublic org.eclipse.xtext.util.formallang.Nfa<ISemanticSequencerNfaProvider.ISemState> getNfa()
getNfa in interface IGrammarConstraintProvider.IConstraintpublic java.lang.String getSimpleName()
getSimpleName in interface IGrammarConstraintProvider.IConstraintpublic org.eclipse.emf.ecore.EClass getType()
getType in interface IGrammarConstraintProvider.IConstraintpublic int hashCode()
hashCode in class java.lang.Objectprotected void setName(java.lang.String name)
public java.lang.String toString()
toString in class java.lang.Object