Examples of SimpleBooleanExpression


Examples of org.apache.uima.ruta.expression.bool.SimpleBooleanExpression

  public NearCondition(TypeExpression type, INumberExpression min, INumberExpression max,
          IBooleanExpression forward, IBooleanExpression filtered) {
    super(type);
    this.min = min == null ? new SimpleNumberExpression(1) : min;
    this.max = max == null ? new SimpleNumberExpression(1) : max;
    this.forward = forward == null ? new SimpleBooleanExpression(true) : forward;
    this.filtered = filtered == null ? new SimpleBooleanExpression(false) : filtered;
  }
View Full Code Here

Examples of org.apache.uima.ruta.expression.bool.SimpleBooleanExpression

          IBooleanExpression selected) {
    super();
    this.type = type;
    this.bgcolor = bgcolor == null ? new SimpleStringExpression("red") : bgcolor;
    this.fgcolor = fgcolor == null ? new SimpleStringExpression("red") : fgcolor;
    this.selected = selected == null ? new SimpleBooleanExpression(false) : selected;
  }
View Full Code Here

Examples of org.apache.uima.ruta.expression.bool.SimpleBooleanExpression

              + verbalize(e.getSecondExpression());
    } else if (expression instanceof ReferenceBooleanExpression) {
      ReferenceBooleanExpression e = (ReferenceBooleanExpression) expression;
      return e.getVar();
    } else if (expression instanceof SimpleBooleanExpression) {
      SimpleBooleanExpression e = (SimpleBooleanExpression) expression;
      return e.getPrimitiveValue() ? "true" : "false";
    } else if (expression instanceof BooleanFeatureExpression) {
      return verbalize(((BooleanFeatureExpression) expression).getFe());
    }
    return expression.getClass().getSimpleName();
  }
View Full Code Here

Examples of org.apache.uima.ruta.expression.bool.SimpleBooleanExpression

          NumberExpression e2) {
    return new BooleanNumberExpression(e1, op.getText(), e2);
  }

  public static BooleanExpression createSimpleBooleanExpression(Token v) {
    return new SimpleBooleanExpression(Boolean.valueOf(v.getText()));
  }
View Full Code Here

Examples of org.apache.uima.ruta.expression.bool.SimpleBooleanExpression

              + verbalize(e.getSecondExpression());
    } else if (expression instanceof ReferenceBooleanExpression) {
      ReferenceBooleanExpression e = (ReferenceBooleanExpression) expression;
      return e.getVar();
    } else if (expression instanceof SimpleBooleanExpression) {
      SimpleBooleanExpression e = (SimpleBooleanExpression) expression;
      return e.getPrimitiveValue() ? "true" : "false";
    }
    return expression.getClass().getSimpleName();
  }
View Full Code Here

Examples of org.apache.uima.ruta.expression.bool.SimpleBooleanExpression

  public ContainsCondition(TypeExpression type, NumberExpression min, NumberExpression max,
          BooleanExpression percent) {
    super(type);
    this.min = min == null ? new SimpleNumberExpression(Integer.valueOf(1)) : min;
    this.max = max == null ? new SimpleNumberExpression(Integer.MAX_VALUE) : max;
    this.percent = percent == null ? new SimpleBooleanExpression(false) : percent;
  }
View Full Code Here

Examples of org.apache.uima.ruta.expression.bool.SimpleBooleanExpression

  public ContainsCondition(ListExpression list, RutaExpression a, NumberExpression min,
          NumberExpression max, BooleanExpression percent) {
    super((TypeExpression) null);
    this.min = min == null ? new SimpleNumberExpression(Integer.valueOf(1)) : min;
    this.max = max == null ? new SimpleNumberExpression(Integer.MAX_VALUE) : max;
    this.percent = percent == null ? new SimpleBooleanExpression(false) : percent;
    this.argList = list;
    this.arg = a;
  }
View Full Code Here

Examples of org.apache.uima.ruta.expression.bool.SimpleBooleanExpression

    TypeExpression typeExpr2 = new ReferenceTypeExpression("typeVar");
    typeExprList.add(typeExpr1);
    typeExprList.add(typeExpr2);
    NumberExpression numExpr1 = new SimpleNumberExpression(4);
    NumberExpression numExpr2 = new ReferenceNumberExpression("numVar");
    BooleanExpression boolExpr1 = new SimpleBooleanExpression(true);
    StringExpression stringExpr = new SimpleStringExpression("string");
    stringExprList.add(stringExpr);
    exprList.add(typeExpr1);
    WordTableExpression wordTableExpr = new ReferenceWordTableExpression(var);
    WordListExpression wordListExpr = new ReferenceWordListExpression(var);
View Full Code Here

Examples of org.apache.uima.ruta.expression.bool.SimpleBooleanExpression

    s = v.verbalize(numExpr6);
    assertEquals("4.9 * 4 + numVar", s);
   
   
   
    BooleanExpression boolExpr1 = new SimpleBooleanExpression(true);
    BooleanExpression boolExpr2 = new SimpleBooleanExpression(false);
    BooleanExpression boolExpr3 = new ReferenceBooleanExpression(var);
    BooleanExpression boolExpr4 = new BooleanNumberExpression(numExpr1, "==", numExpr2);
    BooleanExpression boolExpr5 = new BooleanNumberExpression(numExpr1, "!=", numExpr2);
    BooleanExpression boolExpr6 = new BooleanNumberExpression(numExpr1, "<=", numExpr2);
    BooleanExpression boolExpr7 = new BooleanNumberExpression(numExpr1, ">=", numExpr2);
View Full Code Here

Examples of org.apache.uima.ruta.expression.bool.SimpleBooleanExpression

  public NearCondition(TypeExpression type, NumberExpression min, NumberExpression max,
          BooleanExpression forward, BooleanExpression filtered) {
    super(type);
    this.min = min == null ? new SimpleNumberExpression(1) : min;
    this.max = max == null ? new SimpleNumberExpression(1) : max;
    this.forward = forward == null ? new SimpleBooleanExpression(true) : forward;
    this.filtered = filtered == null ? new SimpleBooleanExpression(false) : filtered;
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.