Package dap4.core.dmr.parser
Class ParseUtil
- java.lang.Object
-
- dap4.core.dmr.parser.ParseUtil
-
public class ParseUtil extends Object
Misc. utilities; avoid duplicating dap4.core.dmr.{Escape,Util}
-
-
Field Summary
Fields Modifier and Type Field Description static int
DEFAULTFLAGS
static int
FLAG_ELIDETEXT
static int
FLAG_ESCAPE
static int
FLAG_NOCR
static int
FLAG_NONE
static int
FLAG_TRACE
static int
FLAG_TRIMTEXT
static int
MAXTEXT
-
Constructor Summary
Constructors Constructor Description ParseUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static List<String>
collectValues(String text)
Split a... into its component strings.static boolean
isLegalEnumConstName(String name)
static boolean
namechar1(char c)
static boolean
namecharn(char c)
-
-
-
Field Detail
-
MAXTEXT
public static final int MAXTEXT
- See Also:
- Constant Field Values
-
FLAG_NONE
public static final int FLAG_NONE
- See Also:
- Constant Field Values
-
FLAG_ESCAPE
public static final int FLAG_ESCAPE
- See Also:
- Constant Field Values
-
FLAG_NOCR
public static final int FLAG_NOCR
- See Also:
- Constant Field Values
-
FLAG_ELIDETEXT
public static final int FLAG_ELIDETEXT
- See Also:
- Constant Field Values
-
FLAG_TRIMTEXT
public static final int FLAG_TRIMTEXT
- See Also:
- Constant Field Values
-
FLAG_TRACE
public static final int FLAG_TRACE
- See Also:
- Constant Field Values
-
DEFAULTFLAGS
public static final int DEFAULTFLAGS
- See Also:
- Constant Field Values
-
-
Method Detail
-
namechar1
public static boolean namechar1(char c)
-
namecharn
public static boolean namecharn(char c)
-
collectValues
public static List<String> collectValues(String text) throws ParseException
Split a... into its component strings. Generally, type checking is not performed. String quotes are obeyed and backslash escapes are removed.- Throws:
ParseException
-
isLegalEnumConstName
public static boolean isLegalEnumConstName(String name)
-
-