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.
 
Field Summary
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
           
 
Method Summary
 Expr expr()
          The sub-expression on that to apply the operator.
 Unary expr(Expr e)
          Set the sub-expression on that 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.
 
Methods inherited from interface polyglot.ast.Expr
constantValue, isConstant, precedence, printSubExpr, printSubExpr, type
 
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
 
Methods inherited from interface polyglot.ast.Term
acceptCFG, entry, exceptions, exceptions, reachable, reachable
 

Field Detail

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
Method Detail

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.