Package codeanalysis.binding
Class BoundUnaryOperator
java.lang.Object
codeanalysis.binding.BoundUnaryOperator
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 Summary
Modifier and TypeMethodDescriptionstatic BoundUnaryOperatorbind(SyntaxType syntaxType, Class<?> operandType) Binds a unary operator based on the syntax type and operand type.Class<?>Gets the type of the operand.Class<?>Gets the result type of the operation.Gets the syntax type of the operator.getType()Gets the operator type.
-
Method Details
-
bind
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
Gets the syntax type of the operator.- Returns:
- The syntax type.
-
getType
Gets the operator type.- Returns:
- The operator type.
-
getOperandType
Gets the type of the operand.- Returns:
- The operand type.
-
getResultType
Gets the result type of the operation.- Returns:
- The result type.
-