org.eclipse.xtext.parsetree.reconstr
Interface IEObjectConsumer

All Known Implementing Classes:
EObjectConsumer

public interface IEObjectConsumer

A wrapper for EObjects holding the information about what values have already been consumed by a serialization process.

Author:
Sven Efftinge - Initial contribution and API, Moritz Eysholdt

Method Summary
 IEObjectConsumer cloneAndConsume(java.lang.String feature)
           
 java.lang.Object getConsumable(java.lang.String feature, boolean allowDefault)
           
 org.eclipse.emf.ecore.EObject getEObject()
           
 java.util.Map<org.eclipse.emf.ecore.EStructuralFeature,java.lang.Integer> getUnconsumed()
           
 boolean isConsumed()
           
 boolean isConsumedWithLastConsumtion(java.lang.String feature)
           
 boolean isInstanceOf(org.eclipse.emf.ecore.EClassifier classifier)
           
 

Method Detail

cloneAndConsume

IEObjectConsumer cloneAndConsume(java.lang.String feature)

getConsumable

java.lang.Object getConsumable(java.lang.String feature,
                               boolean allowDefault)

getEObject

org.eclipse.emf.ecore.EObject getEObject()

getUnconsumed

java.util.Map<org.eclipse.emf.ecore.EStructuralFeature,java.lang.Integer> getUnconsumed()

isConsumed

boolean isConsumed()

isConsumedWithLastConsumtion

boolean isConsumedWithLastConsumtion(java.lang.String feature)

isInstanceOf

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