/** * Deep copy of object * @return Deep copy of object */ public Object clone() { IsDistinctCriteria criteriaCopy = new IsDistinctCriteria(); criteriaCopy.setNegated(isNegated()); criteriaCopy.setLeftRowValue(this.getLeftRowValue().clone()); criteriaCopy.setRightRowValue(this.getRightRowValue().clone()); return criteriaCopy; }
/** * Deep copy of object * @return Deep copy of object */ public Object clone() { IsDistinctCriteria criteriaCopy = new IsDistinctCriteria(); criteriaCopy.setNegated(isNegated()); criteriaCopy.setLeftRowValue((LanguageObject)this.leftRowValue.clone()); criteriaCopy.setRightRowValue((LanguageObject)this.rightRowValue.clone()); return criteriaCopy; }
@Override public void visit(IsDistinctCriteria isDistinctCriteria) { if (isDistinctCriteria.getLeftRowValue() instanceof GroupSymbol || isDistinctCriteria.getRightRowValue() instanceof GroupSymbol) { evaluationNotPossible(EvaluationLevel.PROCESSING); } }
org.teiid.language.IsDistinct translate(IsDistinctCriteria criteria) { return new IsDistinct(translate((Expression) criteria.getLeftRowValue()), translate((Expression)criteria.getRightRowValue()), criteria.isNegated()); }
@Override public void visit(IsDistinctCriteria obj) { obj.setLeftRowValue(resolveAsGroup(obj.getLeftRowValue())); obj.setRightRowValue(resolveAsGroup(obj.getRightRowValue())); super.visit(obj); }
@Override public Expression getLeftExpression() { return (Expression) obj.getLeftRowValue(); }
/** * Compares this criteria to another object for equality * @param obj Other object * @return True if objects are equal */ public boolean equals(Object obj) { if(this == obj) { return true; } if(! (obj instanceof IsDistinctCriteria)) { return false; } IsDistinctCriteria other = (IsDistinctCriteria) obj; if (isNegated() ^ other.isNegated()) { return false; } return EquivalenceUtil.areEqual(leftRowValue, other.leftRowValue) && EquivalenceUtil.areEqual(rightRowValue, other.rightRowValue); }
@Override public void setRightExpression(Expression ex) { obj.setRightRowValue(ex); }
@Override public void setLeftExpression(Expression ex) { obj.setLeftRowValue(ex); }
@Override public Expression getRightExpression() { return (Expression) obj.getRightRowValue(); }
/** * Deep copy of object * @return Deep copy of object */ public Object clone() { IsDistinctCriteria criteriaCopy = new IsDistinctCriteria(); criteriaCopy.setNegated(isNegated()); criteriaCopy.setLeftRowValue((LanguageObject)this.leftRowValue.clone()); criteriaCopy.setRightRowValue((LanguageObject)this.rightRowValue.clone()); return criteriaCopy; }
org.teiid.language.IsDistinct translate(IsDistinctCriteria criteria) { return new IsDistinct(translate((Expression) criteria.getLeftRowValue()), translate((Expression)criteria.getRightRowValue()), criteria.isNegated()); }
@Override public void visit(IsDistinctCriteria isDistinctCriteria) { if (isDistinctCriteria.getLeftRowValue() instanceof GroupSymbol || isDistinctCriteria.getRightRowValue() instanceof GroupSymbol) { evaluationNotPossible(EvaluationLevel.PROCESSING); } }
@Override public void visit(IsDistinctCriteria obj) { obj.setLeftRowValue(resolveAsGroup(obj.getLeftRowValue())); obj.setRightRowValue(resolveAsGroup(obj.getRightRowValue())); super.visit(obj); }
@Override public Expression getLeftExpression() { return (Expression) obj.getLeftRowValue(); }
/** * Compares this criteria to another object for equality * @param obj Other object * @return True if objects are equal */ public boolean equals(Object obj) { if(this == obj) { return true; } if(! (obj instanceof IsDistinctCriteria)) { return false; } IsDistinctCriteria other = (IsDistinctCriteria) obj; if (isNegated() ^ other.isNegated()) { return false; } return EquivalenceUtil.areEqual(leftRowValue, other.leftRowValue) && EquivalenceUtil.areEqual(rightRowValue, other.rightRowValue); }
@Override public void setRightExpression(Expression ex) { obj.setRightRowValue(ex); }
@Override public void setLeftExpression(Expression ex) { obj.setLeftRowValue(ex); }
@Override public Expression getRightExpression() { return (Expression) obj.getRightRowValue(); }
final public IsDistinctCriteria isDistinct(ParseInfo info, Expression expression) throws ParseException { Expression value = null; Token operator = null; boolean not = false; jj_consume_token(IS); switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case NOT: jj_consume_token(NOT); not = true; break; default: jj_la1[206] = jj_gen; ; } jj_consume_token(DISTINCT); jj_consume_token(FROM); value = commonValueExpression(info); IsDistinctCriteria idc = new IsDistinctCriteria(); idc.setLeftRowValue(expression); idc.setRightRowValue(value); idc.setNegated(not); {if (true) return idc;} throw new Error("Missing return statement in function"); }