org.eclipse.xtext.validation.impl
Class AssignmentQuantityAllocator

java.lang.Object
  extended by org.eclipse.xtext.validation.impl.AssignmentQuantityAllocator
All Implemented Interfaces:
IAssignmentQuantityAllocator

public class AssignmentQuantityAllocator
extends java.lang.Object
implements IAssignmentQuantityAllocator

Author:
Moritz Eysholdt - Initial contribution and API

Nested Class Summary
protected  class AssignmentQuantityAllocator.Quantities
           
 
Nested classes/interfaces inherited from interface org.eclipse.xtext.validation.IAssignmentQuantityAllocator
IAssignmentQuantityAllocator.IQuantities
 
Field Summary
protected  IConcreteSyntaxDiagnosticProvider diagnosticProvider
           
protected  IAssignmentQuantityIntervalProvider intervalProvider
           
protected  ITransientValueService transSrvc
           
protected  ITokenSerializer.IValueSerializer valueSerializer
           
 
Constructor Summary
AssignmentQuantityAllocator()
           
 
Method Summary
protected  boolean allowTransient(org.eclipse.emf.ecore.EObject obj, org.eclipse.emf.ecore.EStructuralFeature feature, java.util.Collection<IConcreteSyntaxConstraintProvider.ISyntaxConstraint> constraint)
           
protected  void collectAssignments(IConcreteSyntaxConstraintProvider.ISyntaxConstraint rule, org.eclipse.emf.ecore.EObject obj, IConcreteSyntaxConstraintProvider.ISyntaxConstraint ele, com.google.common.collect.Multimap<org.eclipse.emf.ecore.EStructuralFeature,IConcreteSyntaxConstraintProvider.ISyntaxConstraint> assignments, java.util.List<IConcreteSyntaxDiagnosticProvider.IConcreteSyntaxDiagnostic> acceptor)
           
protected  AssignmentQuantityAllocator.Quantities createQuantities(org.eclipse.emf.ecore.EObject obj)
           
 IAssignmentQuantityAllocator.IQuantities getAssignmentQuantities(org.eclipse.emf.ecore.EObject obj, IConcreteSyntaxConstraintProvider.ISyntaxConstraint rule, java.util.List<IConcreteSyntaxDiagnosticProvider.IConcreteSyntaxDiagnostic> acceptor)
           
 int getFeatureQuantity(org.eclipse.emf.ecore.EObject obj, org.eclipse.emf.ecore.EStructuralFeature feat)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

diagnosticProvider

@Inject
protected IConcreteSyntaxDiagnosticProvider diagnosticProvider

intervalProvider

@Inject
protected IAssignmentQuantityIntervalProvider intervalProvider

transSrvc

@Inject
protected ITransientValueService transSrvc

valueSerializer

@Inject
protected ITokenSerializer.IValueSerializer valueSerializer
Constructor Detail

AssignmentQuantityAllocator

public AssignmentQuantityAllocator()
Method Detail

allowTransient

protected boolean allowTransient(org.eclipse.emf.ecore.EObject obj,
                                 org.eclipse.emf.ecore.EStructuralFeature feature,
                                 java.util.Collection<IConcreteSyntaxConstraintProvider.ISyntaxConstraint> constraint)

collectAssignments

protected void collectAssignments(IConcreteSyntaxConstraintProvider.ISyntaxConstraint rule,
                                  org.eclipse.emf.ecore.EObject obj,
                                  IConcreteSyntaxConstraintProvider.ISyntaxConstraint ele,
                                  com.google.common.collect.Multimap<org.eclipse.emf.ecore.EStructuralFeature,IConcreteSyntaxConstraintProvider.ISyntaxConstraint> assignments,
                                  java.util.List<IConcreteSyntaxDiagnosticProvider.IConcreteSyntaxDiagnostic> acceptor)

createQuantities

protected AssignmentQuantityAllocator.Quantities createQuantities(org.eclipse.emf.ecore.EObject obj)

getAssignmentQuantities

public IAssignmentQuantityAllocator.IQuantities getAssignmentQuantities(org.eclipse.emf.ecore.EObject obj,
                                                                        IConcreteSyntaxConstraintProvider.ISyntaxConstraint rule,
                                                                        java.util.List<IConcreteSyntaxDiagnosticProvider.IConcreteSyntaxDiagnostic> acceptor)
Specified by:
getAssignmentQuantities in interface IAssignmentQuantityAllocator

getFeatureQuantity

public int getFeatureQuantity(org.eclipse.emf.ecore.EObject obj,
                              org.eclipse.emf.ecore.EStructuralFeature feat)
Specified by:
getFeatureQuantity in interface IAssignmentQuantityAllocator