org.eclipse.jdt.internal.compiler.Compiler.process()方法的使用及代码示例

x33g5p2x  于2022-01-18 转载在 其他  
字(9.3k)|赞(0)|评价(0)|浏览(131)

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

Compiler.process介绍

[英]Process a compilation unit already parsed and build.
[中]处理已解析并生成的编译单元。

代码示例

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

public void process(CompilationUnitDeclaration unit, int i) {
  // don't resolve a second time the same unit (this would create the same binding twice)
  char[] fileName = unit.compilationResult.getFileName();
  if (this.requestedKeys.get(fileName) == null && this.requestedSources.get(fileName) == null)
    super.process(unit, i);
}
/*

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

public void process(CompilationUnitDeclaration unit, int i) {
  // don't resolve a second time the same unit (this would create the same binding twice)
  char[] fileName = unit.compilationResult.getFileName();
  if (this.requestedKeys.get(fileName) == null && this.requestedSources.get(fileName) == null)
    super.process(unit, i);
}
/*

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

public void process(CompilationUnitDeclaration unit, int i) {
  // don't resolve a second time the same unit (this would create the same binding twice)
  char[] fileName = unit.compilationResult.getFileName();
  if (this.requestedKeys.get(fileName) == null && this.requestedSources.get(fileName) == null)
    super.process(unit, i);
}
/*

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

@Override
public void process(CompilationUnitDeclaration unit, int i) {
  // don't resolve a second time the same unit (this would create the same binding twice)
  char[] fileName = unit.compilationResult.getFileName();
  if (this.requestedKeys.get(fileName) == null && this.requestedSources.get(fileName) == null)
    super.process(unit, i);
}
/*

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

public void process(CompilationUnitDeclaration unit, int i) {
  // don't resolve a second time the same unit (this would create the same binding twice)
  char[] fileName = unit.compilationResult.getFileName();
  if (this.requestedKeys.get(fileName) == null && this.requestedSources.get(fileName) == null)
    super.process(unit, i);
}
/*

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

public void process(CompilationUnitDeclaration unit, int i) {
  // don't resolve a second time the same unit (this would create the same binding twice)
  char[] fileName = unit.compilationResult.getFileName();
  if (this.requestedKeys.get(fileName) == null && this.requestedSources.get(fileName) == null)
    super.process(unit, i);
}
/*

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

new String(this.unitToProcess.getFileName())
      }));
  this.compiler.process(this.unitToProcess, index);
} finally {
  if (this.unitToProcess != null)

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

public void consumeTopLevelType() {
  char[] fileName;
  this.parsedUnit = getCompilationUnitDeclaration();
  if (this.parsedUnit != null && this.compiler != null && !this.resolvedUnits.containsKey(fileName = this.parsedUnit.getFileName())) {
    this.compiler.process(this.parsedUnit, this.compiler.totalUnits+1); // unit is resolved only once thanks to the resolvedUnits protection
    this.resolvedUnits.put(fileName, fileName);
  }
  if (this.parsedUnit == null) {
    this.typeBinding = getBinaryBinding();
  } else {
    char[] typeName = this.secondarySimpleName == null ? this.compoundName[this.compoundName.length-1] : this.secondarySimpleName;
    this.typeBinding = getTypeBinding(typeName);
  }
}

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

public void consumeTopLevelType() {
  char[] fileName;
  this.parsedUnit = getCompilationUnitDeclaration();
  if (this.parsedUnit != null && this.compiler != null && !this.resolvedUnits.containsKey(fileName = this.parsedUnit.getFileName())) {
    this.compiler.process(this.parsedUnit, this.compiler.totalUnits+1); // unit is resolved only once thanks to the resolvedUnits protection
    this.resolvedUnits.put(fileName, fileName);
  }
  if (this.parsedUnit == null) {
    this.typeBinding = getBinaryBinding();
  } else {
    char[] typeName = this.secondarySimpleName == null ? this.compoundName[this.compoundName.length-1] : this.secondarySimpleName;
    this.typeBinding = getTypeBinding(typeName);
  }
}

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

public void consumeTopLevelType() {
  char[] fileName;
  this.parsedUnit = getCompilationUnitDeclaration();
  if (this.parsedUnit != null && this.compiler != null && !this.resolvedUnits.containsKey(fileName = this.parsedUnit.getFileName())) {
    this.compiler.process(this.parsedUnit, this.compiler.totalUnits+1); // unit is resolved only once thanks to the resolvedUnits protection
    this.resolvedUnits.put(fileName, fileName);
  }
  if (this.parsedUnit == null) {
    this.typeBinding = getBinaryBinding();
  } else {
    char[] typeName = this.secondarySimpleName == null ? this.compoundName[this.compoundName.length-1] : this.secondarySimpleName;
    this.typeBinding = getTypeBinding(typeName);
  }
}

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

public void consumeTopLevelType() {
  char[] fileName;
  this.parsedUnit = getCompilationUnitDeclaration();
  if (this.parsedUnit != null && this.compiler != null && !this.resolvedUnits.containsKey(fileName = this.parsedUnit.getFileName())) {
    this.compiler.process(this.parsedUnit, this.compiler.totalUnits+1); // unit is resolved only once thanks to the resolvedUnits protection
    this.resolvedUnits.put(fileName, fileName);
  }
  if (this.parsedUnit == null) {
    this.typeBinding = getBinaryBinding();
  } else {
    char[] typeName = this.secondarySimpleName == null ? this.compoundName[this.compoundName.length-1] : this.secondarySimpleName;
    this.typeBinding = getTypeBinding(typeName);
  }
}

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

public void consumeTopLevelType() {
  char[] fileName;
  this.parsedUnit = getCompilationUnitDeclaration();
  if (this.parsedUnit != null && this.compiler != null && !this.resolvedUnits.containsKey(fileName = this.parsedUnit.getFileName())) {
    this.compiler.process(this.parsedUnit, this.compiler.totalUnits+1); // unit is resolved only once thanks to the resolvedUnits protection
    this.resolvedUnits.put(fileName, fileName);
  }
  if (this.parsedUnit == null) {
    this.typeBinding = getBinaryBinding();
  } else {
    char[] typeName = this.secondarySimpleName == null ? this.compoundName[this.compoundName.length-1] : this.secondarySimpleName;
    this.typeBinding = getTypeBinding(typeName);
  }
}

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

public void consumeTopLevelType() {
  char[] fileName;
  this.parsedUnit = getCompilationUnitDeclaration();
  if (this.parsedUnit != null && this.compiler != null && !this.resolvedUnits.containsKey(fileName = this.parsedUnit.getFileName())) {
    this.compiler.process(this.parsedUnit, this.compiler.totalUnits+1); // unit is resolved only once thanks to the resolvedUnits protection
    this.resolvedUnits.put(fileName, fileName);
  }
  if (this.parsedUnit == null) {
    this.typeBinding = getBinaryBinding();
  } else {
    char[] typeName = this.secondarySimpleName == null ? this.compoundName[this.compoundName.length-1] : this.secondarySimpleName;
    this.typeBinding = getTypeBinding(typeName);
  }
}

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

@Override
public void consumeTopLevelType() {
  char[] fileName;
  this.parsedUnit = getCompilationUnitDeclaration();
  if (this.parsedUnit != null && this.compiler != null && !this.resolvedUnits.containsKey(fileName = this.parsedUnit.getFileName())) {
    this.compiler.process(this.parsedUnit, this.compiler.totalUnits+1); // unit is resolved only once thanks to the resolvedUnits protection
    this.resolvedUnits.put(fileName, fileName);
  }
  if (this.parsedUnit == null) {
    this.typeBinding = getBinaryBinding();
  } else {
    char[] typeName = this.secondarySimpleName == null ? this.compoundName[this.compoundName.length-1] : this.secondarySimpleName;
    this.typeBinding = getTypeBinding(typeName);
  }
}

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

static class IntArrayList {
  public int[] list = new int[5];
  public int length = 0;
  public void add(int i) {
    if (this.list.length == this.length) {
      System.arraycopy(this.list, 0, this.list = new int[this.length*2], 0, this.length);
    }
      this.list[this.length++] = i;
    }
  }

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

static class IntArrayList {
  public int[] list = new int[5];
  public int length = 0;
  public void add(int i) {
    if (this.list.length == this.length) {
      System.arraycopy(this.list, 0, this.list = new int[this.length*2], 0, this.length);
    }
      this.list[this.length++] = i;
    }
  }

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

static class IntArrayList {
  public int[] list = new int[5];
  public int length = 0;
  public void add(int i) {
    if (this.list.length == this.length) {
      System.arraycopy(this.list, 0, this.list = new int[this.length*2], 0, this.length);
    }
      this.list[this.length++] = i;
    }
  }

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

static class IntArrayList {
  public int[] list = new int[5];
  public int length = 0;
  public void add(int i) {
    if (this.list.length == this.length) {
      System.arraycopy(this.list, 0, this.list = new int[this.length*2], 0, this.length);
    }
      this.list[this.length++] = i;
    }
  }

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

static class IntArrayList {
  public int[] list = new int[5];
  public int length = 0;
  public void add(int i) {
    if (this.list.length == this.length) {
      System.arraycopy(this.list, 0, this.list = new int[this.length*2], 0, this.length);
    }
      this.list[this.length++] = i;
    }
  }

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

static class IntArrayList {
  public int[] list = new int[5];
  public int length = 0;
  public void add(int i) {
    if (this.list.length == this.length) {
      System.arraycopy(this.list, 0, this.list = new int[this.length*2], 0, this.length);
    }
      this.list[this.length++] = i;
    }
  }

相关文章