Interface ExpressionEvaluatorVisitor
public interface ExpressionEvaluatorVisitor
Interface describes a visitor for compiled expressions.
- Since:
- 1.3.0
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enumstatic enum -
Method Summary
Modifier and TypeMethodDescriptionvisitConstant(int value) Visit integer constantvisitEnd()End of expressionvisitField(JBBPNamedFieldInfo nullableNameFieldInfo, String nullableExternalFieldName) Visit field item, it can be or named field or external field (which name starts with $)Visit operatorvisitSpecial(ExpressionEvaluatorVisitor.Special specialField) Visit special field (like stream counter)Start visit.
-
Method Details
-
visitStart
ExpressionEvaluatorVisitor visitStart()Start visit.- Returns:
- the visitor instance, must not be null
-
visitSpecial
Visit special field (like stream counter)- Parameters:
specialField- special value to be visited, must not be null- Returns:
- the visitor instance, must not be null
-
visitField
ExpressionEvaluatorVisitor visitField(JBBPNamedFieldInfo nullableNameFieldInfo, String nullableExternalFieldName) Visit field item, it can be or named field or external field (which name starts with $)- Parameters:
nullableNameFieldInfo- name info for the field, it will be null for external fieldsnullableExternalFieldName- name of external field, it will be null for regular field- Returns:
- the visitor instance, must not be null
-
visitOperator
Visit operator- Parameters:
operator- operator item to be visited, must not be null- Returns:
- the visitor instance, must not be null
-
visitConstant
Visit integer constant- Parameters:
value- integer constant- Returns:
- the visitor instance, must not be null
-
visitEnd
ExpressionEvaluatorVisitor visitEnd()End of expression- Returns:
- the visitor instance, must not be null
-