Examples of ListExpression


Examples of com.icona.tree.nodes.Expression.ListExpression

    Expression expression;
    Statement statement;
   
    @Override
    public String toString(){
      ListExpression le=null;
      if(expression.getClass()==ListExpression.class)
        le=(ListExpression)expression;
      boolean insertParenthesis=statement.hasMultipleExpressions() || le!=null && le.isMultipleExpression() ;
      CodeStringBuilder sb=new CodeStringBuilder();

      if(le!=null) sb.appendWithNewLine(le.getAllExceptLastExpressionString());
      sb.appendWithTab("while(");
      sb.append((le!=null)?le.getLastExpressionString():expression.toString());
      sb.appendWithNewLine(")");
     
      if(insertParenthesis) sb.appendWithTabNewLine("{");
     
      sb.appendWithNewLine(statement.toString());
      //sb.append("\n");
      if(le.isMultipleExpression()) sb.appendWithNewLine(le.getAllExceptLastExpressionString());
     
     
      if(insertParenthesis) sb.appendWithTabNewLine("}");
      return sb.toString();
    }
View Full Code Here

Examples of com.volantis.styling.impl.expressions.ListExpression

        }

        // If the list contained any compiled values then create a special
        // list expression.
        if (containsCompiledValue) {
            ListExpression expression = new ListExpression(compiledList);
            compiledValue = new StyleCompiledExpression(expression);
        }
    }
View Full Code Here

Examples of org.apache.uima.ruta.expression.list.ListExpression

    TypeListExpression typeListExpr = new SimpleTypeListExpression(typeExprList);
    StringListExpression stringListExpr = new SimpleStringListExpression(stringExprList);
    Map<IStringExpression, IRutaExpression> stringExprMap = new HashMap<IStringExpression, IRutaExpression>();
    Map<IStringExpression, INumberExpression> stringExprNumExprMap = new HashMap<IStringExpression, INumberExpression>();
    Map<IStringExpression, TypeExpression> stringExprTypeExprMap = new HashMap<IStringExpression, TypeExpression>();
    @SuppressWarnings("rawtypes")
    ListExpression listExpr = new SimpleTypeListExpression(typeExprList);
    @SuppressWarnings("rawtypes")
    List<ListExpression> listExprList = new ArrayList<ListExpression>();
    listExprList.add(listExpr);
    stringExprMap.put(stringExpr, stringExpr);
View Full Code Here

Examples of org.apache.uima.ruta.expression.list.ListExpression

    List list = environment.getVariableValue(var, List.class);
    // Class<?> vtype = environment.getVariableType(var);
    Class<?> vgtype = environment.getVariableGenericType(var);
    for (IRutaExpression each : elements) {
      if (each instanceof ListExpression) {
        ListExpression l = (ListExpression) each;
        list.addAll(l.getList(parent, stream));
      } else if (vgtype.equals(Boolean.class) && each instanceof IBooleanExpression) {
        list.add(((IBooleanExpression) each).getBooleanValue(parent, match, element, stream));
      } else if (vgtype.equals(Integer.class) && each instanceof INumberExpression) {
        list.add(((INumberExpression) each).getIntegerValue(parent, match, element, stream));
      } else if (vgtype.equals(Double.class) && each instanceof INumberExpression) {
View Full Code Here

Examples of org.apache.uima.ruta.expression.list.ListExpression

    List<Object> toRemove = new ArrayList<Object>();
    for (Object entry : list) {
      Object value1 = getValue(entry, parent, stream);
      for (IRutaExpression arg : elements) {
        if (arg instanceof ListExpression) {
          ListExpression l = (ListExpression) arg;
          List list2 = l.getList(parent, stream);
          for (Object object : list2) {
            Object value2 = getValue(object, parent, stream);
            if (value1.equals(value2)) {
              toRemove.add(entry);
            }
View Full Code Here

Examples of org.apache.uima.ruta.expression.list.ListExpression

    TypeListExpression typeListExpr = new SimpleTypeListExpression(typeExprList);
    StringListExpression stringListExpr = new SimpleStringListExpression(stringExprList);
    Map<StringExpression, RutaExpression> stringExprMap = new HashMap<StringExpression, RutaExpression>();
    Map<StringExpression, NumberExpression> stringExprNumExprMap = new HashMap<StringExpression, NumberExpression>();
    Map<StringExpression, TypeExpression> stringExprTypeExprMap = new HashMap<StringExpression, TypeExpression>();
    @SuppressWarnings("rawtypes")
    ListExpression listExpr = new SimpleTypeListExpression(typeExprList);
    @SuppressWarnings("rawtypes")
    List<ListExpression> listExprList = new ArrayList<ListExpression>();
    listExprList.add(listExpr);
    stringExprMap.put(stringExpr, stringExpr);
View Full Code Here

Examples of org.apache.uima.ruta.expression.list.ListExpression

    List list = environment.getVariableValue(var, List.class);
    // Class<?> vtype = environment.getVariableType(var);
    Class<?> vgtype = environment.getVariableGenericType(var);
    for (RutaExpression each : elements) {
      if (each instanceof ListExpression) {
        ListExpression l = (ListExpression) each;
        list.addAll(l.getList(parent));
      } else if (vgtype.equals(Boolean.class) && each instanceof BooleanExpression) {
        list.add(((BooleanExpression) each).getBooleanValue(parent));
      } else if (vgtype.equals(Integer.class) && each instanceof NumberExpression) {
        list.add(((NumberExpression) each).getIntegerValue(parent));
      } else if (vgtype.equals(Double.class) && each instanceof NumberExpression) {
View Full Code Here

Examples of org.apache.uima.ruta.expression.list.ListExpression

    List<Object> toRemove = new ArrayList<Object>();
    for (Object entry : list) {
      Object value1 = getValue(entry, parent);
      for (RutaExpression arg : elements) {
        if(arg instanceof ListExpression) {
          ListExpression l = (ListExpression) arg;
          List list2 = l.getList(parent);
          for (Object object : list2) {
            Object value2 = getValue(object, parent);
            if(value1.equals(value2)) {
              toRemove.add(entry);
            }
View Full Code Here

Examples of org.apache.uima.ruta.expression.list.ListExpression

    List list = environment.getVariableValue(var, List.class);
    // Class<?> vtype = environment.getVariableType(var);
    Class<?> vgtype = environment.getVariableGenericType(var);
    for (RutaExpression each : elements) {
      if (each instanceof ListExpression) {
        ListExpression l = (ListExpression) each;
        list.addAll(l.getList(parent, stream));
      } else if (vgtype.equals(Boolean.class) && each instanceof BooleanExpression) {
        list.add(((BooleanExpression) each).getBooleanValue(parent, match, element, stream));
      } else if (vgtype.equals(Integer.class) && each instanceof NumberExpression) {
        list.add(((NumberExpression) each).getIntegerValue(parent, match, element, stream));
      } else if (vgtype.equals(Double.class) && each instanceof NumberExpression) {
View Full Code Here

Examples of org.apache.uima.ruta.expression.list.ListExpression

    List<Object> toRemove = new ArrayList<Object>();
    for (Object entry : list) {
      Object value1 = getValue(entry, parent, stream);
      for (RutaExpression arg : elements) {
        if (arg instanceof ListExpression) {
          ListExpression l = (ListExpression) arg;
          List list2 = l.getList(parent, stream);
          for (Object object : list2) {
            Object value2 = getValue(object, parent, stream);
            if (value1.equals(value2)) {
              toRemove.add(entry);
            }
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.