Class BinaryExpression

    • Constructor Detail

    • Method Detail

      • getLeftExpression

        public Expression getLeftExpression()
      • setLeftExpression

        public void setLeftExpression​(Expression leftExpression)
      • setRightExpression

        public void setRightExpression​(Expression rightExpression)
      • getOperation

        public Token getOperation()
      • getRightExpression

        public Expression getRightExpression()
      • newAssignmentExpression

        public static BinaryExpression newAssignmentExpression​(Variable variable,
                                                               Expression rhs)
        Creates an assignment expression in which the specified expression is written into the specified variable name.
      • newInitializationExpression

        public static BinaryExpression newInitializationExpression​(String variable,
                                                                   ClassNode type,
                                                                   Expression rhs)
        Creates variable initialization expression in which the specified expression is written into the specified variable name.