org.eclipse.xtext.xtend2.lib
Class EObjectExtensions

java.lang.Object
  extended by org.eclipse.xtext.xtend2.lib.EObjectExtensions

public class EObjectExtensions
extends java.lang.Object

This is an extension library for EMF objects.

Author:
Jan Koehnlein - Initial contribution and API

Constructor Summary
EObjectExtensions()
           
 
Method Summary
static java.lang.Iterable<org.eclipse.emf.ecore.EObject> allContentsIterable(org.eclipse.emf.ecore.EObject eObject)
          Returns all the contents of eObject as an Iterable.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EObjectExtensions

public EObjectExtensions()
Method Detail

allContentsIterable

public static java.lang.Iterable<org.eclipse.emf.ecore.EObject> allContentsIterable(org.eclipse.emf.ecore.EObject eObject)
Returns all the contents of eObject as an Iterable. That is, the eObject will not be provided by the results iterator.

Parameters:
eObject - the object whose contents should be traversed. May not be null.
Returns:
an iterable that yields all the contents of the eObject. Never null.