public class ContextFinder extends java.lang.Object implements IContextFinder
Modifier and Type | Field and Description |
---|---|
protected IAssignmentFinder |
assignmentFinder |
protected java.util.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 java.util.List<ISerializationContext> |
createContextsForFeatures(java.util.Collection<ISerializationContext> containers,
IGrammarConstraintProvider.IFeatureInfo feature,
org.eclipse.emf.ecore.EObject sem) |
protected java.util.Set<AbstractElement> |
findAssignedElements(org.eclipse.emf.ecore.EObject obj,
org.eclipse.emf.ecore.EStructuralFeature feature,
com.google.common.collect.Multimap<AbstractElement,ISerializationContext> assignments) |
java.util.Set<ISerializationContext> |
findByContents(org.eclipse.emf.ecore.EObject semanticObject,
java.lang.Iterable<ISerializationContext> contextCandidates) |
java.util.Set<ISerializationContext> |
findByContentsAndContainer(org.eclipse.emf.ecore.EObject semanticObject,
java.lang.Iterable<ISerializationContext> contextCandidates) |
protected java.lang.Iterable<ISerializationContext> |
findContextsByContainer(org.eclipse.emf.ecore.EObject sem,
java.lang.Iterable<ISerializationContext> contextCandidates) |
java.lang.Iterable<org.eclipse.emf.ecore.EObject> |
findContextsByContents(org.eclipse.emf.ecore.EObject semanticObject,
java.lang.Iterable<org.eclipse.emf.ecore.EObject> contextCandidates)
Deprecated.
|
java.lang.Iterable<org.eclipse.emf.ecore.EObject> |
findContextsByContentsAndContainer(org.eclipse.emf.ecore.EObject semanticObject,
java.lang.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,
java.lang.Iterable<ISerializationContext> contextCandidates) |
protected ISerializationContext |
getRootContext(org.eclipse.emf.ecore.EObject sem) |
protected void |
initConstraints() |
protected boolean |
intersect(java.lang.Iterable<ISerializationContext> it1,
java.lang.Iterable<ISerializationContext> it2) |
protected boolean |
isValidValueQuantity(IGrammarConstraintProvider.IConstraint constraint,
org.eclipse.emf.ecore.EObject semanicObj) |
@Inject protected IAssignmentFinder assignmentFinder
protected java.util.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 java.util.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 java.util.Set<ISerializationContext> findByContents(org.eclipse.emf.ecore.EObject semanticObject, java.lang.Iterable<ISerializationContext> contextCandidates)
findByContents
in interface IContextFinder
public java.util.Set<ISerializationContext> findByContentsAndContainer(org.eclipse.emf.ecore.EObject semanticObject, java.lang.Iterable<ISerializationContext> contextCandidates)
findByContentsAndContainer
in interface IContextFinder
protected java.util.List<ISerializationContext> createContextsForFeatures(java.util.Collection<ISerializationContext> containers, IGrammarConstraintProvider.IFeatureInfo feature, org.eclipse.emf.ecore.EObject sem)
protected java.lang.Iterable<ISerializationContext> findContextsByContainer(org.eclipse.emf.ecore.EObject sem, java.lang.Iterable<ISerializationContext> contextCandidates)
@Deprecated public java.lang.Iterable<org.eclipse.emf.ecore.EObject> findContextsByContents(org.eclipse.emf.ecore.EObject semanticObject, java.lang.Iterable<org.eclipse.emf.ecore.EObject> contextCandidates)
findContextsByContents
in interface IContextFinder
@Deprecated public java.lang.Iterable<org.eclipse.emf.ecore.EObject> findContextsByContentsAndContainer(org.eclipse.emf.ecore.EObject semanticObject, java.lang.Iterable<org.eclipse.emf.ecore.EObject> contextCandidates)
findContextsByContentsAndContainer
in interface IContextFinder
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, java.lang.Iterable<ISerializationContext> contextCandidates)
protected ISerializationContext getRootContext(org.eclipse.emf.ecore.EObject sem)
protected void initConstraints()
protected boolean intersect(java.lang.Iterable<ISerializationContext> it1, java.lang.Iterable<ISerializationContext> it2)
protected boolean isValidValueQuantity(IGrammarConstraintProvider.IConstraint constraint, org.eclipse.emf.ecore.EObject semanicObj)