MinusExpression
, NotExpression
, TwiddleExpression
public abstract class UnaryOperExpression extends OperExpression
Constructor | Description |
---|---|
UnaryOperExpression(Rule rule,
int oper,
Type type,
ParseNode token,
Expression operand) |
Modifier and Type | Method | 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
|
getPos, getType, interpret, typeCheck
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
convertOper, writeTo
compile, getBindings, getTypeGroup, rebox, toString
public UnaryOperExpression(Rule rule, int oper, Type type, ParseNode token, Expression operand)
public void bind() throws TypeException
bind
in class Expression
TypeException
- if any variable is missing or has the wrong typepublic Expression getOperand(int index)
getOperand
in class OperExpression
index
- the operand indexCopyright © 2018. All rights reserved.