public static ArithmeticExpression expr(final Statement lhs) { return ArithmeticExpressionBuilder.create(lhs); } }
public static ArithmeticExpression create(Object lhs, ArithmeticOperator operator, Object rhs) { return new ArithmeticExpressionBuilder(lhs, rhs, operator); }
@Override public MetaClass getType() { Class<?> lhsType = null; if (lhs != null) { lhsType = lhs.getType().asUnboxed().asClass(); } Class<?> rhsType = null; if (rhs != null) { rhsType = rhs.getType().asUnboxed().asClass(); } return MetaClassFactory.get(promote(lhsType, rhsType)); }
@Override public MetaClass getType() { Class<?> lhsType = null; if (lhs != null) { lhsType = lhs.getType().asUnboxed().asClass(); } Class<?> rhsType = null; if (rhs != null) { rhsType = rhs.getType().asUnboxed().asClass(); } return MetaClassFactory.get(promote(lhsType, rhsType)); }
public static ArithmeticExpression expr(final Statement lhs) { return ArithmeticExpressionBuilder.create(lhs); } }
public static ArithmeticExpression create(Object lhs, ArithmeticOperator operator, Object rhs) { return new ArithmeticExpressionBuilder(lhs, rhs, operator); }
public static ArithmeticExpression expr(final Object lhs, final ArithmeticOperator operator, final Object rhs) { return ArithmeticExpressionBuilder.create(lhs, operator, rhs); }
public static ArithmeticExpression create(Statement lhs) { return new ArithmeticExpressionBuilder(lhs, null, null); }
public static ArithmeticExpression expr(final ArithmeticOperator operator, final Object rhs) { return ArithmeticExpressionBuilder.create(operator, rhs); }
public static ArithmeticExpression create(ArithmeticOperator operator, Object rhs) { return new ArithmeticExpressionBuilder(rhs, operator); }
public static ArithmeticExpression expr(final Object lhs, final ArithmeticOperator operator, final Object rhs) { return ArithmeticExpressionBuilder.create(lhs, operator, rhs); }
public static ArithmeticExpression create(ArithmeticOperator operator, Object rhs) { return new ArithmeticExpressionBuilder(rhs, operator); }
public static ArithmeticExpression expr(final ArithmeticOperator operator, final Object rhs) { return ArithmeticExpressionBuilder.create(operator, rhs); }
public static ArithmeticExpression create(Statement lhs) { return new ArithmeticExpressionBuilder(lhs, null, null); }
private static ArithmeticExpression subtractFromCurrentTime(final Statement toSubtract) { return ArithmeticExpressionBuilder.create(currentTime(), ArithmeticOperator.Subtraction, toSubtract); }
return ArithmeticExpressionBuilder.create(ArithmeticOperator.Subtraction, generateExpression(traverser, dotNodeResolver, containingMethod));