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

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

本文整理了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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

相关文章

微信公众号

最新文章

更多

Parser类方法