public class HierarchicalVisitorAdapter<NODE,LEAF,ThrowableType extends Throwable> extends Object implements HierarchicalVisitor<NODE,LEAF,ThrowableType>
Constructor and Description |
---|
HierarchicalVisitorAdapter() |
Modifier and Type | Method and Description |
---|---|
boolean |
visit(LEAF visited)
Visit an instance of T
|
boolean |
visitEnter(NODE visited)
Enter an instance of T
|
boolean |
visitLeave(NODE visited)
Leave an instance of T
|
public boolean visitEnter(NODE visited) throws ThrowableType extends Throwable
HierarchicalVisitor
visitEnter
in interface HierarchicalVisitor<NODE,LEAF,ThrowableType extends Throwable>
visited
- the visited instance which is now enteredThrowableType
- if an exception occurred during processing. Any client call that initiated the visiting should
get the exception in order to handle it properly.ThrowableType extends Throwable
public boolean visitLeave(NODE visited) throws ThrowableType extends Throwable
HierarchicalVisitor
visitLeave
in interface HierarchicalVisitor<NODE,LEAF,ThrowableType extends Throwable>
visited
- the visited instance which is now leftThrowableType
- if an exception occurred during processing. Any client call that initiated the visiting should
get the exception in order to handle it properly.ThrowableType extends Throwable
public boolean visit(LEAF visited) throws ThrowableType extends Throwable
Visitor
visit
in interface HierarchicalVisitor<NODE,LEAF,ThrowableType extends Throwable>
visit
in interface Visitor<LEAF,ThrowableType extends Throwable>
visited
- the visited instanceThrowableType
- if an exception occurred during processing. Any client call that initiated the visiting should
get the exception in order to handle it properly.ThrowableType extends Throwable