public class AnnotationEnumValue extends Object implements Comparable<AnnotationEnumValue>
Modifier and Type | Method and Description |
---|---|
int |
compareTo(AnnotationEnumValue o) |
boolean |
equals(Object obj) |
String |
getClassName()
Get the class name.
|
String |
getName()
Get the name.
|
String |
getValueName()
Get the value name.
|
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()
Render to string.
|
String |
toStringWithSimpleNames()
Render to string, using only simple
names for classes.
|
public String getClassName()
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>
public String toStringWithSimpleNames()
Copyright © 2021. All rights reserved.