public final class IlrAsValue extends IlrValue
IlrUnaryOperator, which is determined
using the type of the argument. The method getOperator()
returns that operator. If this method returns null,
it means that the cast expression is not valid.
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 |
|---|
IlrAsValue(java.lang.Class clazz,
IlrValue value)
Constructs a cast expression.
|
IlrAsValue(IlrType type,
IlrValue value)
Constructs a cast expression.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
exploreValue(IlrFactoryExplorer explorer)
Explores the cast value using a factory explorer and returns
an object as a result.
|
java.lang.String |
getClassName()
Gets the fully qualified class name for the class to which the cast
is made.
|
IlrUnaryOperator |
getOperator()
Determines and returns the unary operator used to perform
the cast.
|
java.lang.String |
getShortClassName()
Gets the short class name for the class to which the cast is made.
|
IlrValue |
getValue()
Gets the value to which the cast is applied.
|
boolean |
isTautology()
Indicates whether the cast value tries to cast a value to its own type.
|
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 IlrAsValue(java.lang.Class clazz,
IlrValue value)
clazz - The class to which the value will be casted.value - The value to cast.public IlrValue getValue()
public java.lang.String getClassName()
public java.lang.String getShortClassName()
public boolean isTautology()
true if the type of the arguments is the same as the
cast type.public IlrUnaryOperator getOperator()
null, the cast expression
is not valid.null if the cast
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