public class ContextFinder extends Object implements IContextFinder
| Modifier and Type | Field and Description |
|---|---|
protected IAssignmentFinder |
assignmentFinder |
protected List<IGrammarConstraintProvider.IConstraintContext> |
constraintContexts |
protected Map<Pair<org.eclipse.emf.ecore.EObject,org.eclipse.emf.ecore.EClass>,IGrammarConstraintProvider.IConstraint> |
constraints |
protected IGrammarAccess |
grammar |
protected IGrammarConstraintProvider |
grammarConstraintProvider |
protected ISemanticNodeProvider |
nodesProvider |
protected ITransientValueService |
transientValues |
protected TransientValueUtil |
transientValueUtil |
| Constructor and Description |
|---|
ContextFinder() |
| Modifier and Type | Method and Description |
|---|---|
protected Iterable<AbstractElement> |
findAssignedElements(org.eclipse.emf.ecore.EObject obj,
org.eclipse.emf.ecore.EStructuralFeature feature,
Iterable<AbstractElement> candidates) |
protected Iterable<org.eclipse.emf.ecore.EObject> |
findContextsByContainer(org.eclipse.emf.ecore.EObject semanticObject,
Iterable<org.eclipse.emf.ecore.EObject> contextCandidates) |
Iterable<org.eclipse.emf.ecore.EObject> |
findContextsByContents(org.eclipse.emf.ecore.EObject semanticObject,
Iterable<org.eclipse.emf.ecore.EObject> contextCandidates) |
Iterable<org.eclipse.emf.ecore.EObject> |
findContextsByContentsAndContainer(org.eclipse.emf.ecore.EObject semanticObject,
Iterable<org.eclipse.emf.ecore.EObject> contextCandidates) |
protected Collection<IGrammarConstraintProvider.IConstraint> |
findContextsByValue(org.eclipse.emf.ecore.EObject semanicObj,
org.eclipse.emf.ecore.EStructuralFeature feature,
Iterable<IGrammarConstraintProvider.IConstraint> constraints) |
protected Map<IGrammarConstraintProvider.IConstraint,List<org.eclipse.emf.ecore.EObject>> |
getConstraints(org.eclipse.emf.ecore.EClass cls) |
protected Map<IGrammarConstraintProvider.IConstraint,List<org.eclipse.emf.ecore.EObject>> |
getConstraints(org.eclipse.emf.ecore.EObject semanticObject,
Iterable<org.eclipse.emf.ecore.EObject> contextCandidates) |
protected org.eclipse.emf.ecore.EObject |
getRootContext() |
protected void |
initConstraints() |
protected boolean |
intersect(Iterable<org.eclipse.emf.ecore.EObject> it1,
Iterable<org.eclipse.emf.ecore.EObject> it2) |
protected boolean |
isMandatory(IGrammarConstraintProvider.IFeatureInfo feature) |
protected boolean |
isValidValueQuantity(IGrammarConstraintProvider.IConstraint constraint,
org.eclipse.emf.ecore.EObject semanicObj) |
@Inject protected IAssignmentFinder assignmentFinder
protected List<IGrammarConstraintProvider.IConstraintContext> constraintContexts
protected Map<Pair<org.eclipse.emf.ecore.EObject,org.eclipse.emf.ecore.EClass>,IGrammarConstraintProvider.IConstraint> constraints
@Inject protected IGrammarAccess grammar
@Inject protected IGrammarConstraintProvider grammarConstraintProvider
@Inject protected TransientValueUtil transientValueUtil
@Inject protected ITransientValueService transientValues
@Inject protected ISemanticNodeProvider nodesProvider
protected Iterable<AbstractElement> findAssignedElements(org.eclipse.emf.ecore.EObject obj, org.eclipse.emf.ecore.EStructuralFeature feature, Iterable<AbstractElement> candidates)
protected Iterable<org.eclipse.emf.ecore.EObject> findContextsByContainer(org.eclipse.emf.ecore.EObject semanticObject, Iterable<org.eclipse.emf.ecore.EObject> contextCandidates)
public Iterable<org.eclipse.emf.ecore.EObject> findContextsByContents(org.eclipse.emf.ecore.EObject semanticObject, Iterable<org.eclipse.emf.ecore.EObject> contextCandidates)
findContextsByContents in interface IContextFinderpublic Iterable<org.eclipse.emf.ecore.EObject> findContextsByContentsAndContainer(org.eclipse.emf.ecore.EObject semanticObject, Iterable<org.eclipse.emf.ecore.EObject> contextCandidates)
findContextsByContentsAndContainer in interface IContextFinderprotected Collection<IGrammarConstraintProvider.IConstraint> findContextsByValue(org.eclipse.emf.ecore.EObject semanicObj, org.eclipse.emf.ecore.EStructuralFeature feature, Iterable<IGrammarConstraintProvider.IConstraint> constraints)
protected Map<IGrammarConstraintProvider.IConstraint,List<org.eclipse.emf.ecore.EObject>> getConstraints(org.eclipse.emf.ecore.EClass cls)
protected Map<IGrammarConstraintProvider.IConstraint,List<org.eclipse.emf.ecore.EObject>> getConstraints(org.eclipse.emf.ecore.EObject semanticObject, Iterable<org.eclipse.emf.ecore.EObject> contextCandidates)
protected org.eclipse.emf.ecore.EObject getRootContext()
protected void initConstraints()
protected boolean intersect(Iterable<org.eclipse.emf.ecore.EObject> it1, Iterable<org.eclipse.emf.ecore.EObject> it2)
protected boolean isMandatory(IGrammarConstraintProvider.IFeatureInfo feature)
protected boolean isValidValueQuantity(IGrammarConstraintProvider.IConstraint constraint, org.eclipse.emf.ecore.EObject semanicObj)
Copyright © 2015. All Rights Reserved.