|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.codestreet.selector.Selector
Thread safe Selector implementation.
| Method Summary | |
Result |
eval(IValueProvider provider,
java.lang.Object corr)
Evaluate the selector. |
Result |
eval(java.util.Map identifiers)
Evaluate the selector. |
java.util.Map |
getIdentifiers()
Get identifiers used by the selector. |
static Selector |
getInstance(java.lang.String selector)
Factory. |
static Selector |
getInstance(java.lang.String selector,
boolean trace)
Factory. |
java.lang.String |
getSelector()
Get the selector. |
java.lang.String |
toString()
Get selector parse tree. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
public static Selector getInstance(java.lang.String selector)
throws InvalidSelectorException
selector - Selector.
java.lang.NullPointerException
InvalidSelectorExceptiongetInstance(String, boolean)
public static Selector getInstance(java.lang.String selector,
boolean trace)
throws InvalidSelectorException
selector - Selector.trace - Parser outputs trace if true .
java.lang.NullPointerException
InvalidSelectorExceptiongetInstance(String)public Result eval(java.util.Map identifiers)
eval in interface ISelectoridentifiers - Value for each non-null identifier in the selector.
getIdentifiers()
public Result eval(IValueProvider provider,
java.lang.Object corr)
eval in interface ISelectorprovider - Value provider. During evaluation of the selector callbacks
are made on the value provider to get identifier values.corr - Correlation data. Passed as-is to the value provider.
public java.util.Map getIdentifiers()
getIdentifiers in interface ISelectorjava.lang.UnsupportedOperationExceptioneval(Map)public java.lang.String getSelector()
getSelector in interface ISelectorpublic java.lang.String toString()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||