org.inxar.jenesis
Interface Binary

All Superinterfaces:
Codeable, Expression
All Known Subinterfaces:
Assign

public interface Binary
extends Expression

Expression subinterface for expressions which have left and right operands.


Field Summary
static int ADD
          Binary function type for arithmetic addition: (a + b).
static int BAND
          Binary function type for bitwise and: (a & b).
static int BOR
          Binary function type for bitwise or: (a | b).
static int CAT
          Binary function type for string concatenation: (a + b).
static int DIV
          Binary function type for arithmetic division: (a / b).
static int EQ
          Binary function type for predicate equals: (a = b).
static int GT
          Binary function type for predicate greater than: (a > b).
static int GTE
          Binary function type for compund predicate greater than or equal: (a => b).
static int IOF
          Binary function type for class equality: (a instanceof b).
static int LAND
          Binary function type for logical and: (a && b).
static int LEFT
          Binary function type for bitwise left shift: (a << b).
static int LOR
          Binary function type for logical or: (a || b).
static int LT
          Binary function type for predicate less than: (a < b).
static int LTE
          Binary function type for compound predicate less than or equal: (a <= b).
static int MOD
          Binary function type for arithmetic modulus: (a % b).
static int MUL
          Binary function type for arithmetic multiplication: (a * b).
static int NE
          Binary function type for predicate not equals: (a != b).
static int RIGHT
          Binary function type for bitwise right shift: (a >> b).
static int SUB
          Binary function type for arithmetix subtraction: (a - b).
static int UNSIGNED
          Binary function type for bitwise unsigned right shift: (a >>> b).
static int XOR
          Binary function type for bitwise xor: (a ^ b).
 
Method Summary
 Expression getLValue()
          Getter method for the left side.
 Expression getRValue()
          Getter method for the right side.
 void setLValue(Expression e)
          Setter method for the left side.
 void setRValue(Expression e)
          Setter method for the right side.
 int type()
          Returns the type of this binary 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

LAND

public static final int LAND
Binary function type for logical and: (a && b).

LOR

public static final int LOR
Binary function type for logical or: (a || b).

BAND

public static final int BAND
Binary function type for bitwise and: (a & b).

BOR

public static final int BOR
Binary function type for bitwise or: (a | b).

XOR

public static final int XOR
Binary function type for bitwise xor: (a ^ b).

LEFT

public static final int LEFT
Binary function type for bitwise left shift: (a << b).

RIGHT

public static final int RIGHT
Binary function type for bitwise right shift: (a >> b).

UNSIGNED

public static final int UNSIGNED
Binary function type for bitwise unsigned right shift: (a >>> b).

ADD

public static final int ADD
Binary function type for arithmetic addition: (a + b).

SUB

public static final int SUB
Binary function type for arithmetix subtraction: (a - b).

MUL

public static final int MUL
Binary function type for arithmetic multiplication: (a * b).

DIV

public static final int DIV
Binary function type for arithmetic division: (a / b).

MOD

public static final int MOD
Binary function type for arithmetic modulus: (a % b).

EQ

public static final int EQ
Binary function type for predicate equals: (a = b).

NE

public static final int NE
Binary function type for predicate not equals: (a != b).

GT

public static final int GT
Binary function type for predicate greater than: (a > b).

GTE

public static final int GTE
Binary function type for compund predicate greater than or equal: (a => b).

LT

public static final int LT
Binary function type for predicate less than: (a < b).

LTE

public static final int LTE
Binary function type for compound predicate less than or equal: (a <= b).

IOF

public static final int IOF
Binary function type for class equality: (a instanceof b).

CAT

public static final int CAT
Binary function type for string concatenation: (a + b).
Method Detail

type

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

setLValue

public void setLValue(Expression e)
Setter method for the left side.

getLValue

public Expression getLValue()
Getter method for the left side.

setRValue

public void setRValue(Expression e)
Setter method for the right side.

getRValue

public Expression getRValue()
Getter method for the right side.