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.Modifier and Type | Field and Description |
---|---|
static int |
IF
Ternary function type for if-else: {@code (a ?
|
Modifier and Type | Method and Description |
---|---|
Expression |
getValue1()
Accessor method for the first operand.
|
Expression |
getValue2()
Accessor method for the second operand.
|
Expression |
getValue3()
Accessor method for the third operand.
|
Ternary |
setValue1(Expression e)
Mutator method for the first operand.
|
Ternary |
setValue2(Expression e)
Mutator method for the second operand.
|
Ternary |
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.
|
getType
applyStyle, cast, getComment, isActive, isBlockWithAbruptCompletion, setComment, toCode, visit, vm
static final int IF
(a ? b : c)
.Expression getValue1()
Expression getValue2()
Expression getValue3()
Ternary setValue1(Expression e)
Ternary setValue2(Expression e)
Ternary setValue3(Expression e)
int type()
Copyright © 2000–2018 jenesis4java. All rights reserved.