public interface Unary extends Expr
Unary
represents a Java unary expression, an
immutable pair of an expression and an an operator.Modifier and Type | Interface and Description |
---|---|
static class |
Unary.Operator
Unary expression operator.
|
Term.Instance
Modifier and Type | Field and Description |
---|---|
static Unary.Operator |
BIT_NOT |
static Unary.Operator |
NEG |
static Unary.Operator |
NOT |
static Unary.Operator |
POS |
static Unary.Operator |
POST_DEC |
static Unary.Operator |
POST_INC |
static Unary.Operator |
PRE_DEC |
static Unary.Operator |
PRE_INC |
Modifier and Type | Method and Description |
---|---|
Expr |
expr()
The sub-expression on which to apply the operator.
|
Unary |
expr(Expr e)
Set the sub-expression on which to apply the operator.
|
Unary.Operator |
operator()
The operator to apply on the sub-expression.
|
Unary |
operator(Unary.Operator o)
Set the operator to apply on the sub-expression.
|
constantValue, constantValueSet, isConstant, precedence, printSubExpr, printSubExpr, type
del, del, dump, error, error, ext, ext, ext, ext, isDisambiguated, isTypeChecked, position, position, visit, visitEdge
addDecls, buildTypes, buildTypesEnter, checkConstants, childExpectedType, copy, copy, disambiguate, disambiguateEnter, disambiguateOverride, dump, dump, dump, dump, enterChildScope, enterScope, exceptionCheck, exceptionCheckEnter, extRewrite, extRewriteEnter, lang, prettyPrint, prettyPrint, prettyPrint, prettyPrint, prettyPrint, throwTypes, translate, typeCheck, typeCheckEnter, typeCheckOverride, visitChild, visitChildren, visitList
exceptions, exceptions, reachable, reachable
static final Unary.Operator BIT_NOT
static final Unary.Operator NEG
static final Unary.Operator POST_INC
static final Unary.Operator POST_DEC
static final Unary.Operator PRE_INC
static final Unary.Operator PRE_DEC
static final Unary.Operator POS
static final Unary.Operator NOT
Expr expr()
Unary.Operator operator()
Unary operator(Unary.Operator o)