Class AdditiveExpression

    • Constructor Detail

      • AdditiveExpression

        public AdditiveExpression()
    • Method Detail

      • isAdditive

        public boolean isAdditive()
        Returns whether or not the operation is addition or substraction.
        Specified by:
        isAdditive in interface IAdditiveExpression
        Returns:
        True if operation is addition.
      • isAssignment

        public boolean isAssignment()
      • evaluate

        public java.lang.Object evaluate()
        Evaluates this additive expression. Either performs numeric addition/subtraction or String concatination.
        Specified by:
        evaluate in interface IExpression
        Overrides:
        evaluate in class Expression
      • evaluate

        public static java.lang.Object evaluate​(IType type,
                                                java.lang.Object lhsValue,
                                                java.lang.Object rhsValue,
                                                IType lhsType,
                                                IType rhsType,
                                                boolean bAdditive,
                                                boolean bNullSafe,
                                                boolean bNumericType,
                                                java.lang.Object ctx,
                                                int startLhs,
                                                int endLhs,
                                                int startRhs,
                                                int endRhs)
      • evaluate

        public static java.lang.Object evaluate​(IType type,
                                                java.lang.Object lhsValue,
                                                java.lang.Object rhsValue,
                                                IType lhsType,
                                                IType rhsType,
                                                boolean bAdditive,
                                                boolean bNullSafe,
                                                boolean bNumericType)