public class AnnotationClassRef
extends java.lang.Object
Class<?>, as found in an annotation parameter value.| Modifier and Type | Field and Description |
|---|---|
protected java.lang.Class<?> |
classRef
The class ref, once the class is loaded.
|
protected ScanResult |
scanResult
The scan result.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
protected void |
findReferencedClassInfo(java.util.Map<java.lang.String,ClassInfo> classNameToClassInfo,
java.util.Set<ClassInfo> refdClassInfo,
LogNode log)
Get
ClassInfo objects for any classes referenced by this object. |
ClassInfo |
getClassInfo()
Get the class info.
|
protected java.lang.String |
getClassName()
The name of the class (used by
getClassInfo() to fetch the ClassInfo object for the class). |
java.lang.String |
getName()
Get the name of the referenced class.
|
int |
hashCode() |
java.lang.Class<?> |
loadClass()
Loads the referenced class, returning a {@code Class
|
java.lang.Class<?> |
loadClass(boolean ignoreExceptions)
Loads the referenced class, returning a {@code Class
|
java.lang.String |
toString()
Render to string.
|
protected void |
toString(boolean useSimpleNames,
java.lang.StringBuilder buf)
Render to string.
|
java.lang.String |
toStringWithSimpleNames()
Render to string, using only simple
names for classes.
|
protected transient ScanResult scanResult
protected transient java.lang.Class<?> classRef
public java.lang.String getName()
public java.lang.Class<?> loadClass(boolean ignoreExceptions)
Class<?> reference for the referenced class.ignoreExceptions - if true, ignore exceptions and instead return null if the class could not be loaded.Class<?> reference for the referenced class.java.lang.IllegalArgumentException - if the class could not be loaded and ignoreExceptions was false.public java.lang.Class<?> loadClass()
Class<?> reference for the referenced class.Class<?> reference for the referenced class.java.lang.IllegalArgumentException - if the class could not be loaded.protected java.lang.String getClassName()
getClassInfo() to fetch the ClassInfo object for the class).public ClassInfo getClassInfo()
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, loadClass() may be able to load the referenced class
by name.public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectprotected void toString(boolean useSimpleNames,
java.lang.StringBuilder buf)
useSimpleNames - if true, use just the simple name of each class.buf - the bufprotected void findReferencedClassInfo(java.util.Map<java.lang.String,ClassInfo> classNameToClassInfo, java.util.Set<ClassInfo> refdClassInfo, LogNode log)
ClassInfo objects for any classes referenced by this object.classNameToClassInfo - the map from class name to ClassInfo.refdClassInfo - the referenced class infolog - the logpublic java.lang.String toStringWithSimpleNames()
public java.lang.String toString()
toString in class java.lang.Object