public class EnumConstantDescription extends Object implements ValueDescription
ValueDescription.ValueKind| Constructor and Description |
|---|
EnumConstantDescription(ClassDescription declaringClass,
String name)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
ClassDescription |
getDeclaringClass()
Returns the declaring enum type.
|
String |
getName()
Returns the constant name.
|
ValueDescription.ValueKind |
getValueKind()
Returns the value kind.
|
ClassDescription |
getValueType()
Returns the value type.
|
int |
hashCode() |
static EnumConstantDescription |
of(Enum<?> value)
Creates a new instance.
|
String |
toString() |
public EnumConstantDescription(ClassDescription declaringClass, String name)
declaringClass - the declaring classname - the constant namepublic static EnumConstantDescription of(Enum<?> value)
value - the enum constantpublic ValueDescription.ValueKind getValueKind()
ValueDescriptiongetValueKind in interface ValueDescriptionpublic ClassDescription getValueType()
ValueDescriptiongetValueType in interface ValueDescriptionpublic ClassDescription getDeclaringClass()
public String getName()
Copyright © 2011–2019 Asakusa Framework Team. All rights reserved.