Package codeanalysis.binding
Class BoundBinaryExpression
java.lang.Object
codeanalysis.binding.BoundNode
codeanalysis.binding.BoundExpression
codeanalysis.binding.BoundBinaryExpression
Represents a bound binary expression in the code analysis process.
- Version:
- 1.0
- Author:
- Siyabend Urun
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionBoundBinaryExpression(BoundExpression left, BoundBinaryOperator operator, BoundExpression right) Constructs a new instance of the BoundBinaryExpression class. -
Method Summary
Modifier and TypeMethodDescriptionClass<?>Gets the class type of the bound expression.getLeft()Gets the left operand bound expression.Gets the bound binary operator of the expression.getRight()Gets the right operand bound expression.getType()Gets the type of the bound expression.voidsetLeft(BoundExpression left) Sets the left operand bound expression.voidsetRight(BoundExpression right) Sets the right operand bound expression.
-
Constructor Details
-
BoundBinaryExpression
public BoundBinaryExpression(BoundExpression left, BoundBinaryOperator operator, BoundExpression right) Constructs a new instance of the BoundBinaryExpression class.- Parameters:
left- The left operand bound expression.operator- The bound binary operator type.right- The right operand bound expression.
-
-
Method Details
-
getType
Gets the type of the bound expression. -
getClassType
Gets the class type of the bound expression.- Specified by:
getClassTypein classBoundExpression- Returns:
- The class type of the bound expression.
-
getOperator
Gets the bound binary operator of the expression.- Returns:
- The bound binary operator.
-
getLeft
Gets the left operand bound expression.- Returns:
- The left operand bound expression.
-
setLeft
Sets the left operand bound expression.- Parameters:
left- The left operand bound expression to set.
-
getRight
Gets the right operand bound expression.- Returns:
- The right operand bound expression.
-
setRight
Sets the right operand bound expression.- Parameters:
right- The right operand bound expression to set.
-