polyglot.ast
Interface Unary
- All Superinterfaces:
- java.lang.Cloneable, Copy, Expr, JL, Node, NodeOps, Prefix, Receiver, Term, Typed
- All Known Implementing Classes:
- Unary_c
public interface Unary
- extends Expr
A Unary
represents a Java unary expression, an
immutable pair of an expression and an an operator.
Nested Class Summary |
static class |
Unary.Operator
Unary expression operator. |
Methods inherited from interface polyglot.ast.Node |
childExpectedType, del, del, dump, ext, ext, ext, ext, position, position, visit, visitChild, visitEdge, visitList |
Methods inherited from interface polyglot.ast.JL |
init, node |
Methods inherited from interface polyglot.ast.NodeOps |
addDecls, addMembers, addMembersEnter, buildTypes, buildTypesEnter, disambiguate, disambiguateEnter, enterScope, enterScope, exceptionCheck, exceptionCheckEnter, prettyPrint, throwTypes, translate, typeCheck, typeCheckEnter, visitChildren |
Methods inherited from interface polyglot.util.Copy |
copy |
Methods inherited from interface polyglot.ast.Typed |
type |
BIT_NOT
static final Unary.Operator BIT_NOT
NEG
static final Unary.Operator NEG
POST_INC
static final Unary.Operator POST_INC
POST_DEC
static final Unary.Operator POST_DEC
PRE_INC
static final Unary.Operator PRE_INC
PRE_DEC
static final Unary.Operator PRE_DEC
POS
static final Unary.Operator POS
NOT
static final Unary.Operator NOT
expr
Expr expr()
- The sub-expression on that to apply the operator.
expr
Unary expr(Expr e)
- Set the sub-expression on that to apply the operator.
operator
Unary.Operator operator()
- The operator to apply on the sub-expression.
operator
Unary operator(Unary.Operator o)
- Set the operator to apply on the sub-expression.