Examples of Operator


Examples of org.neo4j.cypherdsl.query.Operator

    private final Identifier owner;
    private final Identifier name;

    Property(Identifier owner, Identifier name)
    {
        super( new Operator( owner, "." ), name );
        this.owner = owner;
        this.name = name;
    }
View Full Code Here

Examples of org.netbeans.jemmy.operators.Operator

    private static void dumpOne(Component component, PrintWriter writer, String tab, DumpController listener) {
        //whether to dump at all
        boolean toDump = listener.onComponentDump(component);
        if(toDump) {
            try {
                Operator oper = Operator.createOperator(component);
                Hashtable componentDump = oper.getDump();
                printTagOpening(writer, "component", tab);
                writer.print(" operator=\"" +
                        oper.getClass().getName() + "\"");
                printTagClosing(writer, "component");
                Object[] keys = componentDump.keySet().toArray();
                Arrays.sort(keys);
                String name, value;
                for(int i = 0; i < keys.length; i++) {
View Full Code Here

Examples of org.nutz.el.Operator

  /**
   * 计算
   */
  private Object calculate(Deque<Object> el2){
    if(el2.peek() instanceof Operator){
      Operator obj = (Operator) el2.peek();
      return obj.calculate();
    }
    if(el2.peek() instanceof IdentifierObj){
      return ((IdentifierObj) el2.peek()).fetchVal();
    }
    return el2.peek();
View Full Code Here

Examples of org.nutz.el.Operator

   */
  private Deque<Object> OperatorTree(Queue<Object> rpn){
    Deque<Object> operand = new LinkedList<Object>();
    while(!rpn.isEmpty()){
      if(rpn.peek() instanceof Operator){
        Operator opt = (Operator) rpn.poll();
        opt.wrap(operand);
        operand.addFirst(opt);
        continue;
      }
      if(rpn.peek() instanceof IdentifierObj){
        ((IdentifierObj) rpn.peek()).setEc(ec);
View Full Code Here

Examples of org.objectweb.medor.expression.api.Operator

        || e instanceof Lower
        || e instanceof LowerEqual;
    if (res == false) {
      return false;
    }
    Operator op = (Operator) e;

    if (!(op.getExpression(0) instanceof Operand
        && op.getExpression(1) instanceof Operand)) {
      return false;
    }
    Operand o0 = (Operand) op.getExpression(0);
    Operand o1 = (Operand) op.getExpression(1);
    if (o0.getType().getTypeCode() == PTypeSpace.STRING.getTypeCode()) {
      return true;
    } else if (o1.getType().getTypeCode() == PTypeSpace.STRING.getTypeCode()) {
      //reverse the order: column name at left
      op.setExpression(0, o1);
      op.setExpression(1, o0);
      return true;
    } else {
      return false;
    }
  }
View Full Code Here

Examples of org.ofbiz.pos.component.Operator

        // setup the shared components
        this.session = XuiContainer.getSession();
        this.output = new Output(this);
        this.input = new InputWithPassword(this);
        this.journal = new Journal(this);
        this.operator = new Operator(this);
        this.setLastActivity(System.currentTimeMillis());

        if (!firstInit) {
            firstInit = true;
View Full Code Here

Examples of org.olat.course.condition.operators.Operator

      int i = 0;
      for(Iterator<ExtendedCondition> iterator = conditions.iterator(); iterator.hasNext();) {
        ExtendedCondition extendedCondition = iterator.next();
        String attribute = extendedCondition.getAttribute();
        int position = LogModule.getUserPropertyPosition(attribute);
        Operator operator = extendedCondition.getOperator();
        String value = extendedCondition.getValue();
        // Is position equal to 0 then the list userProperties doesn't contain the value of attribute.
        if (position > 0 && operator.buildSQLStatement(attribute, value).length() > 0) {
          values[i] = value;
          String connection = "";
          if(!firstIteration) {
            connection = " " + (hasANDConnection?"AND":"OR") + " ";
          }
          query = query.concat(connection + operator.buildSQLStatement("v.userProperty"+position, ":value"+i));
          i++;
        }
        if (firstIteration) firstIteration = false;
      }
      query = query.concat(")");
View Full Code Here

Examples of org.olat.course.condition.operators.Operator

      int i = 0;
      for(Iterator<ExtendedCondition> iterator = conditions.iterator(); iterator.hasNext();) {
        ExtendedCondition extendedCondition = iterator.next();
        String attribute = extendedCondition.getAttribute();
        int position = LogModule.getUserPropertyPosition(attribute);
        Operator operator = extendedCondition.getOperator();
        String value = extendedCondition.getValue();
        // Is position equal to 0 then the list userProperties doesn't contain the value of attribute.
        if (position > 0 && operator.buildSQLStatement(attribute, value).length() > 0) {
          values[i] = value;
          String connection = "";
          if(!firstIteration) {
            connection = " " + (hasANDConnection?"AND":"OR") + " ";
          }
          query = query.concat(connection + operator.buildSQLStatement("v.userProperty"+position, ":value"+i));
          i++;
        }
        if (firstIteration) firstIteration = false;
      }
      query = query.concat(")");
View Full Code Here

Examples of org.opengis.filter.capability.Operator

        throws Exception {
        return factory.operator((String) value);
    }

    public String encode(Object object, String value) throws Exception {
        Operator op = (Operator) object;

        return op.getName();
    }
View Full Code Here

Examples of org.restsql.core.RequestValue.Operator

      // Now iterate through each and look for invalid multiples
      for (List<RequestValue> list : paramsByName.values()) {
        if (list.size() > 1) {
          String name = list.get(0).getName();
          if (list.size() == 2) {
            Operator first = list.get(0).getOperator();
            Operator second = list.get(1).getOperator();
            if (first == Operator.Equals || second == Operator.Equals) {
              throw new InvalidRequestException("Parameter " + name + " found twice");
            } else if ((first == Operator.GreaterThan || first == Operator.GreaterThanOrEqualTo)
                && (second == Operator.GreaterThan || second == Operator.GreaterThanOrEqualTo)) {
              throw new InvalidRequestException("Parameter " + name + " found twice with "
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.