All Downloads are FREE. Search and download functionalities are using the official Maven repository.

snippets.can-visit.txt Maven / Gradle / Ivy


for (java.lang.reflect.Method method : visitor.getClass().getDeclaredMethods()) {
    if (visitor instanceof TypedVisitor) {
        return ((TypedVisitor) visitor).getType().isAssignableFrom(fluent.getClass());
    }
    if (method.getParameterTypes().length != 1) {
        continue;
    }
    Class visitorType = method.getParameterTypes()[0];
    if (visitorType.isAssignableFrom(fluent.getClass())) {
        return true;
    } else {
        return false;
    }
}
return false;




© 2015 - 2025 Weber Informatics LLC | Privacy Policy