when

Add a ConditionalTokenFilterFactory to the analysis chain

TokenFilters added by subsequent calls to [ConditionBuilder.addTokenFilter] and related functions will only be used if the current token matches the condition. Consumers must call [ConditionBuilder.endwhen] to return to the normal tokenfilter chain once conditional filters have been added

Parameters

name

is used to look up the factory with TokenFilterFactory.forName

params

the parameters to be passed to the factory


Add a ConditionalTokenFilterFactory to the analysis chain

TokenFilters added by subsequent calls to [ConditionBuilder.addTokenFilter] and related functions will only be used if the current token matches the condition. Consumers must call [ConditionBuilder.endwhen] to return to the normal tokenfilter chain once conditional filters have been added

Parameters

name

is used to look up the factory with TokenFilterFactory.forName

params

the parameters to be passed to the factory. The map must be modifiable


Add a ConditionalTokenFilterFactory to the analysis chain

TokenFilters added by subsequent calls to [ConditionBuilder.addTokenFilter] and related functions will only be used if the current token matches the condition. Consumers must call [ConditionBuilder.endwhen] to return to the normal tokenfilter chain once conditional filters have been added

Parameters

factory

class that is used to create the ConditionalTokenFilter

params

the parameters to be passed to the factory


Add a ConditionalTokenFilterFactory to the analysis chain

TokenFilters added by subsequent calls to [ConditionBuilder.addTokenFilter] and related functions will only be used if the current token matches the condition. Consumers must call [ConditionBuilder.endwhen] to return to the normal tokenfilter chain once conditional filters have been added

Parameters

factory

class that is used to create the ConditionalTokenFilter

params

the parameters to be passed to the factory. The map must be modifiable


Add a ConditionalTokenFilterFactory to the analysis chain

TokenFilters added by subsequent calls to [ConditionBuilder.addTokenFilter] and related functions will only be used if the current token matches the condition. Consumers must call [ConditionBuilder.endwhen] to return to the normal tokenfilter chain once conditional filters have been added