public abstract class TernaryOperExpression extends OperExpression
Modifier and Type | Field and Description |
---|---|
private Expression |
operand1 |
private Expression |
operand2 |
private Expression |
operand3 |
Constructor and Description |
---|
TernaryOperExpression(Rule rule,
int oper,
Type type,
ParseNode token,
Expression operand1,
Expression operand2,
Expression operand3) |
Modifier and Type | Method and Description |
---|---|
void |
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
|
Expression |
getOperand(int index)
return the operand with the given index or null if the index is out of range
|
convertOper, writeTo
getPos, getType, interpret, typeCheck
compile, compileBooleanConversion, compileBox, compileNumericConversion, compileObjectConversion, compilePrimitiveConversion, compileStringConversion, compileTypeConversion, compileUnbox, getBindings, getTypeGroup, toString
private Expression operand1
private Expression operand2
private Expression operand3
public TernaryOperExpression(Rule rule, int oper, Type type, ParseNode token, Expression operand1, Expression operand2, Expression operand3)
public void bind() throws TypeException
bind
in class Expression
TypeException
public Expression getOperand(int index)
getOperand
in class OperExpression
index
-