protected abstract static class GrammarConstraintProvider.Constraint extends Object implements IGrammarConstraintProvider.IConstraint
| Modifier and Type | Field and Description |
|---|---|
protected IGrammarConstraintProvider.IConstraintElement[] |
assignments |
protected GrammarConstraintProvider.ConstraintElement |
body |
protected IGrammarConstraintProvider.IConstraintElement[] |
elements |
protected IGrammarConstraintProvider.IFeatureInfo[] |
features |
protected String |
name |
protected GrammarConstraintProvider |
provider |
protected org.eclipse.emf.ecore.EObject |
specificContext |
protected org.eclipse.emf.ecore.EClass |
type |
| Constructor and Description |
|---|
GrammarConstraintProvider.Constraint(org.eclipse.emf.ecore.EClass type,
GrammarConstraintProvider.ConstraintElement body,
GrammarConstraintProvider provider) |
protected IGrammarConstraintProvider.IConstraintElement[] assignments
protected GrammarConstraintProvider.ConstraintElement body
protected GrammarConstraintProvider provider
protected IGrammarConstraintProvider.IConstraintElement[] elements
protected IGrammarConstraintProvider.IFeatureInfo[] features
protected String name
protected org.eclipse.emf.ecore.EObject specificContext
protected org.eclipse.emf.ecore.EClass type
public GrammarConstraintProvider.Constraint(org.eclipse.emf.ecore.EClass type,
GrammarConstraintProvider.ConstraintElement body,
GrammarConstraintProvider provider)
protected void collectElements(GrammarConstraintProvider.ConstraintElement ele, List<IGrammarConstraintProvider.IConstraintElement> elements, List<IGrammarConstraintProvider.IConstraintElement> assignments, List<IGrammarConstraintProvider.IConstraintElement>[] assignmentsByFeature)
public int compareTo(IGrammarConstraintProvider.IConstraint o)
compareTo in interface Comparable<IGrammarConstraintProvider.IConstraint>public IGrammarConstraintProvider.IConstraintElement[] getAssignments()
getAssignments in interface IGrammarConstraintProvider.IConstraintIGrammarConstraintProvider.IConstraintElement.getAssignmentID() returns an Assignment's index in this list. The order of
the list reflects the order of the assignments in the constraint. Assignments are
IGrammarConstraintProvider.IConstraintElements with IGrammarConstraintProvider.IConstraintElement.getType() == ASSIGNED_*public IGrammarConstraintProvider.IConstraintElement getBody()
getBody in interface IGrammarConstraintProvider.IConstraintIGrammarConstraintProvider.IConstraintElement that defines this constraint.protected Object getCacheKey()
public IGrammarConstraintProvider.IConstraintElement[] getElements()
getElements in interface IGrammarConstraintProvider.IConstraintIGrammarConstraintProvider.IConstraint.getBody(). IGrammarConstraintProvider.IConstraintElement.getElementID() returns an Assignment's
index in this list. The order of the list reflects the order of the elements in the constraint.public 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 abstract org.eclipse.emf.ecore.EObject getMostSpecificContext()
protected Collection<org.eclipse.emf.ecore.EObject> getAllContext()
protected void collectContexts(GrammarConstraintProvider.ConstraintElement ele, Set<org.eclipse.emf.ecore.EObject> result)
public Iterable<IGrammarConstraintProvider.IFeatureInfo> getMultiAssignementFeatures()
getMultiAssignementFeatures in interface IGrammarConstraintProvider.IConstraintpublic String getName()
getName in interface IGrammarConstraintProvider.IConstraintpublic String getSimpleName()
getSimpleName in interface IGrammarConstraintProvider.IConstraintpublic Iterable<IGrammarConstraintProvider.IFeatureInfo> getSingleAssignementFeatures()
getSingleAssignementFeatures in interface IGrammarConstraintProvider.IConstraintpublic org.eclipse.emf.ecore.EClass getType()
getType in interface IGrammarConstraintProvider.IConstraintprotected void initLists()
protected void setName(String name)
Copyright © 2015. All Rights Reserved.