Class UnaryOperatorExpression

    • Constructor Detail

      • UnaryOperatorExpression

        public UnaryOperatorExpression​(ParserToken token,
                                       Expression value,
                                       boolean isPrefix)
        Instantiates a new Prefix operator expression.
        Parameters:
        token - the token
        value - the value
        isPrefix - the is prefix
    • Method Detail

      • getOperator

        public String getOperator()
        Gets operator.
        Returns:
        the operator
      • getValue

        public Expression getValue()
        Gets the Expression representing the value of the operator.
        Returns:
        the value
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • isPrefix

        public boolean isPrefix()
        Is prefix boolean.
        Returns:
        the boolean