public class ParserUtils extends Object
| Constructor and Description |
|---|
ParserUtils() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
canBeLong(Double v) |
static ExpAstNode |
createNopNode(String name) |
static ExpAstNode |
createNopNode(String name,
AstNode node) |
static String |
getValueFromStringNode(AstNode node) |
static boolean |
isAst(String template) |
static boolean |
isInt(String value) |
static boolean |
isInteger(Double value) |
static boolean |
isNumber(Object value) |
static boolean |
isStrongNumber(Object obj) |
static boolean |
isStrongString(Object obj) |
static Optional<Double> |
tryDouble(Object value) |
static Optional<Integer> |
tryInt(String value) |
static Optional<Integer> |
tryIntNumber(Object value) |
static Optional<Long> |
tryLongNumber(Object value) |
public static ExpAstNode createNopNode(String name)
public static ExpAstNode createNopNode(String name, AstNode node)
public static boolean isStrongString(Object obj)
public static boolean isStrongNumber(Object obj)
public static boolean isNumber(Object value)
public static boolean isInt(String value)
public static boolean isInteger(Double value)
public static boolean canBeLong(Double v)
public static boolean isAst(String template)
Copyright © 2017. All rights reserved.