| Constructor and Description |
|---|
ClassNode(String className,
boolean allowPrimitive)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Value |
evaluate(ParseSession session)
Evaluate this node.
|
String |
getClassName()
Get the configured class name.
|
Class<?> |
getType(ParseSession session)
Get the type of this node's value.
|
static ClassNode |
parse(ParseContext ctx,
String name,
boolean allowPrimitive) |
Class<?> |
resolveClass(ParseSession session)
Attempt to resolve the class name.
|
public ClassNode(String className, boolean allowPrimitive)
className - the name of the classallowPrimitive - whether to allow primitive names like intIllegalArgumentException - if className is nullpublic Value evaluate(ParseSession session)
Nodepublic Class<?> getType(ParseSession session)
Node
If the type is unknown, Object.class should be returned.
public Class<?> resolveClass(ParseSession session)
session - parse sessionEvalException - if name cannot be resolvedpublic String getClassName()
public static ClassNode parse(ParseContext ctx, String name, boolean allowPrimitive)
Copyright © 2017. All rights reserved.