public abstract class NavigationHelperVisitor extends EMFVisitor
Modifier and Type | Class and Description |
---|---|
static class |
NavigationHelperVisitor.ChangeVisitor
A visitor for processing a single change event.
|
static class |
NavigationHelperVisitor.TraversingVisitor
A visitor for a single-pass traversal of the whole model, processing only the given types and inserting them.
|
Modifier and Type | Method and Description |
---|---|
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.
|
preOrder, visitResource, visitTopElementInResource
public boolean pruneSubtrees(org.eclipse.emf.ecore.EObject source)
EMFVisitor
pruneSubtrees
in class EMFVisitor
public boolean pruneSubtrees(org.eclipse.emf.ecore.resource.Resource source)
EMFVisitor
pruneSubtrees
in class EMFVisitor
public boolean pruneFeature(org.eclipse.emf.ecore.EStructuralFeature feature)
EMFVisitor
pruneFeature
in class EMFVisitor
public void visitElement(org.eclipse.emf.ecore.EObject source)
visitElement
in class EMFVisitor
public void visitAttribute(org.eclipse.emf.ecore.EObject source, org.eclipse.emf.ecore.EAttribute feature, java.lang.Object target)
visitAttribute
in class EMFVisitor
public void visitInternalContainment(org.eclipse.emf.ecore.EObject source, org.eclipse.emf.ecore.EReference feature, org.eclipse.emf.ecore.EObject target)
visitInternalContainment
in class EMFVisitor
public void visitNonContainmentReference(org.eclipse.emf.ecore.EObject source, org.eclipse.emf.ecore.EReference feature, org.eclipse.emf.ecore.EObject target)
visitNonContainmentReference
in class EMFVisitor
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)
EMFVisitor
visitProxyReference
in class EMFVisitor
position
- optional: known position in multivalued collection (for more efficient proxy resolution)