public interface ExtensionVisitor
Modifier and Type | Interface and Description |
---|---|
static class |
ExtensionVisitor.StoppedException
The StoppedException is thrown by ExtensionVisitor instances to
immediately exit from extension tree processing.
|
Modifier and Type | Method and Description |
---|---|
boolean |
visit(ExtensionPoint parent,
Extension extension)
Called during ExtensionPoint tree traversal to allow the visitor instance
to process an extension in the tree.
|
void |
visitComplete(ExtensionPoint target)
The visitComplete method is called when traversal for an ExtensionPoint
and all of its nested children has been completed.
|
boolean visit(ExtensionPoint parent, Extension extension) throws ExtensionVisitor.StoppedException
parent
- the parent of the visited extension.extension
- the target extension being visited.ExtensionVisitor.StoppedException
- if the data model traversal should be stopped
immediately. This may be the result of an unexpected error, or some
visitor implementations may extend this exception type to signal
specific exit conditions.void visitComplete(ExtensionPoint target) throws ExtensionVisitor.StoppedException
target
- the visited extension pointExtensionVisitor.StoppedException
- if the data model traversal should be stopped
immediately. This may be the result of an unexpected error, or some
visitor implementations may extend this exception type to signal
specific exit conditions.