Package org.antlr.misc

Examples of org.antlr.misc.IntSet.toList()


  protected static Integer getTokenType(Label label) {
    if ( label.isSet() ) {
      // pick random element of set
      IntSet typeSet = label.getSet();
      List typeList = typeSet.toList();
      int randomIndex = random.nextInt(typeList.size());
      return (Integer)typeList.get(randomIndex);
    }
    else {
      return Utils.integer(label.getAtom());
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.