Package org.graphstream.util.parser

Examples of org.graphstream.util.parser.ParseException


        jj_consume_token(COMMENT);
      } else if (jj_2_5(2)) {
        jj_consume_token(EOL);
      } else {
        jj_consume_token(-1);
        throw new ParseException();
      }
      if (jj_2_6(2)) {
        ;
      } else {
        break label_1;
View Full Code Here


    } else if (jj_2_12(2)) {
      jj_consume_token(0);
      ok = false;
    } else {
      jj_consume_token(-1);
      throw new ParseException();
    }

    return ok;
  }
View Full Code Here

          buf.append(" ");
        buf.append(k.image);
        first = false;
      } else {
        jj_consume_token(-1);
        throw new ParseException();
      }
    }
    ctx.addGraphAttribute("ui.label", buf.toString());
    EO();
  }
View Full Code Here

        vertex();
      } else if (jj_2_18(2)) {
        jj_consume_token(COMMENT);
      } else {
        jj_consume_token(-1);
        throw new ParseException();
      }
    }
  }
View Full Code Here

          x = jj_consume_token(REAL);
        } else if (jj_2_20(2)) {
          x = jj_consume_token(INT);
        } else {
          jj_consume_token(-1);
          throw new ParseException();
        }
        if (jj_2_21(2)) {
          y = jj_consume_token(REAL);
        } else if (jj_2_22(2)) {
          y = jj_consume_token(INT);
        } else {
          jj_consume_token(-1);
          throw new ParseException();
        }
        if (jj_2_25(2)) {
          if (jj_2_23(2)) {
            z = jj_consume_token(REAL);
          } else if (jj_2_24(2)) {
            z = jj_consume_token(INT);
          } else {
            jj_consume_token(-1);
            throw new ParseException();
          }
        } else {
          ;
        }
        ctx.addNodePosition(id.image, x, y, z);
        if (jj_2_32(2)) {
          if (jj_2_26(2)) {
            k = jj_consume_token(ELLIPSE);
            if (graphics == null)
              graphics = new NodeGraphics();
            graphics.addKey("shape", "circle", k);
          } else if (jj_2_27(2)) {
            k = jj_consume_token(BOX);
            if (graphics == null)
              graphics = new NodeGraphics();
            graphics.addKey("shape", "box", k);
          } else if (jj_2_28(2)) {
            k = jj_consume_token(TRIANGLE);
            if (graphics == null)
              graphics = new NodeGraphics();
            graphics.addKey("shape", "triangle", k);
          } else if (jj_2_29(2)) {
            k = jj_consume_token(CROSS);
            if (graphics == null)
              graphics = new NodeGraphics();
            graphics.addKey("shape", "cross", k);
          } else if (jj_2_30(2)) {
            k = jj_consume_token(DIAMOND);
            if (graphics == null)
              graphics = new NodeGraphics();
            graphics.addKey("shape", "diamond", k);
          } else if (jj_2_31(2)) {
            k = jj_consume_token(EMPTY);
            if (graphics == null)
              graphics = new NodeGraphics();
            graphics.addKey("shape", "circle", k);
          } else {
            jj_consume_token(-1);
            throw new ParseException();
          }
        } else {
          ;
        }
        label_4: while (true) {
          if (jj_2_33(2)) {
            ;
          } else {
            break label_4;
          }
          if (jj_2_34(2)) {
            k = jj_consume_token(SIZE);
            value = number();
            if (graphics == null)
              graphics = new NodeGraphics();
            graphics.addKey("s_size", value, k);
          } else if (jj_2_35(2)) {
            k = jj_consume_token(XFACT);
            value = number();

          } else if (jj_2_36(2)) {
            k = jj_consume_token(YFACT);
            value = number();

          } else if (jj_2_37(2)) {
            k = jj_consume_token(PHI);
            value = number();

          } else if (jj_2_38(2)) {
            k = jj_consume_token(R);
            value = number();

          } else if (jj_2_39(2)) {
            k = jj_consume_token(Q);
            value = number();

          } else if (jj_2_40(2)) {
            k = jj_consume_token(IC);
            value = color();
            if (graphics == null)
              graphics = new NodeGraphics();
            graphics.addKey("ic", value, k);
          } else if (jj_2_41(2)) {
            k = jj_consume_token(BC);
            value = color();
            if (graphics == null)
              graphics = new NodeGraphics();
            graphics.addKey("bc", value, k);
          } else if (jj_2_42(2)) {
            k = jj_consume_token(BW);
            value = number();
            if (graphics == null)
              graphics = new NodeGraphics();
            graphics.addKey("bw", value, k);
          } else if (jj_2_43(2)) {
            k = jj_consume_token(LC);
            value = color();
            if (graphics == null)
              graphics = new NodeGraphics();
            graphics.addKey("lc", value, k);
          } else if (jj_2_44(2)) {
            k = jj_consume_token(LA);
            value = number();

          } else if (jj_2_45(2)) {
            k = jj_consume_token(LR);
            value = number();

          } else if (jj_2_46(2)) {
            k = jj_consume_token(LPHI);
            value = number();

          } else if (jj_2_47(2)) {
            k = jj_consume_token(FOS);
            value = number();
            if (graphics == null)
              graphics = new NodeGraphics();
            graphics.addKey("fos", value, k);
          } else if (jj_2_48(2)) {
            k = jj_consume_token(FONT);
            value = keyOrString();
            if (graphics == null)
              graphics = new NodeGraphics();
            graphics.addKey("font", value, k);
          } else {
            jj_consume_token(-1);
            throw new ParseException();
          }
        }
        label_5: while (true) {
          if (jj_2_49(2)) {
            ;
          } else {
            break label_5;
          }
          if (jj_2_50(2)) {
            k = validIdentifier();
          } else if (jj_2_51(2)) {
            k = jj_consume_token(REAL);
          } else {
            jj_consume_token(-1);
            throw new ParseException();
          }
          System.err.printf("%d:%d: unparsed garbage in .net (%s)%n",
              k.beginLine, k.beginColumn, k.image);
        }
      } else {
View Full Code Here

          edge();
        } else if (jj_2_56(2)) {
          jj_consume_token(COMMENT);
        } else {
          jj_consume_token(-1);
          throw new ParseException();
        }
      }
    } else if (jj_2_67(2)) {
      jj_consume_token(EDGES);
      EO();
      edgeListMode = false;
      inVertices = false;
      ctx.setDirected(false);
      label_7: while (true) {
        if (jj_2_57(2)) {
          ;
        } else {
          break label_7;
        }
        if (jj_2_58(2)) {
          edge();
        } else if (jj_2_59(2)) {
          jj_consume_token(COMMENT);
        } else {
          jj_consume_token(-1);
          throw new ParseException();
        }
      }
    } else if (jj_2_68(2)) {
      jj_consume_token(ARCSLIST);
      EO();
      edgeListMode = true;
      inVertices = false;
      ctx.setDirected(true);
      label_8: while (true) {
        if (jj_2_60(2)) {
          ;
        } else {
          break label_8;
        }
        if (jj_2_61(2)) {
          edgeList();
        } else if (jj_2_62(2)) {
          jj_consume_token(COMMENT);
        } else {
          jj_consume_token(-1);
          throw new ParseException();
        }
      }
    } else if (jj_2_69(2)) {
      jj_consume_token(EDGESLIST);
      EO();
      edgeListMode = true;
      inVertices = false;
      ctx.setDirected(false);
      label_9: while (true) {
        if (jj_2_63(2)) {
          ;
        } else {
          break label_9;
        }
        if (jj_2_64(2)) {
          edgeList();
        } else if (jj_2_65(2)) {
          jj_consume_token(COMMENT);
        } else {
          jj_consume_token(-1);
          throw new ParseException();
        }
      }
    } else if (jj_2_70(2)) {
      matrix();
    } else if (jj_2_71(2)) {
      jj_consume_token(COMMENT);
    } else {
      jj_consume_token(-1);
      throw new ParseException();
    }
  }
View Full Code Here

        k = jj_consume_token(INT);
      } else if (jj_2_73(2)) {
        k = jj_consume_token(REAL);
      } else {
        jj_consume_token(-1);
        throw new ParseException();
      }
      ctx.addEdgeWeight(id, k);
      label_10: while (true) {
        if (jj_2_74(2)) {
          ;
        } else {
          break label_10;
        }
        if (jj_2_77(2)) {
          k = jj_consume_token(P);
          value = keyOrString();
          if (graphics == null)
            graphics = new EdgeGraphics();
          graphics.addKey("p", value, k);
        } else if (jj_2_78(2)) {
          k = jj_consume_token(W);
          value = number();
          if (graphics == null)
            graphics = new EdgeGraphics();
          graphics.addKey("w", value, k);
        } else if (jj_2_79(2)) {
          k = jj_consume_token(C);
          value = color();
          if (graphics == null)
            graphics = new EdgeGraphics();
          graphics.addKey("c", value, k);
        } else if (jj_2_80(2)) {
          k = jj_consume_token(S);
          value = number();
          if (graphics == null)
            graphics = new EdgeGraphics();
          graphics.addKey("s", value, k);
        } else if (jj_2_81(2)) {
          k = jj_consume_token(A);
          if (jj_2_75(2)) {
            k = jj_consume_token(A);
          } else if (jj_2_76(2)) {
            k = jj_consume_token(B);
          } else {
            jj_consume_token(-1);
            throw new ParseException();
          }
          if (graphics == null)
            graphics = new EdgeGraphics();
          graphics.addKey("a", k.image, k);
        } else if (jj_2_82(2)) {
          k = jj_consume_token(AP);
          value = number();
          if (graphics == null)
            graphics = new EdgeGraphics();
          graphics.addKey("ap", value, k);
        } else if (jj_2_83(2)) {
          k = jj_consume_token(L);
          value = keyOrString();
          if (graphics == null)
            graphics = new EdgeGraphics();
          graphics.addKey("l", value, k);
        } else if (jj_2_84(2)) {
          k = jj_consume_token(LP);
          value = number();
          if (graphics == null)
            graphics = new EdgeGraphics();
          graphics.addKey("lp", value, k);
        } else if (jj_2_85(2)) {
          k = jj_consume_token(LR);
          value = number();
          if (graphics == null)
            graphics = new EdgeGraphics();
          graphics.addKey("lr", value, k);
        } else if (jj_2_86(2)) {
          k = jj_consume_token(LPHI);
          value = number();
          if (graphics == null)
            graphics = new EdgeGraphics();
          graphics.addKey("lphi", value, k);
        } else if (jj_2_87(2)) {
          k = jj_consume_token(LC);
          value = color();
          if (graphics == null)
            graphics = new EdgeGraphics();
          graphics.addKey("lc", value, k);
        } else if (jj_2_88(2)) {
          k = jj_consume_token(LA);
          value = number();
          if (graphics == null)
            graphics = new EdgeGraphics();
          graphics.addKey("la", value, k);
        } else if (jj_2_89(2)) {
          k = jj_consume_token(FOS);
          value = number();
          if (graphics == null)
            graphics = new EdgeGraphics();
          graphics.addKey("fos", value, k);
        } else if (jj_2_90(2)) {
          k = jj_consume_token(FONT);
          value = keyOrString();
          if (graphics == null)
            graphics = new EdgeGraphics();
          graphics.addKey("font", value, k);
        } else if (jj_2_91(2)) {
          k = jj_consume_token(H1);
          value = number();
          if (graphics == null)
            graphics = new EdgeGraphics();
          graphics.addKey("h1", value, k);
        } else if (jj_2_92(2)) {
          k = jj_consume_token(H2);
          value = number();
          if (graphics == null)
            graphics = new EdgeGraphics();
          graphics.addKey("h2", value, k);
        } else if (jj_2_93(2)) {
          k = jj_consume_token(A1);
          value = number();
          if (graphics == null)
            graphics = new EdgeGraphics();
          graphics.addKey("a1", value, k);
        } else if (jj_2_94(2)) {
          k = jj_consume_token(A2);
          value = number();
          if (graphics == null)
            graphics = new EdgeGraphics();
          graphics.addKey("a2", value, k);
        } else if (jj_2_95(2)) {
          k = jj_consume_token(K1);
          value = number();
          if (graphics == null)
            graphics = new EdgeGraphics();
          graphics.addKey("k1", value, k);
        } else if (jj_2_96(2)) {
          k = jj_consume_token(K2);
          value = number();
          if (graphics == null)
            graphics = new EdgeGraphics();
          graphics.addKey("k2", value, k);
        } else {
          jj_consume_token(-1);
          throw new ParseException();
        }
      }
      label_11: while (true) {
        if (jj_2_97(2)) {
          ;
        } else {
          break label_11;
        }
        if (jj_2_98(2)) {
          k = validIdentifier();
        } else if (jj_2_99(2)) {
          k = jj_consume_token(REAL);
        } else {
          jj_consume_token(-1);
          throw new ParseException();
        }
        System.err.printf("%d:%d: unparsed garbage in .net (%s)%n",
            k.beginLine, k.beginColumn, k.image);
      }
    } else {
View Full Code Here

        mat.addLine(line);
      } else if (jj_2_104(2)) {
        jj_consume_token(COMMENT);
      } else {
        jj_consume_token(-1);
        throw new ParseException();
      }
      if (jj_2_105(2)) {
        ;
      } else {
        break label_14;
View Full Code Here

    } else if (jj_2_108(2)) {
      k = jj_consume_token(STRING);
      value = k.image.substring(1, k.image.length() - 1);
    } else {
      jj_consume_token(-1);
      throw new ParseException();
    }

    return value;
  }
View Full Code Here

      k = jj_consume_token(INT);
    } else if (jj_2_110(2)) {
      k = jj_consume_token(REAL);
    } else {
      jj_consume_token(-1);
      throw new ParseException();
    }

    return k.image;
  }
View Full Code Here

TOP

Related Classes of org.graphstream.util.parser.ParseException

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.