public class ParserSupport extends Object
| Constructor and Description |
|---|
ParserSupport() |
| Modifier and Type | Method and Description |
|---|---|
static <T extends Enum<T>> |
makeEnumFromString(ClassLoader loader,
String enumName,
String valueName)
Make enum from string.
|
static String |
processQuotedString(Token tok,
String s)
Process quoted string.
|
static Date |
variantDateParse(String s)
Variant date parse.
|
public static String processQuotedString(Token tok, String s) throws CustomParseException
tok - the toks - the string to parse. this is the string without enclosing single quotes.CustomParseException - the custom parse exceptionpublic static <T extends Enum<T>> Enum<T> makeEnumFromString(ClassLoader loader, String enumName, String valueName)
enumName - the enum namevalueName - the value namepublic static Date variantDateParse(String s) throws ParseException
s - the sParseException - the parse exceptionCopyright © 2003–2024 Terracotta, Inc.. All rights reserved.