/** @return The {@link ClassInfo} object for the declaring class (i.e. the class that declares this field). */ @Override public ClassInfo getClassInfo() { return super.getClassInfo(); }
/** @return The {@link ClassInfo} object for the declaring class (i.e. the class that declares this method). */ @Override public ClassInfo getClassInfo() { return super.getClassInfo(); }
/** @return The {@link ClassInfo} object for the annotation class. */ @Override public ClassInfo getClassInfo() { getClassName(); return super.getClassInfo(); }
/** * @return The {@link ClassInfo} object for the referenced class, or null if the referenced class was not * encountered during scanning (i.e. if no ClassInfo object was created for the class during scanning). * N.B. even if this method returns null, {@link #loadClass()} may be able to load the referenced class * by name. */ @Override public ClassInfo getClassInfo() { getClassName(); return super.getClassInfo(); }
/** * Load the class named returned by {@link #getClassInfo()}, or if that returns null, the class named by * {@link #getClassName()}. Returns a {@code Class<?>} reference for the class. * * @param ignoreExceptions * If true, ignore classloading exceptions and return null on failure. * @return The {@code Class<?>} reference for the referenced class, or null if the class could not be loaded and * ignoreExceptions is true. * @throws IllegalArgumentException * if the class could not be loaded and ignoreExceptions was false. */ Class<?> loadClass(final boolean ignoreExceptions) { if (classRef == null) { String className; final ClassInfo classInfo = getClassInfo(); if (classInfo != null) { // Get class name from getClassInfo().getName() className = classInfo.getName(); } else { // Get class name from getClassName() className = getClassName(); } if (className == null) { throw new IllegalArgumentException("Class name is not set"); } classRef = scanResult.loadClass(className, ignoreExceptions); } return classRef; }
if (classRef == null) { String className; final ClassInfo classInfo = getClassInfo(); if (classInfo != null) {