org.eclipse.jdt.internal.compiler.parser.Parser.buildFileForTable()方法的使用及代码示例

x33g5p2x  于2022-01-26 转载在 其他  
字(12.1k)|赞(0)|评价(0)|浏览(188)

本文整理了Java中org.eclipse.jdt.internal.compiler.parser.Parser.buildFileForTable()方法的一些代码示例,展示了Parser.buildFileForTable()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Parser.buildFileForTable()方法的具体详情如下:
包路径:org.eclipse.jdt.internal.compiler.parser.Parser
类名称:Parser
方法名:buildFileForTable

Parser.buildFileForTable介绍

暂无

代码示例

代码示例来源:origin: org.eclipse.jdt/org.eclipse.jdt.core

private static void buildFilesForStatementsRecoveryFilter(
    String filename,
    char[] newNonTerminalIndex,
    char[] newLhs,
    String[] tokens) {

    char[] newStatementsRecoveryFilter = new char[newNonTerminalIndex.length];

    for (int i = 0; i < tokens.length; i = i + 3) {
      if("4".equals(tokens[i])) { //$NON-NLS-1$
        int index = newLhs[Integer.parseInt(tokens[i + 1])];

        newStatementsRecoveryFilter[index] = 1;
      }
    }
    buildFileForTable(filename, newStatementsRecoveryFilter);
  }
public final static void buildFilesFromLPG(String dataFilename, String dataFilename2) {

代码示例来源:origin: com.google.code.maven-play-plugin.org.eclipse.jdt/org.eclipse.jdt.core

private static void buildFilesForStatementsRecoveryFilter(
    String filename,
    char[] newNonTerminalIndex,
    char[] newLhs,
    String[] tokens) {

    char[] newStatementsRecoveryFilter = new char[newNonTerminalIndex.length];

    for (int i = 0; i < tokens.length; i = i + 3) {
      if("4".equals(tokens[i])) { //$NON-NLS-1$
        int index = newLhs[Integer.parseInt(tokens[i + 1])];

        newStatementsRecoveryFilter[index] = 1;
      }
    }
    buildFileForTable(filename, newStatementsRecoveryFilter);
  }
public final static void buildFilesFromLPG(String dataFilename, String dataFilename2) {

代码示例来源:origin: org.jibx.config.3rdparty.org.eclipse/org.eclipse.jdt.core

private static void buildFilesForStatementsRecoveryFilter(
    String filename,
    char[] newNonTerminalIndex,
    char[] newLhs,
    String[] tokens) {

    char[] newStatementsRecoveryFilter = new char[newNonTerminalIndex.length];

    for (int i = 0; i < tokens.length; i = i + 3) {
      if("4".equals(tokens[i])) { //$NON-NLS-1$
        int index = newLhs[Integer.parseInt(tokens[i + 1])];

        newStatementsRecoveryFilter[index] = 1;
      }
    }
    buildFileForTable(filename, newStatementsRecoveryFilter);
  }
public final static void buildFilesFromLPG(String dataFilename, String dataFilename2) {

代码示例来源:origin: com.ovea.tajin.server/tajin-server-tomcat7

private static void buildFilesForStatementsRecoveryFilter(
    String filename,
    char[] newNonTerminalIndex,
    char[] newLhs,
    String[] tokens) {

    char[] newStatementsRecoveryFilter = new char[newNonTerminalIndex.length];

    for (int i = 0; i < tokens.length; i = i + 3) {
      if("4".equals(tokens[i])) { //$NON-NLS-1$
        int index = newLhs[Integer.parseInt(tokens[i + 1])];

        newStatementsRecoveryFilter[index] = 1;
      }
    }
    buildFileForTable(filename, newStatementsRecoveryFilter);
  }
public final static void buildFilesFromLPG(String dataFilename, String dataFilename2) {

代码示例来源:origin: org.eclipse.jdt.core.compiler/ecj

private static void buildFilesForStatementsRecoveryFilter(
    String filename,
    char[] newNonTerminalIndex,
    char[] newLhs,
    String[] tokens) {

    char[] newStatementsRecoveryFilter = new char[newNonTerminalIndex.length];

    for (int i = 0; i < tokens.length; i = i + 3) {
      if("4".equals(tokens[i])) { //$NON-NLS-1$
        int index = newLhs[Integer.parseInt(tokens[i + 1])];

        newStatementsRecoveryFilter[index] = 1;
      }
    }
    buildFileForTable(filename, newStatementsRecoveryFilter);
  }
public final static void buildFilesFromLPG(String dataFilename, String dataFilename2) {

代码示例来源:origin: org.eclipse.tycho/org.eclipse.jdt.core

private static void buildFilesForStatementsRecoveryFilter(
    String filename,
    char[] newNonTerminalIndex,
    char[] newLhs,
    String[] tokens) {

    char[] newStatementsRecoveryFilter = new char[newNonTerminalIndex.length];

    for (int i = 0; i < tokens.length; i = i + 3) {
      if("4".equals(tokens[i])) { //$NON-NLS-1$
        int index = newLhs[Integer.parseInt(tokens[i + 1])];

        newStatementsRecoveryFilter[index] = 1;
      }
    }
    buildFileForTable(filename, newStatementsRecoveryFilter);
  }
public final static void buildFilesFromLPG(String dataFilename, String dataFilename2) {

代码示例来源:origin: org.eclipse.scout.sdk.deps/ecj

private static void buildFilesForStatementsRecoveryFilter(
    String filename,
    char[] newNonTerminalIndex,
    char[] newLhs,
    String[] tokens) {

    char[] newStatementsRecoveryFilter = new char[newNonTerminalIndex.length];

    for (int i = 0; i < tokens.length; i = i + 3) {
      if("4".equals(tokens[i])) { //$NON-NLS-1$
        int index = newLhs[Integer.parseInt(tokens[i + 1])];

        newStatementsRecoveryFilter[index] = 1;
      }
    }
    buildFileForTable(filename, newStatementsRecoveryFilter);
  }
public final static void buildFilesFromLPG(String dataFilename, String dataFilename2) {

代码示例来源:origin: org.eclipse.jetty.orbit/org.eclipse.jdt.core

private static void buildFilesForStatementsRecoveryFilter(
    String filename,
    char[] newNonTerminalIndex,
    char[] newLhs,
    String[] tokens) {

    char[] newStatementsRecoveryFilter = new char[newNonTerminalIndex.length];

    for (int i = 0; i < tokens.length; i = i + 3) {
      if("4".equals(tokens[i])) { //$NON-NLS-1$
        int index = newLhs[Integer.parseInt(tokens[i + 1])];

        newStatementsRecoveryFilter[index] = 1;
      }
    }
    buildFileForTable(filename, newStatementsRecoveryFilter);
  }
public final static void buildFilesFromLPG(String dataFilename, String dataFilename2) {

代码示例来源:origin: trylimits/Eclipse-Postfix-Code-Completion

private static void buildFilesForStatementsRecoveryFilter(
    String filename,
    char[] newNonTerminalIndex,
    char[] newLhs,
    String[] tokens) {

    char[] newStatementsRecoveryFilter = new char[newNonTerminalIndex.length];

    for (int i = 0; i < tokens.length; i = i + 3) {
      if("4".equals(tokens[i])) { //$NON-NLS-1$
        int index = newLhs[Integer.parseInt(tokens[i + 1])];

        newStatementsRecoveryFilter[index] = 1;
      }
    }
    buildFileForTable(filename, newStatementsRecoveryFilter);
  }
public final static void buildFilesFromLPG(String dataFilename, String dataFilename2) {

代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.jdt.core

private static void buildFilesForStatementsRecoveryFilter(
    String filename,
    char[] newNonTerminalIndex,
    char[] newLhs,
    String[] tokens) {

    char[] newStatementsRecoveryFilter = new char[newNonTerminalIndex.length];

    for (int i = 0; i < tokens.length; i = i + 3) {
      if("4".equals(tokens[i])) { //$NON-NLS-1$
        int index = newLhs[Integer.parseInt(tokens[i + 1])];

        newStatementsRecoveryFilter[index] = 1;
      }
    }
    buildFileForTable(filename, newStatementsRecoveryFilter);
  }
public final static void buildFilesFromLPG(String dataFilename, String dataFilename2) {

代码示例来源:origin: com.vaadin/vaadin-client-compiler-deps

private static void buildFilesForStatementsRecoveryFilter(
    String filename,
    char[] newNonTerminalIndex,
    char[] newLhs,
    String[] tokens) {

    char[] newStatementsRecoveryFilter = new char[newNonTerminalIndex.length];

    for (int i = 0; i < tokens.length; i = i + 3) {
      if("4".equals(tokens[i])) { //$NON-NLS-1$
        int index = newLhs[Integer.parseInt(tokens[i + 1])];

        newStatementsRecoveryFilter[index] = 1;
      }
    }
    buildFileForTable(filename, newStatementsRecoveryFilter);
  }
public final static void buildFilesFromLPG(String dataFilename, String dataFilename2) {

代码示例来源:origin: org.eclipse.jdt.core.compiler/ecj

private final static char[] buildFileOfIntFor(String filename, String tag, String[] tokens) {

  //transform the String tokens into chars before dumping then into file

  int i = 0;
  //read upto the tag
  while (!tokens[i++].equals(tag)){/*empty*/}
  //read upto the }

  char[] chars = new char[tokens.length]; //can't be bigger
  int ic = 0;
  String token;
  while (!(token = tokens[i++]).equals("}")) { //$NON-NLS-1$
    int c = Integer.parseInt(token);
    chars[ic++] = (char) c;
  }

  //resize
  System.arraycopy(chars, 0, chars = new char[ic], 0, ic);

  buildFileForTable(filename, chars);
  return chars;
}
private final static void buildFileOfShortFor(String filename, String tag, String[] tokens) {

代码示例来源:origin: org.eclipse.jetty.orbit/org.eclipse.jdt.core

private final static void buildFileOfShortFor(String filename, String tag, String[] tokens) {

  //transform the String tokens into chars before dumping then into file

  int i = 0;
  //read upto the tag
  while (!tokens[i++].equals(tag)){/*empty*/}
  //read upto the }

  char[] chars = new char[tokens.length]; //can't be bigger
  int ic = 0;
  String token;
  while (!(token = tokens[i++]).equals("}")) { //$NON-NLS-1$
    int c = Integer.parseInt(token);
    chars[ic++] = (char) (c + 32768);
  }

  //resize
  System.arraycopy(chars, 0, chars = new char[ic], 0, ic);

  buildFileForTable(filename, chars);
}
private static void buildFilesForRecoveryTemplates(

代码示例来源:origin: org.eclipse.scout.sdk.deps/ecj

private final static void buildFileOfShortFor(String filename, String tag, String[] tokens) {

  //transform the String tokens into chars before dumping then into file

  int i = 0;
  //read upto the tag
  while (!tokens[i++].equals(tag)){/*empty*/}
  //read upto the }

  char[] chars = new char[tokens.length]; //can't be bigger
  int ic = 0;
  String token;
  while (!(token = tokens[i++]).equals("}")) { //$NON-NLS-1$
    int c = Integer.parseInt(token);
    chars[ic++] = (char) (c + 32768);
  }

  //resize
  System.arraycopy(chars, 0, chars = new char[ic], 0, ic);

  buildFileForTable(filename, chars);
}
private static void buildFilesForRecoveryTemplates(

代码示例来源:origin: org.eclipse.jdt.core.compiler/ecj

private final static void buildFileOfShortFor(String filename, String tag, String[] tokens) {

  //transform the String tokens into chars before dumping then into file

  int i = 0;
  //read upto the tag
  while (!tokens[i++].equals(tag)){/*empty*/}
  //read upto the }

  char[] chars = new char[tokens.length]; //can't be bigger
  int ic = 0;
  String token;
  while (!(token = tokens[i++]).equals("}")) { //$NON-NLS-1$
    int c = Integer.parseInt(token);
    chars[ic++] = (char) (c + 32768);
  }

  //resize
  System.arraycopy(chars, 0, chars = new char[ic], 0, ic);

  buildFileForTable(filename, chars);
}
private static void buildFilesForRecoveryTemplates(

代码示例来源:origin: org.eclipse.jdt.core.compiler/ecj

private final static byte[] buildFileOfByteFor(String filename, String tag, String[] tokens) {

  //transform the String tokens into chars before dumping then into file

  int i = 0;
  //read upto the tag
  while (!tokens[i++].equals(tag)){/*empty*/}
  //read upto the }

  byte[] bytes = new byte[tokens.length]; //can't be bigger
  int ic = 0;
  String token;
  while (!(token = tokens[i++]).equals("}")) { //$NON-NLS-1$
    int c = Integer.parseInt(token);
    bytes[ic++] = (byte) c;
  }

  //resize
  System.arraycopy(bytes, 0, bytes = new byte[ic], 0, ic);

  buildFileForTable(filename, bytes);
  return bytes;
}
private final static char[] buildFileOfIntFor(String filename, String tag, String[] tokens) {

代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.jdt.core

private final static void buildFileOfShortFor(String filename, String tag, String[] tokens) {

  //transform the String tokens into chars before dumping then into file

  int i = 0;
  //read upto the tag
  while (!tokens[i++].equals(tag)){/*empty*/}
  //read upto the }

  char[] chars = new char[tokens.length]; //can't be bigger
  int ic = 0;
  String token;
  while (!(token = tokens[i++]).equals("}")) { //$NON-NLS-1$
    int c = Integer.parseInt(token);
    chars[ic++] = (char) (c + 32768);
  }

  //resize
  System.arraycopy(chars, 0, chars = new char[ic], 0, ic);

  buildFileForTable(filename, chars);
}
private static void buildFilesForRecoveryTemplates(

代码示例来源:origin: org.eclipse.jdt/org.eclipse.jdt.core

private final static void buildFileOfShortFor(String filename, String tag, String[] tokens) {

  //transform the String tokens into chars before dumping then into file

  int i = 0;
  //read upto the tag
  while (!tokens[i++].equals(tag)){/*empty*/}
  //read upto the }

  char[] chars = new char[tokens.length]; //can't be bigger
  int ic = 0;
  String token;
  while (!(token = tokens[i++]).equals("}")) { //$NON-NLS-1$
    int c = Integer.parseInt(token);
    chars[ic++] = (char) (c + 32768);
  }

  //resize
  System.arraycopy(chars, 0, chars = new char[ic], 0, ic);

  buildFileForTable(filename, chars);
}
private static void buildFilesForRecoveryTemplates(

代码示例来源:origin: org.eclipse.jetty.orbit/org.eclipse.jdt.core

private final static byte[] buildFileOfByteFor(String filename, String tag, String[] tokens) {

  //transform the String tokens into chars before dumping then into file

  int i = 0;
  //read upto the tag
  while (!tokens[i++].equals(tag)){/*empty*/}
  //read upto the }

  byte[] bytes = new byte[tokens.length]; //can't be bigger
  int ic = 0;
  String token;
  while (!(token = tokens[i++]).equals("}")) { //$NON-NLS-1$
    int c = Integer.parseInt(token);
    bytes[ic++] = (byte) c;
  }

  //resize
  System.arraycopy(bytes, 0, bytes = new byte[ic], 0, ic);

  buildFileForTable(filename, bytes);
  return bytes;
}
private final static char[] buildFileOfIntFor(String filename, String tag, String[] tokens) {

代码示例来源:origin: com.ovea.tajin.server/tajin-server-tomcat7

private final static byte[] buildFileOfByteFor(String filename, String tag, String[] tokens) {

  //transform the String tokens into chars before dumping then into file

  int i = 0;
  //read upto the tag
  while (!tokens[i++].equals(tag)){/*empty*/}
  //read upto the }

  byte[] bytes = new byte[tokens.length]; //can't be bigger
  int ic = 0;
  String token;
  while (!(token = tokens[i++]).equals("}")) { //$NON-NLS-1$
    int c = Integer.parseInt(token);
    bytes[ic++] = (byte) c;
  }

  //resize
  System.arraycopy(bytes, 0, bytes = new byte[ic], 0, ic);

  buildFileForTable(filename, bytes);
  return bytes;
}
private final static char[] buildFileOfIntFor(String filename, String tag, String[] tokens) {

相关文章

Parser类方法