Acceleo Query Language Documentation

eAllContents(eObject: org.eclipse.emf.ecore.EObject, type: org.eclipse.emf.ecore.EClass) = List

Returns a sequence of the EObjects recursively contained in the specified root eObject and that are instances of the specified EClass

Expression Result
anEPackage.eAllContents(ecore::EClass) Sequence{firstEClass, secondEClass}


eAllContents(eObject: org.eclipse.emf.ecore.EObject) = List

Returns a sequence of the EObjects recursively contained in the specified root eObject.

Expression Result
anEPackage.eAllContents() Sequence{firstEClass, firstEAttribute, secondEClass, firstDataType}


eClass(eObject: org.eclipse.emf.ecore.EObject) = EClass

Returns the EClass of the specified EObject


eContainer(eObject: org.eclipse.emf.ecore.EObject) = EObject

Returns the container of the specified EObject

Expression Result
firstEAttribute.eContainer() firstEClass


eContainer(eObject: org.eclipse.emf.ecore.EObject, type: org.eclipse.emf.ecore.EClass) = EObject

Returns the first container of the specified EObject that matches the given type

Expression Result
firstEAttribute.eContainer(ecore::EPackage) anEPackage


eContainerOrSelf(eObject: org.eclipse.emf.ecore.EObject, type: org.eclipse.emf.ecore.EClass) = EObject

Returns self or the first container of the specified EObject that matches the given type

Expression Result
firstEAttribute.eContainerOrSelf(ecore::EAttribute) firstEAttribute


eContents(eObject: org.eclipse.emf.ecore.EObject, type: org.eclipse.emf.ecore.EClass) = List

Returns a sequence made of the instances of the specified type in the contents of the specified eObject.

Expression Result
anEPackage.eContents(ecore::EDataType) Sequence{firstDataType}


eContents(eObject: org.eclipse.emf.ecore.EObject) = List

Returns the contents of the specified EObject instance.

Expression Result
anEPackage.eContents() Sequence{firstEClass, secondEClass, firstDataType}


eGet(eObject: org.eclipse.emf.ecore.EObject, featureName: java.lang.String) = Object

Handles calls to the operation "eGet". This will fetch the value of the feature named featureName on source


eInverse(eObject: org.eclipse.emf.ecore.EObject, type: org.eclipse.emf.ecore.EClassifier) = Set

Returns the elements of the given type from the set of the inverse references of the receiver.


eInverse(eObject: org.eclipse.emf.ecore.EObject, featureName: java.lang.String) = Set

Returns the elements from the set of the inverse references of the receiver that are referencing the receiver using a feature with the given name.


eInverse(eObject: org.eclipse.emf.ecore.EObject) = Set

Returns the set containing the inverse references.