public final class FilterSpecCompiled extends Object
Constructor and Description |
---|
FilterSpecCompiled(EventType eventType,
String eventTypeName,
List<FilterSpecParamForge>[] filterParameters,
PropertyEvaluatorForge optionalPropertyEvaluator)
Constructor - validates parameter list against event type, throws exception if invalid
property names or mismatcing filter operators are found.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
boolean |
equalsTypeAndFilter(FilterSpecCompiled other)
Compares only the type and filter portion and not the property evaluation portion.
|
EventType |
getFilterForEventType()
Returns type of event to filter for.
|
String |
getFilterForEventTypeName()
Returns the event type name.
|
PropertyEvaluatorForge |
getOptionalPropertyEvaluator()
Return the evaluator for property value if any is attached, or none if none attached.
|
FilterSpecParamForge[][] |
getParameters()
Returns list of filter parameters.
|
EventType |
getResultEventType()
Returns the result event type of the filter specification.
|
int |
hashCode() |
CodegenMethod |
makeCodegen(CodegenMethodScope parent,
SAIFFInitializeSymbol symbols,
CodegenClassScope classScope) |
static List<FilterSpecParamExprNodeForge> |
makeExprNodeList(List<FilterSpecCompiled> filterSpecCompileds,
List<FilterSpecParamExprNodeForge> additionalBooleanExpressions) |
void |
setFilterCallbackId(int filterCallbackId) |
protected static FilterSpecParamForge[] |
sortRemoveDups(List<FilterSpecParamForge> parameters) |
protected static FilterSpecParamForge[][] |
sortRemoveDups(List<FilterSpecParamForge>[] parameters) |
String |
toString() |
void |
traverseFilterBooleanExpr(Consumer<FilterSpecParamExprNodeForge> consumer) |
public FilterSpecCompiled(EventType eventType, String eventTypeName, List<FilterSpecParamForge>[] filterParameters, PropertyEvaluatorForge optionalPropertyEvaluator)
eventType
- is the event typefilterParameters
- is a list of filter parameterseventTypeName
- is the name of the event typeoptionalPropertyEvaluator
- optional if evaluating properties returned by filtered eventsIllegalArgumentException
- if validation invalidpublic void setFilterCallbackId(int filterCallbackId)
public final EventType getFilterForEventType()
public final FilterSpecParamForge[][] getParameters()
public String getFilterForEventTypeName()
public PropertyEvaluatorForge getOptionalPropertyEvaluator()
public EventType getResultEventType()
public boolean equalsTypeAndFilter(FilterSpecCompiled other)
other
- filter to compareprotected static FilterSpecParamForge[][] sortRemoveDups(List<FilterSpecParamForge>[] parameters)
protected static FilterSpecParamForge[] sortRemoveDups(List<FilterSpecParamForge> parameters)
public CodegenMethod makeCodegen(CodegenMethodScope parent, SAIFFInitializeSymbol symbols, CodegenClassScope classScope)
public static List<FilterSpecParamExprNodeForge> makeExprNodeList(List<FilterSpecCompiled> filterSpecCompileds, List<FilterSpecParamExprNodeForge> additionalBooleanExpressions)
public void traverseFilterBooleanExpr(Consumer<FilterSpecParamExprNodeForge> consumer)
Copyright © 2005–2019. All rights reserved.