Class BinaryExpression

    • Constructor Detail

    • Method Detail

      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • getLeftExpression

        public Expression getLeftExpression()
      • setLeftExpression

        public void setLeftExpression​(Expression leftExpression)
      • setRightExpression

        public void setRightExpression​(Expression rightExpression)
      • getOperation

        public Token getOperation()
      • getRightExpression

        public Expression getRightExpression()
      • getText

        public java.lang.String getText()
        Overrides:
        getText in class ASTNode
      • 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​(java.lang.String variable,
                                                                   ClassNode type,
                                                                   Expression rhs)
        Creates variable initialization expression in which the specified expression is written into the specified variable name.