org.inxar.jenesis
Interface Ternary

All Superinterfaces:
Codeable, Expression

public interface Ternary
extends Expression

Expression subinterface for expressions which have a three operands. The only ternary function in Java is the ternary if-else construct.


Field Summary
static int IF
          Ternary function type for if-else: (a ? b : c).
 
Method Summary
 Expression getValue1()
          Accessor method for the first operand.
 Expression getValue2()
          Accessor method for the second operand.
 Expression getValue3()
          Accessor method for the third operand.
 void setValue1(Expression e)
          Mutator method for the first operand.
 void setValue2(Expression e)
          Mutator method for the second operand.
 void setValue3(Expression e)
          Mutator method for the third operand.
 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

IF

public static final int IF
Ternary function type for if-else: (a ? b : c).
Method Detail

type

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

setValue1

public void setValue1(Expression e)
Mutator method for the first operand.

getValue1

public Expression getValue1()
Accessor method for the first operand.

setValue2

public void setValue2(Expression e)
Mutator method for the second operand.

getValue2

public Expression getValue2()
Accessor method for the second operand.

setValue3

public void setValue3(Expression e)
Mutator method for the third operand.

getValue3

public Expression getValue3()
Accessor method for the third operand.