public class GenericReflectiveVisitor
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
(package private) static org.slf4j.Logger |
logger |
Constructor and Description |
---|
GenericReflectiveVisitor() |
Modifier and Type | Method and Description |
---|---|
protected java.lang.reflect.Method |
getMethod(java.lang.Class<?> c,
java.lang.Class<?> root)
Finds the visit(X) method corresponding to the object class (subclass of a root class)
Look-up for X in the superclass of c (up to root, otherwise it loops)
If not found, look it up in the implemented interface
(there may be such a method for interfaces)
|
boolean |
subsumedInvocableMethod(java.lang.Object visitor,
java.lang.Object o,
java.lang.Class<?> cl) |
protected java.lang.reflect.Method getMethod(java.lang.Class<?> c, java.lang.Class<?> root)
c:
- the class in which the method should applyroot:
- the topmost class above cpublic boolean subsumedInvocableMethod(java.lang.Object visitor, java.lang.Object o, java.lang.Class<?> cl) throws AlignmentException
AlignmentException
(C) INRIA & friends, 2003-2020