public class EMFVisitor
extends java.lang.Object
| Constructor and Description | 
|---|
EMFVisitor(boolean preOrder)  | 
| Modifier and Type | Method and Description | 
|---|---|
boolean | 
preOrder()  | 
boolean | 
pruneFeature(org.eclipse.emf.ecore.EStructuralFeature feature)
Returns true if the given feature should not be traversed (interesting esp. 
 | 
boolean | 
pruneSubtrees(org.eclipse.emf.ecore.EObject source)
Returns true if the contents of an object should be pruned (and not explored by the visitor) 
 | 
boolean | 
pruneSubtrees(org.eclipse.emf.ecore.resource.Resource source)
Returns true if the contents of a resource should be pruned (and not explored by the visitor) 
 | 
void | 
visitAttribute(org.eclipse.emf.ecore.EObject source,
              org.eclipse.emf.ecore.EAttribute feature,
              java.lang.Object target)  | 
void | 
visitElement(org.eclipse.emf.ecore.EObject source)  | 
void | 
visitInternalContainment(org.eclipse.emf.ecore.EObject source,
                        org.eclipse.emf.ecore.EReference feature,
                        org.eclipse.emf.ecore.EObject target)  | 
void | 
visitNonContainmentReference(org.eclipse.emf.ecore.EObject source,
                            org.eclipse.emf.ecore.EReference feature,
                            org.eclipse.emf.ecore.EObject target)  | 
void | 
visitProxyReference(org.eclipse.emf.ecore.EObject source,
                   org.eclipse.emf.ecore.EReference reference,
                   org.eclipse.emf.ecore.EObject targetObject,
                   java.lang.Integer position)
Called after visiting the reference, if the target is a proxy. 
 | 
void | 
visitResource(org.eclipse.emf.ecore.resource.Resource resource)  | 
void | 
visitTopElementInResource(org.eclipse.emf.ecore.resource.Resource resource,
                         org.eclipse.emf.ecore.EObject element)  | 
public void visitTopElementInResource(org.eclipse.emf.ecore.resource.Resource resource,
                                      org.eclipse.emf.ecore.EObject element)
resource - element - public void visitResource(org.eclipse.emf.ecore.resource.Resource resource)
resource - public void visitElement(org.eclipse.emf.ecore.EObject source)
source - public void visitNonContainmentReference(org.eclipse.emf.ecore.EObject source,
                                         org.eclipse.emf.ecore.EReference feature,
                                         org.eclipse.emf.ecore.EObject target)
source - feature - target - public void visitInternalContainment(org.eclipse.emf.ecore.EObject source,
                                     org.eclipse.emf.ecore.EReference feature,
                                     org.eclipse.emf.ecore.EObject target)
source - feature - target - public void visitAttribute(org.eclipse.emf.ecore.EObject source,
                           org.eclipse.emf.ecore.EAttribute feature,
                           java.lang.Object target)
source - feature - target - public boolean pruneFeature(org.eclipse.emf.ecore.EStructuralFeature feature)
public boolean pruneSubtrees(org.eclipse.emf.ecore.EObject source)
public boolean pruneSubtrees(org.eclipse.emf.ecore.resource.Resource source)
public boolean preOrder()
public void visitProxyReference(org.eclipse.emf.ecore.EObject source,
                                org.eclipse.emf.ecore.EReference reference,
                                org.eclipse.emf.ecore.EObject targetObject,
                                java.lang.Integer position)
position - optional: known position in multivalued collection (for more efficient proxy resolution)