org.inxar.jenesis
Interface Unary

All Superinterfaces:
Codeable, Expression

public interface Unary
extends Expression

Expression subinterface for expressions which have a single operand.


Field Summary
static int AD
          Unary function type for arithmetic ante-decrement: (--i).
static int AI
          Unary function type for arithmetic ante-increment: (++i).
static int BITWISE_NOT
          Unary function type for bitwise complement: (~1).
static int GROUP
          Unary function type for a group of parentheses: (expr).
static int NEG
          Unary function type for arithmetic sign complement: (-1).
static int NOT
          Unary function type for a logical complement: (!true).
static int PD
          Unary function type for arithmetic post-decrement: (i--).
static int PI
          Unary function type for arithmetic post-increment: (i++).
static int POS
          Unary function type for arithmetic sign identity: (+1).
 
Method Summary
 Expression getValue()
          Getter method for the operand.
 void setValue(Expression e)
          Setter method for the operand.
 int type()
          Returns the type of this unary function as one of the constants in this interface.
 
Methods inherited from interface org.inxar.jenesis.Expression
getType
 
Methods inherited from interface org.inxar.jenesis.Codeable
getComment, setComment, toCode, vm
 

Field Detail

GROUP

public static final int GROUP
Unary function type for a group of parentheses: (expr).

NOT

public static final int NOT
Unary function type for a logical complement: (!true).

BITWISE_NOT

public static final int BITWISE_NOT
Unary function type for bitwise complement: (~1).

NEG

public static final int NEG
Unary function type for arithmetic sign complement: (-1).

POS

public static final int POS
Unary function type for arithmetic sign identity: (+1).

AI

public static final int AI
Unary function type for arithmetic ante-increment: (++i).

PI

public static final int PI
Unary function type for arithmetic post-increment: (i++).

AD

public static final int AD
Unary function type for arithmetic ante-decrement: (--i).

PD

public static final int PD
Unary function type for arithmetic post-decrement: (i--).
Method Detail

type

public int type()
Returns the type of this unary function as one of the constants in this interface.

setValue

public void setValue(Expression e)
Setter method for the operand.

getValue

public Expression getValue()
Getter method for the operand.