@Test public void interpretDecimalLessThan() { assertTrue(WorkflowConditionInterpreter.interpret("485.0 > 50")); }
public static boolean interpret(final String input) throws IllegalArgumentException { final String s = replaceDefaults(input); final WorkflowConditionLexer l = new WorkflowConditionLexer(CharStreams.fromString(s)); l.removeErrorListeners(); final ANTLRErrorListener listener = new BaseErrorListener() { @Override public void syntaxError(Recognizer<?, ?> recognizer, Object offendingSymbol, int line, int charPositionInLine, String msg, RecognitionException e) throws ParseCancellationException { throw new IllegalArgumentException("line " + line + ":" + charPositionInLine + " " + msg); } }; final WorkflowConditionParser p = new WorkflowConditionParser(new CommonTokenStream(l)); p.removeErrorListeners(); p.addErrorListener(listener); ParseTree tree = p.booleanExpression(); return new WorkflowConditionBooleanInterpreter().visit(tree); }
WorkflowConditionInterpreter { public static boolean interpret(final String input) throws IllegalArgumentException { final String s = replaceDefaults(input); final WorkflowConditionLexer l = new WorkflowConditionLexer(CharStreams.fromString(s)); l.removeErrorListeners(); final ANTLRErrorListener listener = new BaseErrorListener() { @Override public void syntaxError(Recognizer<?, ?> recognizer, Object offendingSymbol, int line, int charPositionInLine, String msg, RecognitionException e) throws ParseCancellationException { throw new IllegalArgumentException("line " + line + ":" + charPositionInLine + " " + msg); } }; final WorkflowConditionParser p = new WorkflowConditionParser(new CommonTokenStream(l)); p.removeErrorListeners(); p.addErrorListener(listener); ParseTree tree = p.booleanExpression(); return new WorkflowConditionBooleanInterpreter().visit(tree); } }
WorkflowConditionInterpreter { public static boolean interpret(final String input) throws IllegalArgumentException { final String s = replaceDefaults(input); final WorkflowConditionLexer l = new WorkflowConditionLexer(CharStreams.fromString(s)); l.removeErrorListeners(); final ANTLRErrorListener listener = new BaseErrorListener() { @Override public void syntaxError(Recognizer<?, ?> recognizer, Object offendingSymbol, int line, int charPositionInLine, String msg, RecognitionException e) throws ParseCancellationException { throw new IllegalArgumentException("line " + line + ":" + charPositionInLine + " " + msg); } }; final WorkflowConditionParser p = new WorkflowConditionParser(new CommonTokenStream(l)); p.removeErrorListeners(); p.addErrorListener(listener); ParseTree tree = p.booleanExpression(); return new WorkflowConditionBooleanInterpreter().visit(tree); } private  WorkflowConditionInterpreter(); }
WorkflowConditionInterpreter { public static boolean interpret(final String input) throws IllegalArgumentException { final String s = replaceDefaults(input); final WorkflowConditionLexer l = new WorkflowConditionLexer(CharStreams.fromString(s)); l.removeErrorListeners(); final ANTLRErrorListener listener = new BaseErrorListener() { @Override public void syntaxError(Recognizer<?, ?> recognizer, Object offendingSymbol, int line, int charPositionInLine, String msg, RecognitionException e) throws ParseCancellationException { throw new IllegalArgumentException("line " + line + ":" + charPositionInLine + " " + msg); } }; final WorkflowConditionParser p = new WorkflowConditionParser(new CommonTokenStream(l)); p.removeErrorListeners(); p.addErrorListener(listener); ParseTree tree = p.booleanExpression(); return new WorkflowConditionBooleanInterpreter().visit(tree); } private  WorkflowConditionInterpreter(); static String replaceVariables(String source, Function<String, String> systemPropertyGetter,
          Map<String, String> properties, boolean quoteStrings); static boolean interpret(final String input); }
WorkflowConditionInterpreter { public static boolean interpret(final String input) throws IllegalArgumentException { final String s = replaceDefaults(input); final WorkflowConditionLexer l = new WorkflowConditionLexer(CharStreams.fromString(s)); l.removeErrorListeners(); final ANTLRErrorListener listener = new BaseErrorListener() { @Override public void syntaxError(Recognizer<?, ?> recognizer, Object offendingSymbol, int line, int charPositionInLine, String msg, RecognitionException e) throws ParseCancellationException { throw new IllegalArgumentException("line " + line + ":" + charPositionInLine + " " + msg); } }; final WorkflowConditionParser p = new WorkflowConditionParser(new CommonTokenStream(l)); p.removeErrorListeners(); p.addErrorListener(listener); ParseTree tree = p.booleanExpression(); return new WorkflowConditionBooleanInterpreter().visit(tree); } private  WorkflowConditionInterpreter(); static String replaceVariables(String source, Function<String, String> systemPropertyGetter,
          Map<String, String> properties, boolean quoteStrings); static boolean interpret(final String input);  }