|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.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
InvalidSelectorException
getInstance(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
InvalidSelectorException
getInstance(String)
public Result eval(java.util.Map identifiers)
eval
in interface ISelector
identifiers
- Value for each non-null identifier in the selector.
getIdentifiers()
public Result eval(IValueProvider provider, java.lang.Object corr)
eval
in interface ISelector
provider
- 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 ISelector
java.lang.UnsupportedOperationException
eval(Map)
public java.lang.String getSelector()
getSelector
in interface ISelector
public java.lang.String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |