List of all members.
Static Public Member Functions |
static< T > T | convert (Class< T > cl, Object value) |
static boolean | isConvertible (Class<?> cl) |
static boolean | isIntegral (Class<?extends Number > c) |
static< EextendsEnum< E > E | parseEnum (Class< E > cla, Object val, E def) |
Static Package Functions |
| [static initializer] |
Private Member Functions |
| ClassUtil () |
Static Private Attributes |
static HashSet< Class<?> > | integralClasses = new HashSet<Class<?>>() |
Constructor & Destructor Documentation
metadone.util.ClassUtil.ClassUtil |
( |
| ) |
[private] |
Member Function Documentation
metadone.util.ClassUtil.[static initializer] |
( |
| ) |
[static, package] |
static <T> T metadone.util.ClassUtil.convert |
( |
Class< T > |
cl, |
|
|
Object |
value |
|
) |
| [static] |
Converts a value to the given type.
This method supports conversion between basic types such as strings, numbers, characters and booleans.
- Parameters:
-
<T> | The expected type |
cl | The class |
value | The value |
- Returns:
- The converted value or
null
on failure
Referenced by metadone.client.grasyla2.ref.ActionCreateEngine.create(), metadone.client.grasyla2.value.ValueEngine.evaluateComponent(), metadone.plugin.grasyla.generator.GrasylaGenerator.getDefaultValue(), metadone.client.grasyla2.GrasylaContext.getPhenomenonValue(), metadone.client.grasyla2.value.Value.getValueAsBoolean(), metadone.client.grasyla2.value.Value.getValueAsChar(), metadone.client.grasyla2.value.Value.getValueAsFloat(), metadone.client.grasyla2.value.Value.getValueAsInteger(), metadone.client.MainClientMetadone.isTestingVersion(), and metadone.client.MainClientMetadone.QuestionSubscriber.trigger().
static boolean metadone.util.ClassUtil.isConvertible |
( |
Class<?> |
cl | ) |
[static] |
static boolean metadone.util.ClassUtil.isIntegral |
( |
Class<?extends Number > |
c | ) |
[static] |
static <EextendsEnum<E> E metadone.util.ClassUtil.parseEnum |
( |
Class< E > |
cla, |
|
|
Object |
val, |
|
|
E |
def |
|
) |
| [static] |
Member Data Documentation
The documentation for this class was generated from the following file: