jltools.ast
Interface Unary

All Superinterfaces:
java.lang.Cloneable, Copy, Expr, Node, Prefix, Receiver, java.io.Serializable, 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.


Inner 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()
           
 Unary expr(Expr e)
           
 Unary.Operator operator()
           
 Unary operator(Unary.Operator o)
           
 
Methods inherited from interface jltools.ast.Expr
precedence, type
 
Methods inherited from interface jltools.ast.Node
buildTypes_, buildTypesOverride_, copy, disambiguate_, disambiguateOverride_, disambiguateTypes_, disambiguateTypesOverride_, dump, enterScope, exceptionCheck_, exceptionCheckOverride_, ext, ext, foldConstants_, foldConstantsOverride_, leaveScope, position, position, reconstructTypes_, translate_, typeCheck_, typeCheckOverride_, visit, visitChildren
 
Methods inherited from interface jltools.ast.Typed
type
 

Field Detail

BIT_NOT

public static final Unary.Operator BIT_NOT

NEG

public static final Unary.Operator NEG

POST_INC

public static final Unary.Operator POST_INC

POST_DEC

public static final Unary.Operator POST_DEC

PRE_INC

public static final Unary.Operator PRE_INC

PRE_DEC

public static final Unary.Operator PRE_DEC

POS

public static final Unary.Operator POS

NOT

public static final Unary.Operator NOT
Method Detail

expr

public Expr expr()

expr

public Unary expr(Expr e)

operator

public Unary.Operator operator()

operator

public Unary operator(Unary.Operator o)