Code example for SimpleTypeConverter

0
            return false; 
        } else if (value instanceof Boolean) {
            return (Boolean) value;
        } else { 
            try { 
                return (Boolean) new SimpleTypeConverter().convertIfNecessary(value, Boolean.class);
            } catch (TypeMismatchException e) {
                throw new PipelineException( 
                        "Failed to evaluating expression for JexlCondition into a boolean value: \"" 
                        + getEscapedExpression(expressionString) + "\"", e);
            } 
        } 
    } 
 
    @Override 
    public String toString() {
        return "JexlCondition[" + getEscapedExpression(expressionString) + "]";
    } 
 
    private String getEscapedExpression(String expr) {
Contextual code suggestions in your IDE  Get Codota for Java