本文整理汇总了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());
}
}
}
示例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());
}
}
}
示例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());
}
}
示例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());
}
}
}
示例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());
}
}
示例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());
}
}
}
示例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());
}
}
示例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());
}
}
示例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());
}
}