while (elements.hasNext()) { JsonNode element = elements.next(); if (filter.getComparator().accept(this, element).equals(BooleanNode.TRUE)) { JsonNode projectedElement = filter.getRhsExpr().accept(this, element); if (projectedElement != null) {
/** * Generates the code for a new JmesPathFilter. * * @param filter JmesPath filter type * @param aVoid void * @return String that represents a call to * the new filter expression * @throws InvalidTypeException */ @Override public String visit(final JmesPathFilter filter, final Void aVoid) throws InvalidTypeException { return "new JmesPathFilter( " + filter.getLhsExpr().accept(this, aVoid) + ", " + filter.getRhsExpr().accept(this, aVoid) + ", " + filter.getComparator().accept(this, aVoid) + ")"; }
while (elements.hasNext()) { JsonNode element = elements.next(); if (filter.getComparator().accept(this, element).equals(BooleanNode.TRUE)) { JsonNode projectedElement = filter.getRhsExpr().accept(this, element); if (projectedElement != null) {
while (elements.hasNext()) { JsonNode element = elements.next(); if (filter.getComparator().accept(this, element).equals(BooleanNode.TRUE)) { JsonNode projectedElement = filter.getRhsExpr().accept(this, element); if (projectedElement != null) {
/** * Generates the code for a new JmesPathFilter. * * @param filter JmesPath filter type * @param aVoid void * @return String that represents a call to * the new filter expression * @throws InvalidTypeException */ @Override public String visit(final JmesPathFilter filter, final Void aVoid) throws InvalidTypeException { return "new JmesPathFilter( " + filter.getLhsExpr().accept(this, aVoid) + ", " + filter.getRhsExpr().accept(this, aVoid) + ", " + filter.getComparator().accept(this, aVoid) + ")"; }