本文整理汇总了Java中com.espertech.esper.pattern.guard.GuardParameterException类的典型用法代码示例。如果您正苦于以下问题:Java GuardParameterException类的具体用法?Java GuardParameterException怎么用?Java GuardParameterException使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
GuardParameterException类属于com.espertech.esper.pattern.guard包,在下文中一共展示了GuardParameterException类的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: setGuardParameters
import com.espertech.esper.pattern.guard.GuardParameterException; //导入依赖的package包/类
public void setGuardParameters(List<ExprNode> guardParameters, MatchedEventConvertor convertor) throws GuardParameterException
{
String message = "Count-to guard takes a single integer-value expression as parameter";
if (guardParameters.size() != 1)
{
throw new GuardParameterException(message);
}
if (guardParameters.get(0).getExprEvaluator().getType() != Integer.class)
{
throw new GuardParameterException(message);
}
this.numCountToExpr = guardParameters.get(0);
this.convertor = convertor;
}
示例2: setGuardParameters
import com.espertech.esper.pattern.guard.GuardParameterException; //导入依赖的package包/类
public void setGuardParameters(List<ExprNode> guardParameters, MatchedEventConvertor convertor) throws GuardParameterException {
String message = "Count-to guard takes a single integer-value expression as parameter";
if (guardParameters.size() != 1) {
throw new GuardParameterException(message);
}
Class paramType = guardParameters.get(0).getForge().getEvaluationType();
if (paramType != Integer.class && paramType != int.class) {
throw new GuardParameterException(message);
}
this.numCountToExpr = guardParameters.get(0);
this.convertor = convertor;
}
示例3: setGuardParameters
import com.espertech.esper.pattern.guard.GuardParameterException; //导入依赖的package包/类
public void setGuardParameters(List<ExprNode> guardParameters, MatchedEventConvertor convertor) throws GuardParameterException {
//To change body of implemented methods use File | Settings | File Templates.
}
示例4: setGuardParameters
import com.espertech.esper.pattern.guard.GuardParameterException; //导入依赖的package包/类
public void setGuardParameters(List<ExprNode> guardParameters, MatchedEventConvertor convertor) throws GuardParameterException
{
//To change body of implemented methods use File | Settings | File Templates.
}