Examples of lineno()


Examples of java.io.StreamTokenizer.lineno()

                }
               
                // If there was a token, add it to the current list of tokens.
                //  If necessary, also update the current line number, and add the old line to the module location list.
                if (token != null) {
                    int lineNo = st.lineno();
                    lineNoTokenPairList.add(new Pair<Integer, String>(Integer.valueOf(lineNo), token));
                   
                }
            }
           
View Full Code Here

Examples of java.io.StreamTokenizer.lineno()

      }
    } catch (RuntimeException e) {
      if (e.getMessage().startsWith("Line #")) {
        throw e;
      } else {
        throw new RuntimeException("Line #" + (stok.lineno() + getAlgLineNum()) + ": ", e);
      }
    } catch (Throwable t) {
      throw new RuntimeException("Line #" + (stok.lineno() + getAlgLineNum()) + ": ", t);
    }
View Full Code Here

Examples of java.io.StreamTokenizer.lineno()

        throw e;
      } else {
        throw new RuntimeException("Line #" + (stok.lineno() + getAlgLineNum()) + ": ", e);
      }
    } catch (Throwable t) {
      throw new RuntimeException("Line #" + (stok.lineno() + getAlgLineNum()) + ": ", t);
    }


  }
View Full Code Here

Examples of java.io.StreamTokenizer.lineno()

        case StreamTokenizer.TT_WORD:
          String s = stok.sval;
          Constructor<? extends PerfTask> cnstr = taskClass(config,s)
            .asSubclass(PerfTask.class).getConstructor(PerfRunData.class);
          PerfTask task = cnstr.newInstance(runData);
          task.setAlgLineNum(stok.lineno());
          task.setDisableCounting(isDisableCountNextTask);
          isDisableCountNextTask = false;
          currSequence.addTask(task);
          if (task instanceof RepSumByPrefTask) {
            stok.nextToken();
View Full Code Here

Examples of org.apache.etch.compiler.opt.ToString.lineno()

    ToString ts = (ToString) n.getOpt( "ToString" );
    List<FmtItem> list;
    if (ts != null)
    {
      list = ts.getFormat();
      n.checkFormatList( ts.lineno(), list );
    }
    else if (isExcept)
    {
      list = n.mkFormatList( true, ((Except)n).hasExtends() );
      // Temp Fix :remove once Scott fixes the ParamList code
View Full Code Here

Examples of org.apache.etch.compiler.opt.ToString.lineno()

    ToString ts = (ToString) n.getOpt( "ToString" );
    List<FmtItem> list;
    if (ts != null)
    {
      list = ts.getFormat();
      n.checkFormatList( ts.lineno(), list );
    }
    else
      list = n.mkFormatList( isExcept, false );

    if (list.size() == 1)
View Full Code Here

Examples of org.apache.etch.compiler.opt.ToString.lineno()

    ToString ts = (ToString) n.getOpt( "ToString" );
    List<FmtItem> list;
    if (ts != null)
    {
      list = ts.getFormat();
      n.checkFormatList( ts.lineno(), list );
    }
    else if (isExcept) {
      list = n.mkFormatList( true, ((Except)n).hasExtends() );
      // Temp Fix :remove once Scott fixes the ParamList code
      modifyFormatList(list,true);
View Full Code Here

Examples of org.apache.etch.compiler.opt.ToString.lineno()

      throws ParseException, IOException {
    ToString ts = (ToString) n.getOpt("ToString");
    List<FmtItem> list;
    if (ts != null) {
      list = ts.getFormat();
      n.checkFormatList(ts.lineno(), list);
    } else if (isExcept)
      list = n.mkFormatList(true, ((Except) n).hasExtends());
    else
      list = n.mkFormatList(false, ((Struct) n).hasExtends());
View Full Code Here

Examples of org.apache.etch.compiler.opt.ToString.lineno()

    ToString ts = (ToString) n.getOpt( "ToString" );
    List<FmtItem> list;
    if (ts != null)
    {
      list = ts.getFormat();
      n.checkFormatList( ts.lineno(), list );
    }
    else if (isExcept)
      list = n.mkFormatList( true, ((Except)n).hasExtends() );
    else
      list = n.mkFormatList( false, ((Struct)n).hasExtends() );
View Full Code Here

Examples of org.apache.etch.compiler.opt.ToString.lineno()

    ToString ts = (ToString) n.getOpt( "ToString" );
    List<FmtItem> list;
    if (ts != null)
    {
      list = ts.getFormat();
      n.checkFormatList( ts.lineno(), list );
    }
    else if (isExcept)
      list = n.mkFormatList( true, ((Except)n).hasExtends() );
    else
      list = n.mkFormatList( false, ((Struct)n).hasExtends() );
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.