Modifier and Type | Class and Description |
---|---|
static class |
DynaTypeEnum.Value
Represents a single "enum" instance (= the value).
|
Constructor and Description |
---|
DynaTypeEnum(Class<?> enumClass)
Create a new DynaTypeEnum instance.
|
DynaTypeEnum(Class<?> enumClass,
String... names)
Create a new DynaTypeEnum instance.
|
Modifier and Type | Method and Description |
---|---|
DynaTypeEnum.Value[] |
getEnumConstants()
Get the emulated constants.
|
String |
getName()
Get the name of the enum class.
|
Class<?> |
getRawType()
Resolve the type indirection.
|
boolean |
isAssignableFrom(Class<?> cls)
Learn whether the wrapped class is assignable from
cls . |
boolean |
isEnum()
Learn whether the referred class is, in fact, an enum class.
|
void |
setEnumNames(String[] names)
Set the enumeration value names.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getTypeName
public DynaTypeEnum(Class<?> enumClass)
enumClass
- public void setEnumNames(String[] names)
names
- public String getName()
public Class<?> getRawType()
getRawType
in interface DynaType
public boolean isEnum()
public DynaTypeEnum.Value[] getEnumConstants()
public boolean isAssignableFrom(Class<?> cls)
cls
.cls
- Copyright © 2010–2018 The Apache Software Foundation. All rights reserved.