public class AnnotationClassRef extends Object
Class<?>
, as found in an annotation parameter value.Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
ClassInfo |
getClassInfo()
Get the class info.
|
String |
getName()
Get the name of the referenced class.
|
int |
hashCode() |
Class<?> |
loadClass()
Loads the referenced class, returning a
Class<?> reference for the referenced class. |
Class<?> |
loadClass(boolean ignoreExceptions)
Loads the referenced class, returning a
Class<?> reference for the referenced class. |
String |
toString() |
public String getName()
public 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.IllegalArgumentException
- if the class could not be loaded and ignoreExceptions was false.public Class<?> loadClass()
Class<?>
reference for the referenced class.Class<?>
reference for the referenced class.IllegalArgumentException
- if the class could not be loaded.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.Copyright © 2020. All rights reserved.