@Test public void testToNumberFunctionReturnsNumberType() { assertEquals(ResultType.WHOLE_NUMBER, Query.getResultType("${header.size:toNumber()}")); }
public static ResultType getResultType(final String value) throws AttributeExpressionLanguageParsingException { return Query.compile(value).getResultType(); }
Query { public static ResultType getResultType(final String value) throws AttributeExpressionLanguageParsingException { return Query.compile(value).getResultType(); } }
Query { public static ResultType getResultType(final String value) throws AttributeExpressionLanguageParsingException { return Query.compile(value).getResultType(); } private  Query(final String query, final Tree tree, final Evaluator<?> evaluator); }
Query { public static ResultType getResultType(final String value) throws AttributeExpressionLanguageParsingException { return Query.compile(value).getResultType(); } private  Query(final String query, final Tree tree, final Evaluator<?> evaluator); static boolean isValidExpression(final String value); static ResultType getResultType(final String value); static List<ResultType> extractResultTypes(final String value); static List<String> extractExpressions(final String value); static List<Range> extractExpressionRanges(final String value); static void validateExpression(final String value, final boolean allowSurroundingCharacters); static String unescape(final String value); static Query fromTree(final Tree tree, final String text); static Tree compileTree(final String query); static PreparedQuery prepare(final String query); static Query compile(final String query); ResultType getResultType(); @Override String toString(); }
Query { public static ResultType getResultType(final String value) throws AttributeExpressionLanguageParsingException { return Query.compile(value).getResultType(); } private  Query(final String query, final Tree tree, final Evaluator<?> evaluator); static boolean isValidExpression(final String value); static ResultType getResultType(final String value); static List<ResultType> extractResultTypes(final String value); static List<String> extractExpressions(final String value); static List<Range> extractExpressionRanges(final String value); static void validateExpression(final String value, final boolean allowSurroundingCharacters); static String unescape(final String value); static Query fromTree(final Tree tree, final String text); static Tree compileTree(final String query); static PreparedQuery prepare(final String query); static Query compile(final String query); ResultType getResultType(); @Override String toString();  }