public class Eval extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Eval.ArgType<T> |
static class |
Eval.RefStr |
| Constructor and Description |
|---|
Eval() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
asFalse(Object obj)
Any of the following is as false
- `false` of boolean
- `null` of Object
- `NaN` or abs in `0.0000001` of Number as double
- `empty` of String, Array, Collection
|
static <T> @NotNull List<T> |
parseArgs(CharSequence line,
Eval.ArgType<T> type)
Parses command line by whitespace, supports quote blocks, escaping "one\" arg" and number parsing.
|
static ArrayList<String> |
split(CharSequence text,
char spt) |
static ArrayList<String> |
split(CharSequence text,
char spt,
char esc) |
public static boolean asFalse(Object obj)
Any of the following is as false - `false` of boolean - `null` of Object - `NaN` or abs in `0.0000001` of Number as double - `empty` of String, Array, Collection
obj - Object@NotNull public static <T> @NotNull List<T> parseArgs(CharSequence line, Eval.ArgType<T> type)
T - type of commandline - command linetype - type to parsepublic static ArrayList<String> split(CharSequence text, char spt)
public static ArrayList<String> split(CharSequence text, char spt, char esc)
Copyright © 2024. All rights reserved.