| Modifier and Type | Method and Description |
|---|---|
static <T,F extends Exception> |
castOrNull(Class<T> eType,
Class<F> fType,
Object visitor)
|
public static <T,F extends Exception> Visitor<? super T,? extends F> castOrNull(Class<T> eType, Class<F> fType, Object visitor)
Visitor and if the objects it can
visit is compatible (super type of) with the provided type. Returns the
visitor cast to compatible type parameters. If the passed in object is not an instance of Visitor,
or if it is a Visitor but one that visits another type of object, this
method returns null.T - type of the elementsF - type of the exceptioneType - element type of the visitorfType - failure type of the visitorvisitor - the visitornullCopyright © 2002–2018 The Neo4j Graph Database Project. All rights reserved.