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

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

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

Parser.parse介绍

暂无

代码示例

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

  1. public void parseStatements(
  2. Parser parser,
  3. TypeDeclaration typeDeclaration,
  4. CompilationUnitDeclaration unit) {
  5. //fill up the method body with statement
  6. parser.parse(this, typeDeclaration, unit);
  7. }

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

  1. @Override
  2. protected void parse() {
  3. this.diet = true;
  4. this.dietInt = 0;
  5. super.parse();
  6. }
  7. /*

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

  1. public void parseStatements(
  2. Parser parser,
  3. TypeDeclaration typeDeclaration,
  4. CompilationUnitDeclaration unit) {
  5. //fill up the method body with statement
  6. parser.parse(this, typeDeclaration, unit);
  7. }

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

  1. @Override
  2. public void parseStatements(Parser parser, CompilationUnitDeclaration unit) {
  3. //fill up the method body with statement
  4. parser.parse(this, unit);
  5. }

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

  1. public void parseStatements(
  2. Parser parser,
  3. TypeDeclaration typeDeclaration,
  4. CompilationUnitDeclaration unit) {
  5. //fill up the method body with statement
  6. parser.parse(this, typeDeclaration, unit);
  7. }

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

  1. public void parseStatements(
  2. Parser parser,
  3. TypeDeclaration typeDeclaration,
  4. CompilationUnitDeclaration unit) {
  5. //fill up the method body with statement
  6. parser.parse(this, typeDeclaration, unit);
  7. }

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

  1. public CompilationUnitDeclaration dietParse(ICompilationUnit sourceUnit, CompilationResult compilationResult) {
  2. CompilationUnitDeclaration parsedUnit;
  3. boolean old = this.diet;
  4. try {
  5. this.diet = true;
  6. parsedUnit = parse(sourceUnit, compilationResult);
  7. } finally {
  8. this.diet = old;
  9. }
  10. return parsedUnit;
  11. }
  12. protected void dispatchDeclarationInto(int length) {

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

  1. protected void parse() {
  2. this.diet = true;
  3. super.parse();
  4. }
  5. /*

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

  1. public void parseStatements(
  2. Parser parser,
  3. TypeDeclaration typeDeclaration,
  4. CompilationUnitDeclaration unit) {
  5. //fill up the method body with statement
  6. parser.parse(this, typeDeclaration, unit);
  7. }

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

  1. public CompilationUnitDeclaration dietParse(ICompilationUnit sourceUnit, CompilationResult compilationResult) {
  2. CompilationUnitDeclaration parsedUnit;
  3. boolean old = this.diet;
  4. try {
  5. this.diet = true;
  6. parsedUnit = parse(sourceUnit, compilationResult);
  7. } finally {
  8. this.diet = old;
  9. }
  10. return parsedUnit;
  11. }
  12. protected void dispatchDeclarationInto(int length) {

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

  1. public void parseStatements(
  2. Parser parser,
  3. TypeDeclaration typeDeclaration,
  4. CompilationUnitDeclaration unit) {
  5. //fill up the method body with statement
  6. parser.parse(this, typeDeclaration, unit);
  7. }

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

  1. protected void parse() {
  2. this.diet = true;
  3. super.parse();
  4. }
  5. /*

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

  1. @Override
  2. public void parseStatements(Parser parser, CompilationUnitDeclaration unit) {
  3. //fill up the constructor body with its statements
  4. if (((this.bits & ASTNode.IsDefaultConstructor) != 0) && this.constructorCall == null){
  5. this.constructorCall = SuperReference.implicitSuperConstructorCall();
  6. this.constructorCall.sourceStart = this.sourceStart;
  7. this.constructorCall.sourceEnd = this.sourceEnd;
  8. return;
  9. }
  10. parser.parse(this, unit, false);
  11. }

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

  1. public void parseStatements(Parser parser, CompilationUnitDeclaration unit) {
  2. //fill up the constructor body with its statements
  3. if (((this.bits & ASTNode.IsDefaultConstructor) != 0) && this.constructorCall == null){
  4. this.constructorCall = SuperReference.implicitSuperConstructorCall();
  5. this.constructorCall.sourceStart = this.sourceStart;
  6. this.constructorCall.sourceEnd = this.sourceEnd;
  7. return;
  8. }
  9. parser.parse(this, unit, false);
  10. }

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

  1. public void parseStatements(Parser parser, CompilationUnitDeclaration unit) {
  2. //fill up the constructor body with its statements
  3. if (((this.bits & ASTNode.IsDefaultConstructor) != 0) && this.constructorCall == null){
  4. this.constructorCall = SuperReference.implicitSuperConstructorCall();
  5. this.constructorCall.sourceStart = this.sourceStart;
  6. this.constructorCall.sourceEnd = this.sourceEnd;
  7. return;
  8. }
  9. parser.parse(this, unit, false);
  10. }

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

  1. public void parseStatements(Parser parser, CompilationUnitDeclaration unit) {
  2. //fill up the constructor body with its statements
  3. if (((this.bits & ASTNode.IsDefaultConstructor) != 0) && this.constructorCall == null){
  4. this.constructorCall = SuperReference.implicitSuperConstructorCall();
  5. this.constructorCall.sourceStart = this.sourceStart;
  6. this.constructorCall.sourceEnd = this.sourceEnd;
  7. return;
  8. }
  9. parser.parse(this, unit, false);
  10. }

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

  1. public void acceptModuleInfo(ICompilationUnit cu, Parser parser) {
  2. CompilationResult compilationResult = new CompilationResult(cu, 0, 1, 10);
  3. CompilationUnitDeclaration unit = parser.parse(cu, compilationResult);
  4. // Request could also come in when module-info has changed or removed.
  5. if (unit.isModuleInfo() && unit.moduleDeclaration != null) {
  6. this.module = new BasicModule(unit.moduleDeclaration, null);
  7. }
  8. }
  9. @Override

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

  1. private static IModule extractModuleFromSource(File file, Parser parser, Classpath pathEntry) {
  2. ICompilationUnit cu = new CompilationUnit(null, file.getAbsolutePath(), null, pathEntry.getDestinationPath());
  3. CompilationResult compilationResult = new CompilationResult(cu, 0, 1, 10);
  4. CompilationUnitDeclaration unit = parser.parse(cu, compilationResult);
  5. if (unit.isModuleInfo() && unit.moduleDeclaration != null) {
  6. return new BasicModule(unit.moduleDeclaration, pathEntry);
  7. }
  8. return null;
  9. }
  10. }

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

  1. private static enum LocalTypeKind {
  2. LOCAL,
  3. METHOD_REFERENCE,
  4. LAMBDA,
  5. }

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

  1. private static enum LocalTypeKind {
  2. LOCAL,
  3. METHOD_REFERENCE,
  4. LAMBDA,
  5. }

相关文章

Parser类方法