public class EPLValidationUtil
extends java.lang.Object
Constructor and Description |
---|
EPLValidationUtil() |
Modifier and Type | Method and Description |
---|---|
static ExprValidationContext |
getExprValidationContextStatementOnly(StatementContext statementContext) |
static java.lang.String |
getInvokablePrefix(java.lang.String invocableName,
java.lang.String invocableType,
boolean isFunction) |
static void |
validateContextName(boolean table,
java.lang.String tableOrNamedWindowName,
java.lang.String tableOrNamedWindowContextName,
java.lang.String optionalContextName,
boolean mustMatchContext) |
static QueryGraph |
validateFilterGetQueryGraphSafe(ExprNode filterExpression,
StatementContext statementContext,
StreamTypeServiceImpl typeService) |
static void |
validateFilterWQueryGraphSafe(QueryGraph queryGraph,
ExprNode filterExpression,
StatementContext statementContext,
StreamTypeServiceImpl typeService) |
static void |
validateParameterNumber(java.lang.String invocableName,
java.lang.String invocableCategory,
boolean isFunction,
int expectedEnum,
int receivedNum) |
static void |
validateParametersTypePredefined(ExprNode[] expressions,
java.lang.String invocableName,
java.lang.String invocableCategory,
EPLExpressionParamType type) |
static void |
validateParameterType(java.lang.String invocableName,
java.lang.String invocableCategory,
boolean isFunction,
EPLExpressionParamType expectedTypeEnum,
java.lang.Class[] expectedTypeClasses,
java.lang.Class providedType,
int parameterNum,
ExprNode parameterExpression) |
static ExprNode |
validateSimpleGetSubtree(ExprNodeOrigin origin,
ExprNode expression,
StatementContext statementContext,
EventType optionalEventType,
boolean allowBindingConsumption) |
static void |
validateTableExists(TableService tableService,
java.lang.String name) |
public static QueryGraph validateFilterGetQueryGraphSafe(ExprNode filterExpression, StatementContext statementContext, StreamTypeServiceImpl typeService)
public static void validateFilterWQueryGraphSafe(QueryGraph queryGraph, ExprNode filterExpression, StatementContext statementContext, StreamTypeServiceImpl typeService)
public static ExprNode validateSimpleGetSubtree(ExprNodeOrigin origin, ExprNode expression, StatementContext statementContext, EventType optionalEventType, boolean allowBindingConsumption) throws ExprValidationException
ExprValidationException
public static ExprValidationContext getExprValidationContextStatementOnly(StatementContext statementContext)
public static void validateParameterNumber(java.lang.String invocableName, java.lang.String invocableCategory, boolean isFunction, int expectedEnum, int receivedNum) throws ExprValidationException
ExprValidationException
public static void validateParameterType(java.lang.String invocableName, java.lang.String invocableCategory, boolean isFunction, EPLExpressionParamType expectedTypeEnum, java.lang.Class[] expectedTypeClasses, java.lang.Class providedType, int parameterNum, ExprNode parameterExpression) throws ExprValidationException
ExprValidationException
public static void validateTableExists(TableService tableService, java.lang.String name) throws ExprValidationException
ExprValidationException
public static void validateContextName(boolean table, java.lang.String tableOrNamedWindowName, java.lang.String tableOrNamedWindowContextName, java.lang.String optionalContextName, boolean mustMatchContext) throws ExprValidationException
ExprValidationException
public static java.lang.String getInvokablePrefix(java.lang.String invocableName, java.lang.String invocableType, boolean isFunction)
public static void validateParametersTypePredefined(ExprNode[] expressions, java.lang.String invocableName, java.lang.String invocableCategory, EPLExpressionParamType type) throws ExprValidationException
ExprValidationException