Comparable<AnnotationEnumValue>
public class AnnotationEnumValue extends Object implements Comparable<AnnotationEnumValue>
Modifier and Type | Field | Description |
---|---|---|
protected ScanResult |
scanResult |
Modifier and Type | Method | Description |
---|---|---|
int |
compareTo(AnnotationEnumValue o) |
|
boolean |
equals(Object o) |
|
String |
getClassName() |
The name of the class (used by
getClassInfo() to fetch the ClassInfo object for the class). |
String |
getName() |
|
String |
getValueName() |
|
int |
hashCode() |
|
Object |
loadClassAndReturnEnumValue() |
Loads the enum class, instantiates the enum constants for the class, and returns the enum constant value
represented by this
AnnotationEnumValue . |
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 . |
String |
toString() |
protected transient ScanResult scanResult
public String getClassName()
getClassInfo()
to fetch the ClassInfo
object for the class).public String getValueName()
public String getName()
getClassName()
+
{#getValueName()}).public Object loadClassAndReturnEnumValue(boolean ignoreExceptions) throws IllegalArgumentException
AnnotationEnumValue
.ignoreExceptions
- If true, ignore classloading exceptions and return null on failure.AnnotationEnumValue
IllegalArgumentException
- if the class could not be loaded and ignoreExceptions was false, or if the enum constant is
invalid.public Object loadClassAndReturnEnumValue() throws IllegalArgumentException
AnnotationEnumValue
.AnnotationEnumValue
IllegalArgumentException
- if the class could not be loaded, or the enum constant is invalid.public int compareTo(AnnotationEnumValue o)
compareTo
in interface Comparable<AnnotationEnumValue>
Copyright © 2018. All rights reserved.