org.eclipse.xtext.parsetree.reconstr.impl
Class EObjectConsumer

java.lang.Object
  extended by org.eclipse.xtext.parsetree.reconstr.impl.EObjectConsumer
All Implemented Interfaces:
IEObjectConsumer

public class EObjectConsumer
extends java.lang.Object
implements IEObjectConsumer

Author:
Moritz Eysholdt - Initial contribution and API

Constructor Summary
EObjectConsumer(ITransientValueService transientValueService, org.eclipse.emf.ecore.EObject described)
           
 
Method Summary
 IEObjectConsumer cloneAndConsume(java.lang.String featureName)
           
 java.lang.Object getConsumable(java.lang.String featureName, boolean allowDefault)
           
 org.eclipse.emf.ecore.EObject getEObject()
           
 java.util.Map<org.eclipse.emf.ecore.EStructuralFeature,java.lang.Integer> getUnconsumed()
           
 boolean isConsumable(org.eclipse.emf.ecore.EStructuralFeature feature, boolean allowDefault)
           
 boolean isConsumed()
           
 boolean isConsumedWithLastConsumtion(java.lang.String featureName)
           
 boolean isInstanceOf(org.eclipse.emf.ecore.EClassifier classifier)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EObjectConsumer

public EObjectConsumer(ITransientValueService transientValueService,
                       org.eclipse.emf.ecore.EObject described)
Method Detail

cloneAndConsume

public IEObjectConsumer cloneAndConsume(java.lang.String featureName)
Specified by:
cloneAndConsume in interface IEObjectConsumer

getConsumable

public java.lang.Object getConsumable(java.lang.String featureName,
                                      boolean allowDefault)
Specified by:
getConsumable in interface IEObjectConsumer

getEObject

public org.eclipse.emf.ecore.EObject getEObject()
Specified by:
getEObject in interface IEObjectConsumer

getUnconsumed

public java.util.Map<org.eclipse.emf.ecore.EStructuralFeature,java.lang.Integer> getUnconsumed()
Specified by:
getUnconsumed in interface IEObjectConsumer

isConsumable

public boolean isConsumable(org.eclipse.emf.ecore.EStructuralFeature feature,
                            boolean allowDefault)

isConsumed

public boolean isConsumed()
Specified by:
isConsumed in interface IEObjectConsumer

isConsumedWithLastConsumtion

public boolean isConsumedWithLastConsumtion(java.lang.String featureName)
Specified by:
isConsumedWithLastConsumtion in interface IEObjectConsumer

isInstanceOf

public boolean isInstanceOf(org.eclipse.emf.ecore.EClassifier classifier)
Specified by:
isInstanceOf in interface IEObjectConsumer
Parameters:
classifier - the type as it is used within the grammar of the given language
Returns:
true if the delegate is a direct instance of the given type

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object