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

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

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

Parser.parseExpression介绍

暂无

代码示例

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

  1. public Expression parseLambdaExpression(char[] source, int offset, int length, CompilationUnitDeclaration unit, boolean recordLineSeparators) {
  2. this.haltOnSyntaxError = true; // unexposed/unshared object, no threading concerns.
  3. this.reparsingLambdaExpression = true;
  4. return parseExpression(source, offset, length, unit, recordLineSeparators);
  5. }

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

  1. public Expression parseLambdaExpression(char[] source, int offset, int length, CompilationUnitDeclaration unit, boolean recordLineSeparators) {
  2. this.haltOnSyntaxError = true; // unexposed/unshared object, no threading concerns.
  3. this.reparsingLambdaExpression = true;
  4. return parseExpression(source, offset, length, unit, recordLineSeparators);
  5. }

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

  1. public Expression parseLambdaExpression(char[] source, int offset, int length, CompilationUnitDeclaration unit, boolean recordLineSeparators) {
  2. this.haltOnSyntaxError = true; // unexposed/unshared object, no threading concerns.
  3. return parseExpression(source, offset, length, unit, recordLineSeparators);
  4. }

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

  1. public Expression parseLambdaExpression(char[] source, int offset, int length, CompilationUnitDeclaration unit, boolean recordLineSeparators) {
  2. this.haltOnSyntaxError = true; // unexposed/unshared object, no threading concerns.
  3. this.reparsingLambdaExpression = true;
  4. return parseExpression(source, offset, length, unit, recordLineSeparators);
  5. }

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

  1. public Expression parseLambdaExpression(char[] source, int offset, int length, CompilationUnitDeclaration unit, boolean recordLineSeparators) {
  2. this.haltOnSyntaxError = true; // unexposed/unshared object, no threading concerns.
  3. this.reparsingLambdaExpression = true;
  4. return parseExpression(source, offset, length, unit, recordLineSeparators);
  5. }

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

  1. public Expression parseLambdaExpression(char[] source, int offset, int length, CompilationUnitDeclaration unit, boolean recordLineSeparators) {
  2. this.haltOnSyntaxError = true; // unexposed/unshared object, no threading concerns.
  3. this.reparsingLambdaExpression = true;
  4. return parseExpression(source, offset, length, unit, recordLineSeparators);
  5. }

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

  1. public Expression parseLambdaExpression(char[] source, int offset, int length, CompilationUnitDeclaration unit, boolean recordLineSeparators) {
  2. this.haltOnSyntaxError = true; // unexposed/unshared object, no threading concerns.
  3. return parseExpression(source, offset, length, unit, recordLineSeparators);
  4. }

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

  1. public Expression parseLambdaExpression(char[] source, int offset, int length, CompilationUnitDeclaration unit, boolean recordLineSeparators) {
  2. this.haltOnSyntaxError = true; // unexposed/unshared object, no threading concerns.
  3. return parseExpression(source, offset, length, unit, recordLineSeparators);
  4. }

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

  1. private ReferenceExpression copy() {
  2. final Parser parser = new Parser(this.enclosingScope.problemReporter(), false);
  3. final ICompilationUnit compilationUnit = this.compilationResult.getCompilationUnit();
  4. final char[] source = compilationUnit != null ? compilationUnit.getContents() : this.text;
  5. ReferenceExpression copy = (ReferenceExpression) parser.parseExpression(source, compilationUnit != null ? this.sourceStart : 0, this.sourceEnd - this.sourceStart + 1,
  6. this.enclosingScope.referenceCompilationUnit(), false /* record line separators */);
  7. copy.original = this;
  8. copy.sourceStart = this.sourceStart;
  9. copy.sourceEnd = this.sourceEnd;
  10. return copy;
  11. }

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

  1. private ReferenceExpression copy() {
  2. final Parser parser = new Parser(this.enclosingScope.problemReporter(), false);
  3. final ICompilationUnit compilationUnit = this.compilationResult.getCompilationUnit();
  4. final char[] source = compilationUnit != null ? compilationUnit.getContents() : this.text;
  5. ReferenceExpression copy = (ReferenceExpression) parser.parseExpression(source, compilationUnit != null ? this.sourceStart : 0, this.sourceEnd - this.sourceStart + 1,
  6. this.enclosingScope.referenceCompilationUnit(), false /* record line separators */);
  7. copy.original = this;
  8. copy.sourceStart = this.sourceStart;
  9. copy.sourceEnd = this.sourceEnd;
  10. return copy;
  11. }

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

  1. private ReferenceExpression copy() {
  2. final Parser parser = new Parser(this.enclosingScope.problemReporter(), false);
  3. final ICompilationUnit compilationUnit = this.compilationResult.getCompilationUnit();
  4. final char[] source = compilationUnit != null ? compilationUnit.getContents() : this.text;
  5. parser.scanner = this.scanner;
  6. ReferenceExpression copy = (ReferenceExpression) parser.parseExpression(source, compilationUnit != null ? this.sourceStart : 0, this.sourceEnd - this.sourceStart + 1,
  7. this.enclosingScope.referenceCompilationUnit(), false /* record line separators */);
  8. copy.original = this;
  9. copy.sourceStart = this.sourceStart;
  10. copy.sourceEnd = this.sourceEnd;
  11. return copy;
  12. }

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

  1. private ReferenceExpression copy() {
  2. final Parser parser = new Parser(this.enclosingScope.problemReporter(), false);
  3. final ICompilationUnit compilationUnit = this.compilationResult.getCompilationUnit();
  4. final char[] source = compilationUnit != null ? compilationUnit.getContents() : this.text;
  5. ReferenceExpression copy = (ReferenceExpression) parser.parseExpression(source, compilationUnit != null ? this.sourceStart : 0, this.sourceEnd - this.sourceStart + 1,
  6. this.enclosingScope.referenceCompilationUnit(), false /* record line separators */);
  7. copy.original = this;
  8. copy.sourceStart = this.sourceStart;
  9. copy.sourceEnd = this.sourceEnd;
  10. return copy;
  11. }

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

  1. private ReferenceExpression copy() {
  2. final Parser parser = new Parser(this.enclosingScope.problemReporter(), false);
  3. final ICompilationUnit compilationUnit = this.compilationResult.getCompilationUnit();
  4. final char[] source = compilationUnit != null ? compilationUnit.getContents() : this.text;
  5. parser.scanner = this.scanner;
  6. ReferenceExpression copy = (ReferenceExpression) parser.parseExpression(source, compilationUnit != null ? this.sourceStart : 0, this.sourceEnd - this.sourceStart + 1,
  7. this.enclosingScope.referenceCompilationUnit(), false /* record line separators */);
  8. copy.original = this;
  9. copy.sourceStart = this.sourceStart;
  10. copy.sourceEnd = this.sourceEnd;
  11. return copy;
  12. }

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

  1. ReferenceExpression copy = (ReferenceExpression) parser.parseExpression(source, this.sourceStart, this.sourceEnd - this.sourceStart + 1,
  2. this.enclosingScope.referenceCompilationUnit(), false /* record line separators */);

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

  1. ReferenceExpression copy = (ReferenceExpression) parser.parseExpression(source, this.sourceStart, this.sourceEnd - this.sourceStart + 1,
  2. this.enclosingScope.referenceCompilationUnit(), false /* record line separators */);

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

  1. ReferenceExpression copy = (ReferenceExpression) parser.parseExpression(source, this.sourceStart, this.sourceEnd - this.sourceStart + 1,
  2. this.enclosingScope.referenceCompilationUnit(), false /* record line separators */);

相关文章

Parser类方法