当前位置: 首页>>代码示例>>Java>>正文


Java ExpressionExecutor.toString方法代码示例

本文整理汇总了Java中org.wso2.siddhi.core.executor.ExpressionExecutor.toString方法的典型用法代码示例。如果您正苦于以下问题:Java ExpressionExecutor.toString方法的具体用法?Java ExpressionExecutor.toString怎么用?Java ExpressionExecutor.toString使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.wso2.siddhi.core.executor.ExpressionExecutor的用法示例。


在下文中一共展示了ExpressionExecutor.toString方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: AndConditionExpressionExecutor

import org.wso2.siddhi.core.executor.ExpressionExecutor; //导入方法依赖的package包/类
public AndConditionExpressionExecutor(ExpressionExecutor leftConditionExecutor,
                                      ExpressionExecutor rightConditionExecutor) {
    if (leftConditionExecutor.getReturnType().equals(Attribute.Type.BOOL)
            && rightConditionExecutor.getReturnType().equals(Attribute.Type.BOOL)) {

        this.leftConditionExecutor = leftConditionExecutor;
        this.rightConditionExecutor = rightConditionExecutor;
    } else {
        if (!leftConditionExecutor.getReturnType().equals(Attribute.Type.BOOL)) {
            throw new OperationNotSupportedException("Return type of condition executor " + leftConditionExecutor.toString() + " should be of type BOOL. " +
                    "Actual Type: " + leftConditionExecutor.getReturnType().toString());
        } else if (!rightConditionExecutor.getReturnType().equals(Attribute.Type.BOOL)) {
            throw new OperationNotSupportedException("Return type of condition executor " + rightConditionExecutor.toString() + " should be of type BOOL. " +
                    "Actual Type: " + rightConditionExecutor.getReturnType().toString());
        } else {
            throw new OperationNotSupportedException("Return type of condition executor " + leftConditionExecutor.toString() +
                    " and condition executor" + rightConditionExecutor.toString() + "should be of type BOOL. Left executor: " +
                    leftConditionExecutor.getReturnType().toString() + " Right executor: " + rightConditionExecutor.getReturnType().toString());
        }
    }

}
 
开发者ID:sacjaya,项目名称:siddhi-3,代码行数:23,代码来源:AndConditionExpressionExecutor.java

示例2: OrConditionExpressionExecutor

import org.wso2.siddhi.core.executor.ExpressionExecutor; //导入方法依赖的package包/类
public OrConditionExpressionExecutor(ExpressionExecutor leftConditionExecutor,
                                     ExpressionExecutor rightConditionExecutor) {
    if (leftConditionExecutor.getReturnType().equals(Attribute.Type.BOOL)
            && rightConditionExecutor.getReturnType().equals(Attribute.Type.BOOL)) {

        this.leftConditionExecutor = leftConditionExecutor;
        this.rightConditionExecutor = rightConditionExecutor;
    } else {
        if (!leftConditionExecutor.getReturnType().equals(Attribute.Type.BOOL)) {
            throw new OperationNotSupportedException("Return type of condition executor " + leftConditionExecutor.toString() + " should be of type BOOL. " +
                    "Actual Type: " + leftConditionExecutor.getReturnType().toString());
        } else if (!rightConditionExecutor.getReturnType().equals(Attribute.Type.BOOL)) {
            throw new OperationNotSupportedException("Return type of condition executor " + rightConditionExecutor.toString() + " should be of type BOOL. " +
                    "Actual Type: " + rightConditionExecutor.getReturnType().toString());
        } else {
            throw new OperationNotSupportedException("Return type of condition executor " + leftConditionExecutor.toString() +
                    " and condition executor" + rightConditionExecutor.toString() + "should be of type BOOL. Left executor: " +
                    leftConditionExecutor.getReturnType().toString() + " Right executor: " + rightConditionExecutor.getReturnType().toString());
        }
    }
}
 
开发者ID:sacjaya,项目名称:siddhi-3,代码行数:22,代码来源:OrConditionExpressionExecutor.java

示例3: FilterProcessor

import org.wso2.siddhi.core.executor.ExpressionExecutor; //导入方法依赖的package包/类
public FilterProcessor(ExpressionExecutor conditionExecutor) {
    if (Attribute.Type.BOOL.equals(conditionExecutor.getReturnType())) {
        this.conditionExecutor = conditionExecutor;
    } else {
        throw new OperationNotSupportedException("Return type of " + conditionExecutor.toString() + " should be " +
                "of type BOOL. " +
                "Actual type: " + conditionExecutor.getReturnType().toString());
    }
}
 
开发者ID:wso2,项目名称:siddhi,代码行数:10,代码来源:FilterProcessor.java

示例4: AndConditionExpressionExecutor

import org.wso2.siddhi.core.executor.ExpressionExecutor; //导入方法依赖的package包/类
public AndConditionExpressionExecutor(ExpressionExecutor leftConditionExecutor,
                                      ExpressionExecutor rightConditionExecutor) {
    if (leftConditionExecutor.getReturnType().equals(Attribute.Type.BOOL)
            && rightConditionExecutor.getReturnType().equals(Attribute.Type.BOOL)) {

        this.leftConditionExecutor = leftConditionExecutor;
        this.rightConditionExecutor = rightConditionExecutor;
    } else {
        if (!leftConditionExecutor.getReturnType().equals(Attribute.Type.BOOL)) {
            throw new OperationNotSupportedException("Return type of condition executor " +
                    leftConditionExecutor.toString() +
                    " should be of type BOOL. Actual Type: " +
                    leftConditionExecutor.getReturnType().toString());
        } else if (!rightConditionExecutor.getReturnType().equals(Attribute.Type.BOOL)) {
            throw new OperationNotSupportedException("Return type of condition executor " +
                    rightConditionExecutor.toString() + " should be of "
                    + "type BOOL. Actual Type: " +
                    rightConditionExecutor.getReturnType().toString());
        } else {
            throw new OperationNotSupportedException("Return type of condition executor " +
                    leftConditionExecutor.toString() +
                    " and condition executor" +
                    rightConditionExecutor.toString() +
                    "should be of type BOOL. Left executor: " +
                    leftConditionExecutor.getReturnType().toString() +
                    " Right executor: " +
                    rightConditionExecutor.getReturnType().toString());
        }
    }

}
 
开发者ID:wso2,项目名称:siddhi,代码行数:32,代码来源:AndConditionExpressionExecutor.java

示例5: NotConditionExpressionExecutor

import org.wso2.siddhi.core.executor.ExpressionExecutor; //导入方法依赖的package包/类
public NotConditionExpressionExecutor(ExpressionExecutor conditionExecutor) {
    if (conditionExecutor.getReturnType().equals(Attribute.Type.BOOL)) {
        this.conditionExecutor = conditionExecutor;
    } else {
        throw new OperationNotSupportedException("Return type of condition executor " + conditionExecutor
                .toString() + " should be of type BOOL. Actual Type: " + conditionExecutor.getReturnType()
                .toString());
    }
}
 
开发者ID:wso2,项目名称:siddhi,代码行数:10,代码来源:NotConditionExpressionExecutor.java

示例6: OrConditionExpressionExecutor

import org.wso2.siddhi.core.executor.ExpressionExecutor; //导入方法依赖的package包/类
public OrConditionExpressionExecutor(ExpressionExecutor leftConditionExecutor,
                                     ExpressionExecutor rightConditionExecutor) {
    if (leftConditionExecutor.getReturnType().equals(Attribute.Type.BOOL)
            && rightConditionExecutor.getReturnType().equals(Attribute.Type.BOOL)) {

        this.leftConditionExecutor = leftConditionExecutor;
        this.rightConditionExecutor = rightConditionExecutor;
    } else {
        if (!leftConditionExecutor.getReturnType().equals(Attribute.Type.BOOL)) {
            throw new OperationNotSupportedException("Return type of condition executor " + leftConditionExecutor
                    .toString() + " should be of type BOOL. Actual Type: " + leftConditionExecutor.getReturnType()
                    .toString());
        } else if (!rightConditionExecutor.getReturnType().equals(Attribute.Type.BOOL)) {
            throw new OperationNotSupportedException("Return type of condition executor " +
                                                             rightConditionExecutor.toString() +
                                                             " should be of type BOOL. " +
                                                             "Actual Type: " +
                                                             rightConditionExecutor.getReturnType().toString());
        } else {
            throw new OperationNotSupportedException("Return type of condition executor " +
                                                             leftConditionExecutor.toString() +
                                                             " and condition executor" +
                                                             rightConditionExecutor.toString() +
                                                             "should be of type BOOL. Left executor: " +
                                                             leftConditionExecutor.getReturnType().toString()
                                                             + " Right executor: " +
                                                             rightConditionExecutor.getReturnType().toString());
        }
    }
}
 
开发者ID:wso2,项目名称:siddhi,代码行数:31,代码来源:OrConditionExpressionExecutor.java

示例7: BoolConditionExpressionExecutor

import org.wso2.siddhi.core.executor.ExpressionExecutor; //导入方法依赖的package包/类
public BoolConditionExpressionExecutor(ExpressionExecutor conditionExecutor) {
    if (conditionExecutor.getReturnType().equals(Attribute.Type.BOOL)) {
        this.conditionExecutor = conditionExecutor;
    } else {
        throw new OperationNotSupportedException("Return type of condition executor " + conditionExecutor
                .toString() + " should be of type BOOL. " +
                "Actual Type: " + conditionExecutor.getReturnType().toString());
    }
}
 
开发者ID:wso2,项目名称:siddhi,代码行数:10,代码来源:BoolConditionExpressionExecutor.java

示例8: FilterProcessor

import org.wso2.siddhi.core.executor.ExpressionExecutor; //导入方法依赖的package包/类
public FilterProcessor(ExpressionExecutor conditionExecutor) {
    if(Attribute.Type.BOOL.equals(conditionExecutor.getReturnType())) {
        this.conditionExecutor = conditionExecutor;
    }else{
        throw new OperationNotSupportedException("Return type of "+conditionExecutor.toString()+" should be of type BOOL. " +
                "Actual type: "+conditionExecutor.getReturnType().toString());
    }
}
 
开发者ID:sacjaya,项目名称:siddhi-3,代码行数:9,代码来源:FilterProcessor.java

示例9: NotConditionExpressionExecutor

import org.wso2.siddhi.core.executor.ExpressionExecutor; //导入方法依赖的package包/类
public NotConditionExpressionExecutor(ExpressionExecutor conditionExecutor) {
    if (conditionExecutor.getReturnType().equals(Attribute.Type.BOOL)) {
        this.conditionExecutor = conditionExecutor;
    } else {
        throw new OperationNotSupportedException("Return type of condition executor " + conditionExecutor.toString() + " should be of type BOOL. " +
                "Actual Type: " + conditionExecutor.getReturnType().toString());
    }
}
 
开发者ID:sacjaya,项目名称:siddhi-3,代码行数:9,代码来源:NotConditionExpressionExecutor.java


注:本文中的org.wso2.siddhi.core.executor.ExpressionExecutor.toString方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。