org.inxar.jenesis
Interface Assign

All Superinterfaces:
Binary, Codeable, Expression

public interface Assign
extends Binary

Expression subinterface for assignments.


Field Summary
static int ADD
          Assignment type for arithmetic addition: (a += b).
static int BAND
          Assignment type for bitwise and: (a &= b).
static int BOR
          Assignment type for bitwise or: (a |= b).
static int CAT
          Assignment type for string concatenation: (a += b).
static int DIV
          Assignment type for arithmetic division: (a /= b).
static int LEFT
          Assignment type for bitwise left shift: (a <<= b).
static int MOD
          Assignment type for arithmetic modulus: (a %= b).
static int MUL
          Assignment type for arithmetic multiplication: (a *= b).
static int RIGHT
          Assignment type for bitwise right shift: (a >>= b).
static int S
          Assignment type for simple: (a = b).
static int SUB
          Assignment type for arithmetix subtraction: (a -= b).
static int UNSIGNED
          Assignment type for bitwise unsigned right shift: (a >>>= b).
static int XOR
          Assignment type for bitwise xor: (a ^= b).
 
Fields inherited from interface org.inxar.jenesis.Binary
EQ, GT, GTE, IOF, LAND, LOR, LT, LTE, NE
 
Method Summary
 Variable getVariable()
          Gets the lvalue.
 void setVariable(Variable variable)
          Sets the lvalue.
 int type()
          Returns the type of this assignment as one of the constants in this interface.
 
Methods inherited from interface org.inxar.jenesis.Binary
getLValue, getRValue, setLValue, setRValue
 
Methods inherited from interface org.inxar.jenesis.Expression
getType
 
Methods inherited from interface org.inxar.jenesis.Codeable
getComment, setComment, toCode, vm
 

Field Detail

S

public static final int S
Assignment type for simple: (a = b).

BAND

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

BOR

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

XOR

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

LEFT

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

RIGHT

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

UNSIGNED

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

ADD

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

SUB

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

MUL

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

DIV

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

MOD

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

CAT

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

type

public int type()
Returns the type of this assignment as one of the constants in this interface.
Specified by:
type in interface Binary

setVariable

public void setVariable(Variable variable)
Sets the lvalue.

getVariable

public Variable getVariable()
Gets the lvalue.