org.eclipse.xtext.serializer.analysis
Class GrammarConstraintProvider.ConstraintElement
java.lang.Object
org.eclipse.xtext.serializer.analysis.GrammarConstraintProvider.ConstraintElement
- All Implemented Interfaces:
- IGrammarConstraintProvider.IConstraintElement
- Enclosing class:
- GrammarConstraintProvider
protected static class GrammarConstraintProvider.ConstraintElement
- extends java.lang.Object
- implements IGrammarConstraintProvider.IConstraintElement
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
assignmentId
protected int assignmentId
children
protected java.util.List<IGrammarConstraintProvider.IConstraintElement> children
containedAssignments
protected java.util.List<IGrammarConstraintProvider.IConstraintElement> containedAssignments
container
protected GrammarConstraintProvider.ConstraintElement container
containingConstraint
protected IGrammarConstraintProvider.IConstraint containingConstraint
context
protected org.eclipse.emf.ecore.EObject context
dependingAssignments
protected java.util.List<Pair<IGrammarConstraintProvider.IConstraintElement,IGrammarConstraintProvider.RelationalDependencyType>> dependingAssignments
element
protected AbstractElement element
elementId
protected int elementId
featureAssignmentId
protected int featureAssignmentId
featureInfo
protected IGrammarConstraintProvider.IFeatureInfo featureInfo
many
protected boolean many
optional
protected boolean optional
type
protected IGrammarConstraintProvider.ConstraintElementType type
typeMatch
protected boolean typeMatch
GrammarConstraintProvider.ConstraintElement
protected GrammarConstraintProvider.ConstraintElement()
GrammarConstraintProvider.ConstraintElement
protected GrammarConstraintProvider.ConstraintElement(org.eclipse.emf.ecore.EObject context,
IGrammarConstraintProvider.ConstraintElementType type)
GrammarConstraintProvider.ConstraintElement
protected GrammarConstraintProvider.ConstraintElement(org.eclipse.emf.ecore.EObject context,
IGrammarConstraintProvider.ConstraintElementType type,
AbstractElement element)
GrammarConstraintProvider.ConstraintElement
protected GrammarConstraintProvider.ConstraintElement(org.eclipse.emf.ecore.EObject context,
IGrammarConstraintProvider.ConstraintElementType type,
AbstractElement element,
boolean many,
boolean optional)
addAllChilden
protected void addAllChilden(GrammarConstraintProvider.ConstraintElement childrenOwner)
addChild
protected void addChild(GrammarConstraintProvider.ConstraintElement child)
collectDependingAssignmentsByContainer
protected void collectDependingAssignmentsByContainer(IGrammarConstraintProvider.IConstraintElement child,
java.util.List<Pair<IGrammarConstraintProvider.IConstraintElement,IGrammarConstraintProvider.RelationalDependencyType>> result,
boolean childMany,
boolean childOptional)
containsChild
protected boolean containsChild(IGrammarConstraintProvider.IConstraintElement child)
context2Name
protected java.lang.String context2Name(org.eclipse.emf.ecore.EObject context)
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in class java.lang.Object
findCommonContainer
protected IGrammarConstraintProvider.IConstraintElement findCommonContainer(java.util.List<IGrammarConstraintProvider.IConstraintElement> elements)
getAction
public Action getAction()
- Specified by:
getAction
in interface IGrammarConstraintProvider.IConstraintElement
getAssignmentID
public int getAssignmentID()
- Specified by:
getAssignmentID
in interface IGrammarConstraintProvider.IConstraintElement
getAssignmentOperator
protected java.lang.String getAssignmentOperator()
getCallContext
public org.eclipse.emf.ecore.EObject getCallContext()
- Specified by:
getCallContext
in interface IGrammarConstraintProvider.IConstraintElement
getCardinality
public java.lang.String getCardinality()
- Specified by:
getCardinality
in interface IGrammarConstraintProvider.IConstraintElement
getChildren
public java.util.List<IGrammarConstraintProvider.IConstraintElement> getChildren()
- Specified by:
getChildren
in interface IGrammarConstraintProvider.IConstraintElement
getContainedAssignments
public java.util.List<IGrammarConstraintProvider.IConstraintElement> getContainedAssignments()
- Specified by:
getContainedAssignments
in interface IGrammarConstraintProvider.IConstraintElement
getContainer
public IGrammarConstraintProvider.IConstraintElement getContainer()
- Specified by:
getContainer
in interface IGrammarConstraintProvider.IConstraintElement
getContainingConstraint
public IGrammarConstraintProvider.IConstraint getContainingConstraint()
- Specified by:
getContainingConstraint
in interface IGrammarConstraintProvider.IConstraintElement
getContext
protected org.eclipse.emf.ecore.EObject getContext()
getCrossReference
public CrossReference getCrossReference()
- Specified by:
getCrossReference
in interface IGrammarConstraintProvider.IConstraintElement
getCrossReferenceType
public org.eclipse.emf.ecore.EClass getCrossReferenceType()
- Specified by:
getCrossReferenceType
in interface IGrammarConstraintProvider.IConstraintElement
getDependingAssignment
public java.util.List<Pair<IGrammarConstraintProvider.IConstraintElement,IGrammarConstraintProvider.RelationalDependencyType>> getDependingAssignment()
- Specified by:
getDependingAssignment
in interface IGrammarConstraintProvider.IConstraintElement
getElementID
public int getElementID()
- Specified by:
getElementID
in interface IGrammarConstraintProvider.IConstraintElement
getFeature
public org.eclipse.emf.ecore.EStructuralFeature getFeature()
- Specified by:
getFeature
in interface IGrammarConstraintProvider.IConstraintElement
getFeatureAssignmentID
public int getFeatureAssignmentID()
- Specified by:
getFeatureAssignmentID
in interface IGrammarConstraintProvider.IConstraintElement
getFeatureInfo
public IGrammarConstraintProvider.IFeatureInfo getFeatureInfo()
- Specified by:
getFeatureInfo
in interface IGrammarConstraintProvider.IConstraintElement
getFeatureName
protected java.lang.String getFeatureName()
getGrammarElement
public AbstractElement getGrammarElement()
- Specified by:
getGrammarElement
in interface IGrammarConstraintProvider.IConstraintElement
getKeyword
public Keyword getKeyword()
- Specified by:
getKeyword
in interface IGrammarConstraintProvider.IConstraintElement
getRuleCall
public RuleCall getRuleCall()
- Specified by:
getRuleCall
in interface IGrammarConstraintProvider.IConstraintElement
getType
public IGrammarConstraintProvider.ConstraintElementType getType()
- Specified by:
getType
in interface IGrammarConstraintProvider.IConstraintElement
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
isCardinalityOneAmongAssignments
public boolean isCardinalityOneAmongAssignments(java.util.List<IGrammarConstraintProvider.IConstraintElement> assignments)
- Specified by:
isCardinalityOneAmongAssignments
in interface IGrammarConstraintProvider.IConstraintElement
isMany
public boolean isMany()
- Specified by:
isMany
in interface IGrammarConstraintProvider.IConstraintElement
isManyRecursive
public boolean isManyRecursive(IGrammarConstraintProvider.IConstraintElement root)
- Specified by:
isManyRecursive
in interface IGrammarConstraintProvider.IConstraintElement
- Returns:
- true, if this element or one of its containers is isMany().
isOptional
public boolean isOptional()
- Specified by:
isOptional
in interface IGrammarConstraintProvider.IConstraintElement
isOptionalRecursive
public boolean isOptionalRecursive(IGrammarConstraintProvider.IConstraintElement root)
- Specified by:
isOptionalRecursive
in interface IGrammarConstraintProvider.IConstraintElement
- Returns:
- true, if this element or one of its containers is optional. Also true, if one of the containers is an
alternative.
isRoot
public boolean isRoot()
- Specified by:
isRoot
in interface IGrammarConstraintProvider.IConstraintElement
isTypeMatch
protected boolean isTypeMatch()
setAssignmentId
protected void setAssignmentId(int id)
setContainingConstraint
protected void setContainingConstraint(IGrammarConstraintProvider.IConstraint containingConstraint)
setElementId
protected void setElementId(int id)
setFeatureAssignmentId
protected void setFeatureAssignmentId(int id)
setFeatureInfo
protected void setFeatureInfo(IGrammarConstraintProvider.IFeatureInfo featureInfo)
setMany
protected void setMany(boolean many)
setOptional
protected void setOptional(boolean optional)
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
typeMatch
protected void typeMatch()