src/main/java/io/github/classgraph/ClassInfo.java
public boolean hasField(final String fieldName) {
        for (final ClassInfo ci : getOverrideOrder()) {
            if (ci.hasDeclaredField(fieldName)) {
                return true;
            }
        }
        return false;
    }
/**
     * Checks whether this class or one of its superclasses has the named field.
     *
     * @param fieldName
     *            The name of a field.
     * @return true if this class or one of its superclasses declares a field of the given name.
     */
Checks whether this class or one of its superclasses has the named field.
@param fieldName
The name of a field.
@return true if this class or one of its superclasses declares a field of the given name.
Checks whether this class or one of its superclasses has the named field . @param fieldName The name of a field . @return true if this class or one of its superclasses declares a field of the given name .
public boolean hasField(final String fieldName) {
        for (final ClassInfo ci : getOverrideOrder()) {
            if (ci.hasDeclaredField(fieldName)) {
                return true;
            }
        }
        return false;
    }
public boolean hasField ( final String fieldName ) { for ( final ClassInfo ci : getOverrideOrder ( ) ) { if ( ci . hasDeclaredField ( fieldName ) ) { return true ; } } return false ; }
Checks whether this class or one of its superclasses has the named field.
Checks whether this class or one of its superclasses has the named field .