/** * @param clauses * - the query nodes to be or'ed */ public AnyQueryNode(List<QueryNode> clauses, CharSequence field, int minimumMatchingElements) { super(clauses); this.field = field; this.minimumMatchingmElements = minimumMatchingElements; if (clauses != null) { for (QueryNode clause : clauses) { if (clause instanceof FieldQueryNode) { if (clause instanceof QueryNodeImpl) { ((QueryNodeImpl) clause).toQueryStringIgnoreFields = true; } if (clause instanceof FieldableNode) { ((FieldableNode) clause).setField(field); } } } } }
/** * @param clauses * - the query nodes to be or'ed */ public AnyQueryNode(List<QueryNode> clauses, CharSequence field, int minimumMatchingElements) { super(clauses); this.field = field; this.minimumMatchingmElements = minimumMatchingElements; if (clauses != null) { for (QueryNode clause : clauses) { if (clause instanceof FieldQueryNode) { if (clause instanceof QueryNodeImpl) { ((QueryNodeImpl) clause).toQueryStringIgnoreFields = true; } if (clause instanceof FieldableNode) { ((FieldableNode) clause).setField(field); } } } } }
@Override public void setField(CharSequence fieldName) { List<QueryNode> children = getChildren(); if (children != null) { for (QueryNode child : children) { if (child instanceof FieldableNode) { ((FieldableNode) child).setField(fieldName); } } } }
@Override public void setField(CharSequence fieldName) { QueryNode child = getChild(); if (child instanceof FieldableNode) { ((FieldableNode) child).setField(fieldName); } }
@Override public void setField(CharSequence fieldName) { QueryNode child = getChild(); if (child instanceof FieldableNode) { ((FieldableNode) child).setField(fieldName); } }
@Override public void setField(CharSequence fieldName) { List<QueryNode> children = getChildren(); if (children != null) { for (QueryNode child : children) { if (child instanceof FieldableNode) { ((FieldableNode) child).setField(fieldName); } } } }
@Override public void setField(CharSequence fieldName) { QueryNode child = getChild(); if (child instanceof FieldableNode) { ((FieldableNode) child).setField(fieldName); } }
@Override public void setField(CharSequence fieldName) { QueryNode child = getChild(); if (child instanceof FieldableNode) { ((FieldableNode) child).setField(fieldName); } }
@Override public void setField(CharSequence fieldName) { List<QueryNode> children = getChildren(); if (children != null) { for (QueryNode child : getChildren()) { if (child instanceof FieldableNode) { ((FieldableNode) child).setField(fieldName); } } } }
@Override public void setField(CharSequence fieldName) { List<QueryNode> children = getChildren(); if (children != null) { for (QueryNode child : getChildren()) { if (child instanceof FieldableNode) { ((FieldableNode) child).setField(fieldName); } } } }
private void doSetField(final List<QueryNode> children, final CharSequence fieldName) { if (children != null) { for (final QueryNode child : children) { this.doSetField(child.getChildren(), fieldName); if (child instanceof FieldableNode) { ((FieldableNode) child).setField(fieldName); } else if (child instanceof TwigQueryNode) { ((TwigQueryNode) child).setField(fieldName); } } } }
private void doSetField(final List<QueryNode> children, final CharSequence fieldName) { if (children != null) { for (final QueryNode child : children) { this.doSetField(child.getChildren(), fieldName); if (child instanceof FieldableNode) { ((FieldableNode) child).setField(fieldName); } else if (child instanceof TwigQueryNode) { ((TwigQueryNode) child).setField(fieldName); } } } }