Class PseudoFunctionSelector<E>
java.lang.Object
jodd.csselly.Selector
jodd.csselly.selector.PseudoFunctionSelector<E>
- All Implemented Interfaces:
NodeFilter, NodeListFilter
Pseudo function selector.
-
Nested Class Summary
Nested classes/interfaces inherited from class Selector
Selector.Type -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final Stringprotected final Eprotected static final Map<String, PseudoFunction> protected final PseudoFunction<E> -
Constructor Summary
ConstructorsConstructorDescriptionPseudoFunctionSelector(String functionName, String expression) Creates pseudo function selector for given function and expression. -
Method Summary
Modifier and TypeMethodDescriptionbooleanAccepts node within selected results.booleanMatches nodes with this pseudo function selector.Returns expression string.Returns parsed expression object.Returnspseudo function.static PseudoFunction<?> lookupPseudoFunction(String pseudoFunctionName) Lookups pseudo function for given pseudo function name.static voidregisterPseudoFunction(Class<? extends PseudoFunction> pseudoFunctionType) Registers pseudo function.
-
Field Details
-
PSEUDO_FUNCTION_MAP
-
pseudoFunction
-
expression
-
parsedExpression
-
-
Constructor Details
-
PseudoFunctionSelector
-
-
Method Details
-
registerPseudoFunction
Registers pseudo function. -
lookupPseudoFunction
Lookups pseudo function for given pseudo function name. -
getPseudoFunction
Returnspseudo function. -
getExpression
Returns expression string. -
getParsedExpression
Returns parsed expression object. -
accept
Matches nodes with this pseudo function selector.- Specified by:
acceptin interfaceNodeFilter
-
accept
Accepts node within selected results. Invoked after results are matched.- Specified by:
acceptin interfaceNodeListFilter
-