public class ContextFinder extends Object implements IContextFinder
| Modifier and Type | Field and Description |
|---|---|
protected IAssignmentFinder |
assignmentFinder |
protected Map<ISerializationContext,IGrammarConstraintProvider.IConstraint> |
constraints |
protected IGrammarConstraintProvider |
grammarConstraintProvider |
protected ISemanticNodeProvider |
nodesProvider |
protected RuleNames |
ruleNames |
protected ITransientValueService |
transientValues |
protected TransientValueUtil |
transientValueUtil |
| Constructor and Description |
|---|
ContextFinder() |
| Modifier and Type | Method and Description |
|---|---|
protected com.google.common.collect.Multimap<AbstractElement,ISerializationContext> |
collectAssignments(com.google.common.collect.Multimap<IGrammarConstraintProvider.IConstraint,ISerializationContext> constraints,
org.eclipse.emf.ecore.EStructuralFeature feature) |
protected List<ISerializationContext> |
createContextsForFeatures(Collection<ISerializationContext> containers,
IGrammarConstraintProvider.IFeatureInfo feature,
org.eclipse.emf.ecore.EObject sem) |
protected Set<AbstractElement> |
findAssignedElements(org.eclipse.emf.ecore.EObject obj,
org.eclipse.emf.ecore.EStructuralFeature feature,
com.google.common.collect.Multimap<AbstractElement,ISerializationContext> assignments) |
Set<ISerializationContext> |
findByContents(org.eclipse.emf.ecore.EObject semanticObject,
Iterable<ISerializationContext> contextCandidates) |
Set<ISerializationContext> |
findByContentsAndContainer(org.eclipse.emf.ecore.EObject semanticObject,
Iterable<ISerializationContext> contextCandidates) |
protected Iterable<ISerializationContext> |
findContextsByContainer(org.eclipse.emf.ecore.EObject sem,
Iterable<ISerializationContext> contextCandidates) |
Iterable<org.eclipse.emf.ecore.EObject> |
findContextsByContents(org.eclipse.emf.ecore.EObject semanticObject,
Iterable<org.eclipse.emf.ecore.EObject> contextCandidates)
Deprecated.
|
Iterable<org.eclipse.emf.ecore.EObject> |
findContextsByContentsAndContainer(org.eclipse.emf.ecore.EObject semanticObject,
Iterable<org.eclipse.emf.ecore.EObject> contextCandidates)
Deprecated.
|
protected com.google.common.collect.Multimap<IGrammarConstraintProvider.IConstraint,ISerializationContext> |
getConstraints(org.eclipse.emf.ecore.EObject sem) |
protected com.google.common.collect.Multimap<IGrammarConstraintProvider.IConstraint,ISerializationContext> |
getConstraints(org.eclipse.emf.ecore.EObject sem,
Iterable<ISerializationContext> contextCandidates) |
protected ISerializationContext |
getRootContext(org.eclipse.emf.ecore.EObject sem) |
protected void |
initConstraints() |
protected boolean |
intersect(Iterable<ISerializationContext> it1,
Iterable<ISerializationContext> it2) |
protected boolean |
isValidValueQuantity(IGrammarConstraintProvider.IConstraint constraint,
org.eclipse.emf.ecore.EObject semanicObj) |
@Inject protected IAssignmentFinder assignmentFinder
protected Map<ISerializationContext,IGrammarConstraintProvider.IConstraint> constraints
@Inject protected IGrammarConstraintProvider grammarConstraintProvider
@Inject protected ISemanticNodeProvider nodesProvider
@Inject protected RuleNames ruleNames
@Inject protected ITransientValueService transientValues
@Inject protected TransientValueUtil transientValueUtil
protected Set<AbstractElement> findAssignedElements(org.eclipse.emf.ecore.EObject obj, org.eclipse.emf.ecore.EStructuralFeature feature, com.google.common.collect.Multimap<AbstractElement,ISerializationContext> assignments)
protected com.google.common.collect.Multimap<AbstractElement,ISerializationContext> collectAssignments(com.google.common.collect.Multimap<IGrammarConstraintProvider.IConstraint,ISerializationContext> constraints, org.eclipse.emf.ecore.EStructuralFeature feature)
public Set<ISerializationContext> findByContents(org.eclipse.emf.ecore.EObject semanticObject, Iterable<ISerializationContext> contextCandidates)
findByContents in interface IContextFinderpublic Set<ISerializationContext> findByContentsAndContainer(org.eclipse.emf.ecore.EObject semanticObject, Iterable<ISerializationContext> contextCandidates)
findByContentsAndContainer in interface IContextFinderprotected List<ISerializationContext> createContextsForFeatures(Collection<ISerializationContext> containers, IGrammarConstraintProvider.IFeatureInfo feature, org.eclipse.emf.ecore.EObject sem)
protected Iterable<ISerializationContext> findContextsByContainer(org.eclipse.emf.ecore.EObject sem, Iterable<ISerializationContext> contextCandidates)
@Deprecated public Iterable<org.eclipse.emf.ecore.EObject> findContextsByContents(org.eclipse.emf.ecore.EObject semanticObject, Iterable<org.eclipse.emf.ecore.EObject> contextCandidates)
findContextsByContents in interface IContextFinder@Deprecated public Iterable<org.eclipse.emf.ecore.EObject> findContextsByContentsAndContainer(org.eclipse.emf.ecore.EObject semanticObject, Iterable<org.eclipse.emf.ecore.EObject> contextCandidates)
findContextsByContentsAndContainer in interface IContextFinderprotected com.google.common.collect.Multimap<IGrammarConstraintProvider.IConstraint,ISerializationContext> getConstraints(org.eclipse.emf.ecore.EObject sem)
protected com.google.common.collect.Multimap<IGrammarConstraintProvider.IConstraint,ISerializationContext> getConstraints(org.eclipse.emf.ecore.EObject sem, Iterable<ISerializationContext> contextCandidates)
protected ISerializationContext getRootContext(org.eclipse.emf.ecore.EObject sem)
protected void initConstraints()
protected boolean intersect(Iterable<ISerializationContext> it1, Iterable<ISerializationContext> it2)
protected boolean isValidValueQuantity(IGrammarConstraintProvider.IConstraint constraint, org.eclipse.emf.ecore.EObject semanicObj)
Copyright © 2015. All Rights Reserved.