public class IlrStaticFieldValue extends IlrValue implements IlrAssignable
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 |
|---|
IlrStaticFieldValue(IlrAttribute field)
Constructs a static field using a XOM field.
|
IlrStaticFieldValue(IlrClass clazz,
java.lang.String fieldName)
Constructs a static field using a class and a field name.
|
IlrStaticFieldValue(IlrReflect reflect,
java.lang.Class clazz,
java.lang.String fieldName)
Constructs a static field using a class and a field name.
|
IlrStaticFieldValue(IlrReflect reflect,
java.lang.reflect.Field field)
Constructs a static field using an introspected field.
|
IlrStaticFieldValue(IlrReflect reflect,
java.lang.String className,
java.lang.String fieldName)
Constructs a static field using a class name and a field name.
|
| Modifier and Type | Method and Description |
|---|---|
IlrAssignment |
addAssign(IlrValue value)
Creates a field assignment represented by the value passed as
the argument.
|
IlrAssignment |
assign(IlrValue value)
Creates a field assignment represented by the value passed
as the argument.
|
IlrAssignment |
divideAssign(IlrValue value)
Creates a field assignment represented by the value passed
as the argument.
|
java.lang.Object |
exploreAssignable(IlrFactoryExplorer explorer)
Explores this value using as an assignable and returns an object
as a result.
|
java.lang.Object |
exploreValue(IlrFactoryExplorer explorer)
Explores this value using a factory explorer and returns an object
as a result.
|
java.lang.String |
getClassName()
Gets the fully-qualified name of the class which declares the field.
|
java.lang.String |
getName()
Gets the name of the field.
|
IlrValue |
getObject()
Gets the object to which the field refers to.
|
java.lang.String |
getShortClassName()
Gets the short name of the class which declares the field.
|
IlrAttribute |
getXOMField()
Gets the field of this field value.
|
boolean |
isAssignableFrom(IlrValue value)
Tests whether this static field value is assignable by another value.
|
boolean |
isFinal()
Tests whether the field is a final field.
|
IlrAssignment |
multiplyAssign(IlrValue value)
Creates a field assignment represented by the value passed
as the argument.
|
IlrAssignment |
remainderAssign(IlrValue value)
Creates a field assignment represented by the value passed
as the argument.
|
void |
setObject(IlrValue object)
Sets the object to which the field refers to.
|
IlrAssignment |
subtractAssign(IlrValue value)
Creates a field assignment represented by the value passed
as the argument.
|
java.lang.String |
toString() |
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, toPrefixIncrclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetTypepublic IlrStaticFieldValue(IlrReflect reflect, java.lang.Class clazz, java.lang.String fieldName)
reflect - A reflect.clazz - The class which defines the static field.fieldName - The field name.public IlrStaticFieldValue(IlrClass clazz, java.lang.String fieldName)
clazz - The class which defines the static field.fieldName - The field name.public IlrStaticFieldValue(IlrReflect reflect, java.lang.String className, java.lang.String fieldName)
reflect - A reflect.className - The name of the class which defines the static field.fieldName - The field name.public IlrStaticFieldValue(IlrReflect reflect, java.lang.reflect.Field field)
reflect - A reflect.field - A field member of a class.public IlrStaticFieldValue(IlrAttribute field)
field - A field member of a class.public boolean isFinal()
true is the field is final,
false otherwise.public boolean isAssignableFrom(IlrValue value)
isAssignableFrom in interface IlrAssignablevalue - The value assigned to the expression.true is this static field value is assignable
by the passed argument, false otherwise.public IlrAttribute getXOMField()
public java.lang.String getName()
public java.lang.String getClassName()
public java.lang.String getShortClassName()
public IlrValue getObject()
Gets the object to which the field refers to.
public void setObject(IlrValue object)
Sets the object to which the field refers to.
object - The object to which the field refers to.public java.lang.Object exploreValue(IlrFactoryExplorer explorer)
exploreValue in class IlrValueexplorer - The factory explorer.null if the method does not return a value.public java.lang.Object exploreAssignable(IlrFactoryExplorer explorer)
exploreAssignable in interface IlrAssignableexplorer - The factory explorer.null if the method does not return a value.public IlrAssignment assign(IlrValue value)
value - The value to be assigned to the field.public IlrAssignment addAssign(IlrValue value)
this += value.value - The value to be assigned to the field.public IlrAssignment subtractAssign(IlrValue value)
this -= value.value - The value to be assigned to the field.public IlrAssignment multiplyAssign(IlrValue value)
this *= value.value - The value to be assigned to the field.public IlrAssignment divideAssign(IlrValue value)
this /= value.value - The value to be assigned to the field.public IlrAssignment remainderAssign(IlrValue value)
this %= value.value - The value to be assigned to the field.public java.lang.String toString()
toString in class java.lang.Object© Copyright IBM Corp. 1987, 2017