/** * Copy an expression. This makes a deep copy. * * @return the copy of the original expression */ public Expression copy() { return new CompareToIntegerConstant(operand.copy(), operator, comparand); }
/** * Copy an expression. This makes a deep copy. * * @return the copy of the original expression */ public Expression copy() { return new CompareToIntegerConstant(operand.copy(), operator, comparand); }
/** * Copy an expression. This makes a deep copy. * * @return the copy of the original expression * @param rebindings */ /*@NotNull*/ public Expression copy(RebindingMap rebindings) { CompareToIntegerConstant c2 = new CompareToIntegerConstant(getLhsExpression().copy(rebindings), operator, comparand); ExpressionTool.copyLocationInfo(this, c2); return c2; }
/** * Copy an expression. This makes a deep copy. * * @return the copy of the original expression * @param rebindings */ /*@NotNull*/ public Expression copy(RebindingMap rebindings) { CompareToIntegerConstant c2 = new CompareToIntegerConstant(getLhsExpression().copy(rebindings), operator, comparand); ExpressionTool.copyLocationInfo(this, c2); return c2; }
Literal.makeLiteral(Int64Value.makeIntegerValue(operand + 1), this)); Expression ct = SystemFunction.makeCall("count", getRetainedStaticContext(), ss); CompareToIntegerConstant ctic = new CompareToIntegerConstant(ct, op, operand); opt.trace("Rewrite count()~N as:", ctic); ExpressionTool.copyLocationInfo(this, ctic);
Literal.makeLiteral(Int64Value.makeIntegerValue(operand + 1), this)); Expression ct = SystemFunction.makeCall("count", getRetainedStaticContext(), ss); CompareToIntegerConstant ctic = new CompareToIntegerConstant(ct, op, operand); opt.trace("Rewrite count()~N as:", ctic); ExpressionTool.copyLocationInfo(this, ctic);
operand0.getCardinality() == StaticProperty.EXACTLY_ONE && th.isSubType(operand0.getItemType(th), BuiltInAtomicType.NUMERIC)) { return new CompareToIntegerConstant(operand0, operator, ((Int64Value)value1).longValue()); operand1.getCardinality() == StaticProperty.EXACTLY_ONE && th.isSubType(operand1.getItemType(th), BuiltInAtomicType.NUMERIC)) { return new CompareToIntegerConstant(operand1, Token.inverse(operator), ((Int64Value) value0).longValue());
operand0.getCardinality() == StaticProperty.EXACTLY_ONE && th.isSubType(operand0.getItemType(th), BuiltInAtomicType.NUMERIC)) { return new CompareToIntegerConstant(operand0, operator, ((Int64Value)value1).longValue()); operand1.getCardinality() == StaticProperty.EXACTLY_ONE && th.isSubType(operand1.getItemType(th), BuiltInAtomicType.NUMERIC)) { return new CompareToIntegerConstant(operand1, Token.inverse(operator), ((Int64Value) value0).longValue());
operand0.getCardinality() == StaticProperty.EXACTLY_ONE && th.isSubType(operand0.getItemType(th), BuiltInAtomicType.NUMERIC)) { return new CompareToIntegerConstant(operand0, operator, ((Int64Value)value1).longValue()); operand1.getCardinality() == StaticProperty.EXACTLY_ONE && th.isSubType(operand1.getItemType(th), BuiltInAtomicType.NUMERIC)) { return new CompareToIntegerConstant(operand1, Token.inverse(operator), ((Int64Value) value0).longValue());
getLhsExpression().getCardinality() == StaticProperty.EXACTLY_ONE && th.isSubType(getLhsExpression().getItemType(), NumericType.getInstance())) { return new CompareToIntegerConstant(getLhsExpression(), operator, ((Int64Value) value1).longValue()); getRhsExpression().getCardinality() == StaticProperty.EXACTLY_ONE && th.isSubType(getRhsExpression().getItemType(), NumericType.getInstance())) { return new CompareToIntegerConstant(getRhsExpression(), Token.inverse(operator), ((Int64Value) value0).longValue());
getLhsExpression().getCardinality() == StaticProperty.EXACTLY_ONE && th.isSubType(getLhsExpression().getItemType(), NumericType.getInstance())) { return new CompareToIntegerConstant(getLhsExpression(), operator, ((Int64Value) value1).longValue()); getRhsExpression().getCardinality() == StaticProperty.EXACTLY_ONE && th.isSubType(getRhsExpression().getItemType(), NumericType.getInstance())) { return new CompareToIntegerConstant(getRhsExpression(), Token.inverse(operator), ((Int64Value) value0).longValue());