Tabnine Logo
ProgramI.print
Code IndexAdd Tabnine to your IDE (free)

How to use
print
method
in
jplag.ProgramI

Best Java code snippets using jplag.ProgramI.print (Showing top 10 results out of 315)

origin: jplag/jplag

public void outOfSerials() {
  if (runOut)
    return;
  runOut = true;
  errors++;
  program.print("ERROR: Out of serials!", null);
  System.out.println("jplag.text.Parser: ERROR: Out of serials!");
}
origin: jplag/jplag

public jplag.Structure parse(File dir, String files[]) {
  struct = new Structure();
  errors = 0;
  for (int i = 0; i < files.length; i++) {
    getProgram().print(null, "Parsing file " + files[i] + "\n");
    if (!parseFile(dir, files[i]))
      errors++;
    struct.addToken(new CharToken(FILE_END, files[i], this));
  }
  //System.err.println(struct.toString());
  if (errors == 0)
    program.print(null, "OK");
  else
    program.print(null, errors + " ERROR" + (errors > 1 ? "S" : ""));
  this.parseEnd();
  return struct;
}
origin: jplag/jplag

public jplag.Structure parse(File dir, String files[]) {
  struct = new jplag.Structure();
  errors = 0;
  JavaParser parser = null;// no worry it will be reinitialized
  // in method parseFile(...)
  for (int i = 0; i < files.length; i++) {
    actFile = files[i];
    getProgram().print(null, "Parsing file " + files[i] + "\n");
    if (!JavaParser.parseFile(dir, files[i], parser, this))
      errors++;
    struct.addToken(new JavaToken(FILE_END, actFile, 0));
  }
  // System.err.println(struct.toString());
  if (errors == 0)
    program.print(null, "OK\n");
  else
    program.print(null, errors + " ERRORS\n");
  this.parseEnd();
  return struct;
}
origin: jplag/jplag

public jplag.Structure parse(File dir, String files[]) {
  struct = new Structure();
  errors = 0;
  for (int i = 0; i < files.length; i++) {
    getProgram().print(null, "Parsing file " + files[i] + "\n");
    if (!parseFile(dir, files[i]))
      errors++;
    System.gc();//Emeric
    struct.addToken(new JavaToken(FILE_END, files[i], -1, -1, -1));
  }
  this.parseEnd();
  return struct;
}
origin: jplag/jplag

public jplag.Structure parse(File dir, String files[]) {
  struct = new Structure();
  errors = 0;
  for (int i = 0; i < files.length; i++) {
    getProgram().print(null, "Parsing file " + files[i] + "\n");
    if (!parseFile(dir, files[i]))
      errors++;
    System.gc();//Emeric
    struct.addToken(new JavaToken(FILE_END, files[i], -1, -1, -1));
  }
  this.parseEnd();
  return struct;
}
origin: jplag/jplag

public jplag.Structure parse(File dir, String files[]) {
  struct = new Structure();
  errors = 0;
  for (int i = 0; i < files.length; i++) {
    getProgram().print(null, "Parsing file " + files[i] + "\n");
    if (!parseFile(dir, files[i])) {
      errors++;
    }
    System.gc();//Emeric
    struct.addToken(new Python3Token(FILE_END, files[i], -1, -1, -1));
  }
  this.parseEnd();
  return struct;
}
origin: jplag/jplag

public jplag.Structure parse(File dir, String files[]) {
  struct = new jplag.Structure();
  errors = 0;
  SchemeParser parser = null;// no worry it will be reinitialized
  // in method parseFile(...)
  for (int i = 0; i < files.length; i++) {
    actFile = files[i];
    getProgram().print(null, "Parsing file " + files[i] + "\n");
    if (!SchemeParser.parseFile(dir, files[i], parser, this))
      errors++;
    struct.addToken(new SchemeToken(FILE_END, actFile, 1));
  }
  this.parseEnd();
  return struct;
}
origin: jplag/jplag

public jplag.Structure parse(File dir, String files[]) {
  struct = new jplag.Structure();
  errors = 0;
  JavaParser parser = null; // This will be (re)initialised in parseFile()
  for (int i = 0; i < files.length; i++) {
    actFile = files[i];
    getProgram().print(null, "Parsing file " + files[i] + "\n");
    if (!JavaParser.parseFile(dir, files[i], parser, this))
      errors++;
    struct.addToken(new JavaToken(FILE_END, actFile, -1, -1, -1));
  }
  this.parseEnd();
  return struct;
}
origin: jplag/jplag

public jplag.Structure scan(File dir, String files[]) {
  struct = new jplag.Structure();
  errors = 0;
  CPPScanner scanner = null;// will be initialized in Method scanFile
  for (int i = 0; i < files.length; i++) {
    actFile = files[i];
    getProgram().print(null, "Scanning file " + files[i] + "\n");
    if (!CPPScanner.scanFile(dir, files[i], scanner, this))
      errors++;
    struct.addToken(new CPPToken(FILE_END, actFile, 1));
  }
  this.parseEnd();
  return struct;
}
origin: jplag/jplag

public jplag.Structure parse(File dir, String files[]) {
  struct = new Structure();
  errors = 0;
  for (int i = 0; i < files.length; i++) {
    getProgram().print("", "Parsing file " + files[i] + "\n");
    if (!parseFile(dir, files[i]))
      errors++;
    struct.addToken(new TextToken(FILE_END, files[i], this));
  }
  Structure tmp = struct;
  struct = null;
  this.parseEnd();
  return tmp;
}
jplagProgramIprint

Popular methods of ProgramI

  • addError

Popular in Java

  • Reading from database using SQL prepared statement
  • setRequestProperty (URLConnection)
  • requestLocationUpdates (LocationManager)
  • getContentResolver (Context)
  • VirtualMachine (com.sun.tools.attach)
    A Java virtual machine. A VirtualMachine represents a Java virtual machine to which this Java vir
  • BorderLayout (java.awt)
    A border layout lays out a container, arranging and resizing its components to fit in five regions:
  • Date (java.util)
    A specific moment in time, with millisecond precision. Values typically come from System#currentTime
  • Deque (java.util)
    A linear collection that supports element insertion and removal at both ends. The name deque is shor
  • Notification (javax.management)
  • ServletException (javax.servlet)
    Defines a general exception a servlet can throw when it encounters difficulty.
  • Top PhpStorm plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now