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
.Copyright © 2002–2014 The Neo4j Graph Database Project. All rights reserved.