Class BoundBinaryOperator

java.lang.Object
codeanalysis.binding.BoundBinaryOperator

public class BoundBinaryOperator extends Object
The BoundBinaryOperator class represents a binary operator used in binding expressions. It encapsulates information about the syntax type, operator type, left operand type, right operand type and result type of the operator. The class provides methods to bind a binary operator based on the syntax type and operands type, and to retrieve the properties of an operator.
Version:
1.0
Author:
Siyabend Urun
See Also:
  • Method Details

    • bind

      public static BoundBinaryOperator bind(SyntaxType syntaxType, Class<?> leftType, Class<?> rightType)
      Binds a binary operator based on the syntax type, left type, and right type.
      Parameters:
      syntaxType - The syntax type of the operator.
      leftType - The left operand type.
      rightType - The right operand type.
      Returns:
      The bound binary operator, or null if no matching operator is found.
    • getSyntaxType

      public SyntaxType getSyntaxType()
      Gets the syntax type associated with the operator.
      Returns:
      The syntax type.
    • getType

      public BoundBinaryOperatorType getType()
      Gets the operator type.
      Returns:
      The operator type.
    • getLeftType

      public Class<?> getLeftType()
      Gets the left operand type.
      Returns:
      The left operand type.
    • getRightType

      public Class<?> getRightType()
      Gets the right operand type.
      Returns:
      The right operand type.
    • getResultType

      public Class<?> getResultType()
      Gets the result type of the operation.
      Returns:
      The result type.