public class IlrBinaryValue extends IlrValue
kind specifies the kind of operation involved
to compute the binary value, its possible values are defined in the
interface IlrBinaryOperator. The binary operation
itself is performed by an IlrBinaryOperator. An instance
of this class determines its binary operator using the types of the
arguments and the kind. If a binary operator can not be determined,
the binary operation is not a valid expression.
Warning: Serialized objects of this class will not be compatible with future releases. The current serialization support is appropriate for short term storage or RMI between applications running the same version of IBM Decision Server.
| Constructor and Description |
|---|
IlrBinaryValue(int kind,
IlrValue first,
IlrValue second)
Constructs a binary expression from two values.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
exploreValue(IlrFactoryExplorer explorer)
Explores this binary value using a factory explorer and returns
an object as a result.
|
IlrValue |
getFirstArgument()
Gets the first argument of this expression.
|
int |
getKind()
Gets the kind of the expression.
|
IlrBinaryOperator |
getOperator()
Gets the binary operator that is used to compute
the binary value.
|
IlrValue |
getSecondArgument()
Gets the second argument of this expression.
|
void |
setFirstArgument(IlrValue first)
Changes the first argument of this expression.
|
void |
setKind(int kind)
Sets the kind of this expression.
|
void |
setSecondArgument(IlrValue second)
Changes the second argument of this expression.
|
add, divide, getField, getReflect, getType, getXOMType, invokeEquals, isConstant, isEvent, isEventCondition, isNull, multiply, remainder, subtract, testAfter, testAfter, testBefore, testBefore, testEqual, testFalse, testGreaterOrEqual, testGreaterThan, testIn, testInstanceOf, testLessOrEqual, testLessThan, testNotEqual, testNotIn, testOccursin, testTrue, timeof, toNegative, toPositive, toPostfixDecr, toPostfixIncr, toPrefixDecr, toPrefixIncrpublic IlrBinaryValue(int kind,
IlrValue first,
IlrValue second)
kind - The type of the binary operation as defined
in IlrBinaryOperator.first - The first argument value.second - The second argument value.public int getKind()
IlrBinaryOperator.public void setKind(int kind)
IlrBinaryOperator.kind - The kind of this expression.public IlrValue getFirstArgument()
public void setFirstArgument(IlrValue first)
first - The first argument of this expression.public IlrValue getSecondArgument()
public void setSecondArgument(IlrValue second)
second - The second argument of this expression.public IlrBinaryOperator getOperator()
null if the binary
value is not valid.public java.lang.Object exploreValue(IlrFactoryExplorer explorer)
exploreValue in class IlrValueexplorer - The factory explorer.null if the method does not return a value.© Copyright IBM Corp. 1987, 2017