public class AnnotationEnumValue extends java.lang.Object implements java.lang.Comparable<AnnotationEnumValue>
| 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 |
|---|---|
int |
compareTo(AnnotationEnumValue o) |
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. |
java.lang.String |
getClassName()
Get the class name.
|
java.lang.String |
getName()
Get the name.
|
java.lang.String |
getValueName()
Get the value name.
|
int |
hashCode() |
java.lang.Object |
loadClassAndReturnEnumValue()
Loads the enum class, instantiates the enum constants for the class, and returns the enum constant value
represented by this
AnnotationEnumValue. |
java.lang.Object |
loadClassAndReturnEnumValue(boolean ignoreExceptions)
Loads the enum class, instantiates the enum constants for the class, and returns the enum constant value
represented by this
AnnotationEnumValue. |
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 getClassName()
public java.lang.String getValueName()
public java.lang.String getName()
getClassName() +
{#getValueName()}).public java.lang.Object loadClassAndReturnEnumValue(boolean ignoreExceptions)
throws java.lang.IllegalArgumentException
AnnotationEnumValue.ignoreExceptions - If true, ignore classloading exceptions and return null on failure.AnnotationEnumValuejava.lang.IllegalArgumentException - if the class could not be loaded and ignoreExceptions was false, or if the enum constant is
invalid.public java.lang.Object loadClassAndReturnEnumValue()
throws java.lang.IllegalArgumentException
AnnotationEnumValue.AnnotationEnumValuejava.lang.IllegalArgumentException - if the class could not be loaded, or the enum constant is invalid.public int compareTo(AnnotationEnumValue o)
compareTo in interface java.lang.Comparable<AnnotationEnumValue>public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode 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