Package org.antlr.v4.runtime.misc

Examples of org.antlr.v4.runtime.misc.IntegerList.toArray()


  public List<String> serialized;
  public SerializedATN(OutputModelFactory factory, ATN atn) {
    super(factory);
    IntegerList data = ATNSerializer.getSerialized(atn);
    serialized = new ArrayList<String>(data.size());
    for (int c : data.toArray()) {
      String encoded = factory.getGenerator().getTarget().encodeIntAsCharEscape(c == -1 ? Character.MAX_VALUE : c);
      serialized.add(encoded);
    }
//    System.out.println(ATNSerializer.getDecoded(factory.getGrammar(), atn));
  }
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.