public class EPLValidationUtil extends Object
Constructor and Description |
---|
EPLValidationUtil() |
Modifier and Type | Method and Description |
---|---|
static String |
getInvokablePrefix(String invocableName,
String invocableType,
boolean isFunction) |
static void |
validateAlreadyExistsTableOrVariable(String name,
VariableCompileTimeResolver variableCompileTimeResolver,
TableCompileTimeResolver tableCompileTimeResolver,
EventTypeCompileTimeResolver eventTypeCompileTimeResolver) |
static void |
validateContextName(boolean table,
String tableOrNamedWindowName,
String tableOrNamedWindowContextName,
String optionalContextName,
boolean mustMatchContext) |
static QueryGraphForge |
validateFilterGetQueryGraphSafe(ExprNode filterExpression,
StreamTypeServiceImpl typeService,
StatementRawInfo statementRawInfo,
StatementCompileTimeServices services) |
static void |
validateFilterWQueryGraphSafe(QueryGraphForge queryGraph,
ExprNode filterExpression,
StreamTypeServiceImpl typeService,
StatementRawInfo statementRawInfo,
StatementCompileTimeServices services) |
static void |
validateParameterNumber(String invocableName,
String invocableCategory,
boolean isFunction,
int expectedEnum,
int receivedNum) |
static void |
validateParametersTypePredefined(ExprNode[] expressions,
String invocableName,
String invocableCategory,
EPLExpressionParamType type) |
static void |
validateParameterType(String invocableName,
String invocableCategory,
boolean isFunction,
EPLExpressionParamType expectedTypeEnum,
Class[] expectedTypeClasses,
Class providedType,
int parameterNum,
ExprNode parameterExpression) |
static ExprNode |
validateSimpleGetSubtree(ExprNodeOrigin origin,
ExprNode expression,
EventType optionalEventType,
boolean allowBindingConsumption,
StatementRawInfo statementRawInfo,
StatementCompileTimeServices services) |
static void |
validateTableExists(TableCompileTimeResolver tableCompileTimeResolver,
String name) |
public static void validateParametersTypePredefined(ExprNode[] expressions, String invocableName, String invocableCategory, EPLExpressionParamType type) throws ExprValidationException
ExprValidationException
public static void validateTableExists(TableCompileTimeResolver tableCompileTimeResolver, String name) throws ExprValidationException
ExprValidationException
public static ExprNode validateSimpleGetSubtree(ExprNodeOrigin origin, ExprNode expression, EventType optionalEventType, boolean allowBindingConsumption, StatementRawInfo statementRawInfo, StatementCompileTimeServices services) throws ExprValidationException
ExprValidationException
public static QueryGraphForge validateFilterGetQueryGraphSafe(ExprNode filterExpression, StreamTypeServiceImpl typeService, StatementRawInfo statementRawInfo, StatementCompileTimeServices services)
public static void validateFilterWQueryGraphSafe(QueryGraphForge queryGraph, ExprNode filterExpression, StreamTypeServiceImpl typeService, StatementRawInfo statementRawInfo, StatementCompileTimeServices services)
public static void validateParameterNumber(String invocableName, String invocableCategory, boolean isFunction, int expectedEnum, int receivedNum) throws ExprValidationException
ExprValidationException
public static void validateParameterType(String invocableName, String invocableCategory, boolean isFunction, EPLExpressionParamType expectedTypeEnum, Class[] expectedTypeClasses, Class providedType, int parameterNum, ExprNode parameterExpression) throws ExprValidationException
ExprValidationException
public static String getInvokablePrefix(String invocableName, String invocableType, boolean isFunction)
public static void validateContextName(boolean table, String tableOrNamedWindowName, String tableOrNamedWindowContextName, String optionalContextName, boolean mustMatchContext) throws ExprValidationException
ExprValidationException
public static void validateAlreadyExistsTableOrVariable(String name, VariableCompileTimeResolver variableCompileTimeResolver, TableCompileTimeResolver tableCompileTimeResolver, EventTypeCompileTimeResolver eventTypeCompileTimeResolver) throws ExprValidationException
ExprValidationException
Copyright © 2005–2018. All rights reserved.