public class IlrCollectInSourceValue extends IlrValue
| Constructor and Description |
|---|
IlrCollectInSourceValue(IlrValue container,
IlrType collectedType,
java.lang.String clause,
IlrValue source)
Builds an object collection from a specified type.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.Enumeration |
enumerateCollectionBindings()
Returns the bindings declared in the collection tests.
|
java.util.Enumeration |
enumerateCollectionTests()
Returns the tests that the collection containing the collected objects
must verify.
|
java.util.Enumeration |
enumerateObjectBindings()
Returns the bindings declared in the object tests.
|
java.util.Enumeration |
enumerateObjectTests()
Returns the tests the collected objects must satisfy.
|
java.lang.Object |
exploreValue(IlrFactoryExplorer explorer)
Explores this constant value using a factory explorer and returns
an object as a result.
|
java.lang.String |
getClause()
Returns the clause used to tell how the source is covered.
|
IlrValue |
getContainer()
Returns the value that defines the container of collected objects.
|
IlrValue |
getSource()
Returns the value representing the source in which the objects to
collect are found.
|
IlrType |
getXOMCollectedType()
Gets the class type of the collected objects.
|
void |
setBindings(java.util.List objectBindings,
java.util.List collectionBindings)
Sets the variable bindings used in the object tests and in the
collection tests.
|
void |
setTests(java.util.List objectTests,
java.util.List collectionTests)
Sets the tests that the collected objects must satisfy and the tests that
the collection (containing the collected objects) must satisfy.
|
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 IlrCollectInSourceValue(IlrValue container, IlrType collectedType, java.lang.String clause, IlrValue source)
clause argument should be one of the
predefined keywords: "from" or "in", or
else an IllegalArgumentException is thrown.container - A container in which the collected objects are stored.
If no specific container is given, a default one is created.collectedType - The type of the objects we are collecting.clause - Can be "from" or "in".source - The source in which the objects to be collected are
found.public void setTests(java.util.List objectTests,
java.util.List collectionTests)
objectTests - The tests the collected objects must verify.collectionTests - The tests the resulting collection must verify.public void setBindings(java.util.List objectBindings,
java.util.List collectionBindings)
objectBindings - The bindings declared in the tests on the collected
objects.collectionBindings - The bindings declared in the tests
on the resulting collection.public final java.util.Enumeration enumerateObjectBindings()
public final java.util.Enumeration enumerateObjectTests()
public final java.util.Enumeration enumerateCollectionBindings()
public final java.util.Enumeration enumerateCollectionTests()
public IlrValue getContainer()
public final IlrType getXOMCollectedType()
public java.lang.String getClause()
"from" or "in"."from" or "in".public IlrValue getSource()
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