Class BoundUnaryOperator

java.lang.Object
codeanalysis.binding.BoundUnaryOperator

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

    • bind

      public static BoundUnaryOperator bind(SyntaxType syntaxType, Class<?> operandType)
      Binds a unary operator based on the syntax type and operand type.
      Parameters:
      syntaxType - The syntax type of the operator.
      operandType - The type of the operand.
      Returns:
      The BoundUnaryOperator instance if found, or null if no matching operator is found.
    • getSyntaxType

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

      public BoundUnaryOperatorType getType()
      Gets the operator type.
      Returns:
      The operator type.
    • getOperandType

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

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