Package org.objectweb.medor.expression.api

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


    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 {
View Full Code Here


        } else if (e instanceof Equal){
            Expression tmpe = ((Operator) e).getExpression(0);
            if (!(tmpe instanceof Operand)) {
                return false;
            }
            Operand op0 = (Operand) tmpe;
            tmpe = ((Operator) e).getExpression(1);
            if (!(tmpe instanceof Operand)) {
                return false;
            }
            Operand op1 = (Operand) tmpe;
            //Equal between two operand
            if (op0 instanceof FieldOperand) {
            } else if (op1 instanceof FieldOperand) {
                //revert if op1 is
                Operand o = op0;
                op0 = op1;
                op1 = o;
            } else {
                return false;
            }
View Full Code Here

TOP

Related Classes of org.objectweb.medor.expression.api.Operand

Copyright © 2018 www.massapicom. 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.