Class BinaryOperExpression
java.lang.Object
org.jboss.byteman.rule.RuleElement
org.jboss.byteman.rule.expression.Expression
org.jboss.byteman.rule.expression.OperExpression
org.jboss.byteman.rule.expression.BinaryOperExpression
- Direct Known Subclasses:
ArithmeticExpression
,AssignExpression
,BitExpression
,BooleanExpression
,PlusExpression
,ShiftExpression
,StringPlusExpression
binary operators includes arithmetic and comparison operators
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionBinaryOperExpression
(Rule rule, int oper, Type type, ParseNode token, Expression operand1, Expression operand2) -
Method Summary
Modifier and TypeMethodDescriptionvoid
bind()
verify that variables mentioned in this expression are actually available in the supplied bindings list and infer/validate the type of this expression or its subexpressions where possiblegetOperand
(int index) return the operand with the given index or null if the index is out of rangeMethods inherited from class org.jboss.byteman.rule.expression.OperExpression
convertOper, writeTo
Methods inherited from class org.jboss.byteman.rule.expression.Expression
getPos, getType, interpret, typeCheck
Methods inherited from class org.jboss.byteman.rule.RuleElement
compile, getBindings, getTypeGroup, rebox, toString
-
Field Details
-
operand1
-
operand2
-
-
Constructor Details
-
BinaryOperExpression
public BinaryOperExpression(Rule rule, int oper, Type type, ParseNode token, Expression operand1, Expression operand2)
-
-
Method Details
-
bind
verify that variables mentioned in this expression are actually available in the supplied bindings list and infer/validate the type of this expression or its subexpressions where possible- Specified by:
bind
in classExpression
- Throws:
TypeException
- if any variable is missing or has the wrong type
-
getOperand
return the operand with the given index or null if the index is out of range- Specified by:
getOperand
in classOperExpression
- Parameters:
index
- the index- Returns:
- the operand with the given index
-