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

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

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

Parser.consumeNonTypeUseName介绍

暂无

代码示例

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

protected NameReference getUnspecifiedReference(boolean rejectTypeAnnotations) {
  /* build a (unspecified) NameReference which may be qualified*/
  if (rejectTypeAnnotations) { // Compensate for overpermissive grammar.
    consumeNonTypeUseName();
  }
  int length;
  NameReference ref;
  if ((length = this.identifierLengthStack[this.identifierLengthPtr--]) == 1)
    // single variable reference
    ref =
      new SingleNameReference(
        this.identifierStack[this.identifierPtr],
        this.identifierPositionStack[this.identifierPtr--]);
  else
    //Qualified variable reference
    {
    char[][] tokens = new char[length][];
    this.identifierPtr -= length;
    System.arraycopy(this.identifierStack, this.identifierPtr + 1, tokens, 0, length);
    long[] positions = new long[length];
    System.arraycopy(this.identifierPositionStack, this.identifierPtr + 1, positions, 0, length);
    ref =
      new QualifiedNameReference(tokens,
        positions,
        (int) (this.identifierPositionStack[this.identifierPtr + 1] >> 32), // sourceStart
        (int) this.identifierPositionStack[this.identifierPtr + length]); // sourceEnd
  }
  return ref;
}
protected NameReference getUnspecifiedReferenceOptimized() {

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

protected NameReference getUnspecifiedReference(boolean rejectTypeAnnotations) {
  /* build a (unspecified) NameReference which may be qualified*/
  if (rejectTypeAnnotations) { // Compensate for overpermissive grammar.
    consumeNonTypeUseName();
  }
  int length;
  NameReference ref;
  if ((length = this.identifierLengthStack[this.identifierLengthPtr--]) == 1)
    // single variable reference
    ref =
      new SingleNameReference(
        this.identifierStack[this.identifierPtr],
        this.identifierPositionStack[this.identifierPtr--]);
  else
    //Qualified variable reference
    {
    char[][] tokens = new char[length][];
    this.identifierPtr -= length;
    System.arraycopy(this.identifierStack, this.identifierPtr + 1, tokens, 0, length);
    long[] positions = new long[length];
    System.arraycopy(this.identifierPositionStack, this.identifierPtr + 1, positions, 0, length);
    ref =
      new QualifiedNameReference(tokens,
        positions,
        (int) (this.identifierPositionStack[this.identifierPtr + 1] >> 32), // sourceStart
        (int) this.identifierPositionStack[this.identifierPtr + length]); // sourceEnd
  }
  return ref;
}
protected NameReference getUnspecifiedReferenceOptimized() {

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

protected NameReference getUnspecifiedReference(boolean rejectTypeAnnotations) {
  /* build a (unspecified) NameReference which may be qualified*/
  if (rejectTypeAnnotations) { // Compensate for overpermissive grammar.
    consumeNonTypeUseName();
  }
  int length;
  NameReference ref;
  if ((length = this.identifierLengthStack[this.identifierLengthPtr--]) == 1)
    // single variable reference
    ref =
      new SingleNameReference(
        this.identifierStack[this.identifierPtr],
        this.identifierPositionStack[this.identifierPtr--]);
  else
    //Qualified variable reference
    {
    char[][] tokens = new char[length][];
    this.identifierPtr -= length;
    System.arraycopy(this.identifierStack, this.identifierPtr + 1, tokens, 0, length);
    long[] positions = new long[length];
    System.arraycopy(this.identifierPositionStack, this.identifierPtr + 1, positions, 0, length);
    ref =
      new QualifiedNameReference(tokens,
        positions,
        (int) (this.identifierPositionStack[this.identifierPtr + 1] >> 32), // sourceStart
        (int) this.identifierPositionStack[this.identifierPtr + length]); // sourceEnd
  }
  return ref;
}
protected NameReference getUnspecifiedReferenceOptimized() {

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

protected NameReference getUnspecifiedReference(boolean rejectTypeAnnotations) {
  /* build a (unspecified) NameReference which may be qualified*/
  if (rejectTypeAnnotations) { // Compensate for overpermissive grammar.
    consumeNonTypeUseName();
  }
  int length;
  NameReference ref;
  if ((length = this.identifierLengthStack[this.identifierLengthPtr--]) == 1)
    // single variable reference
    ref =
      new SingleNameReference(
        this.identifierStack[this.identifierPtr],
        this.identifierPositionStack[this.identifierPtr--]);
  else
    //Qualified variable reference
    {
    char[][] tokens = new char[length][];
    this.identifierPtr -= length;
    System.arraycopy(this.identifierStack, this.identifierPtr + 1, tokens, 0, length);
    long[] positions = new long[length];
    System.arraycopy(this.identifierPositionStack, this.identifierPtr + 1, positions, 0, length);
    ref =
      new QualifiedNameReference(tokens,
        positions,
        (int) (this.identifierPositionStack[this.identifierPtr + 1] >> 32), // sourceStart
        (int) this.identifierPositionStack[this.identifierPtr + length]); // sourceEnd
  }
  return ref;
}
protected NameReference getUnspecifiedReferenceOptimized() {

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

protected NameReference getUnspecifiedReference(boolean rejectTypeAnnotations) {
  /* build a (unspecified) NameReference which may be qualified*/
  if (rejectTypeAnnotations) { // Compensate for overpermissive grammar.
    consumeNonTypeUseName();
  }
  int length;
  NameReference ref;
  if ((length = this.identifierLengthStack[this.identifierLengthPtr--]) == 1)
    // single variable reference
    ref =
      new SingleNameReference(
        this.identifierStack[this.identifierPtr],
        this.identifierPositionStack[this.identifierPtr--]);
  else
    //Qualified variable reference
    {
    char[][] tokens = new char[length][];
    this.identifierPtr -= length;
    System.arraycopy(this.identifierStack, this.identifierPtr + 1, tokens, 0, length);
    long[] positions = new long[length];
    System.arraycopy(this.identifierPositionStack, this.identifierPtr + 1, positions, 0, length);
    ref =
      new QualifiedNameReference(tokens,
        positions,
        (int) (this.identifierPositionStack[this.identifierPtr + 1] >> 32), // sourceStart
        (int) this.identifierPositionStack[this.identifierPtr + length]); // sourceEnd
  }
  return ref;
}
protected NameReference getUnspecifiedReferenceOptimized() {

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

protected NameReference getUnspecifiedReference(boolean rejectTypeAnnotations) {
  /* build a (unspecified) NameReference which may be qualified*/
  if (rejectTypeAnnotations) { // Compensate for overpermissive grammar.
    consumeNonTypeUseName();
  }
  int length;
  NameReference ref;
  if ((length = this.identifierLengthStack[this.identifierLengthPtr--]) == 1)
    // single variable reference
    ref =
      new SingleNameReference(
        this.identifierStack[this.identifierPtr],
        this.identifierPositionStack[this.identifierPtr--]);
  else
    //Qualified variable reference
    {
    char[][] tokens = new char[length][];
    this.identifierPtr -= length;
    System.arraycopy(this.identifierStack, this.identifierPtr + 1, tokens, 0, length);
    long[] positions = new long[length];
    System.arraycopy(this.identifierPositionStack, this.identifierPtr + 1, positions, 0, length);
    ref =
      new QualifiedNameReference(tokens,
        positions,
        (int) (this.identifierPositionStack[this.identifierPtr + 1] >> 32), // sourceStart
        (int) this.identifierPositionStack[this.identifierPtr + length]); // sourceEnd
  }
  return ref;
}
protected NameReference getUnspecifiedReferenceOptimized() {

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

protected NameReference getUnspecifiedReference(boolean rejectTypeAnnotations) {
  /* build a (unspecified) NameReference which may be qualified*/
  if (rejectTypeAnnotations) { // Compensate for overpermissive grammar.
    consumeNonTypeUseName();
  }
  int length;
  NameReference ref;
  if ((length = this.identifierLengthStack[this.identifierLengthPtr--]) == 1)
    // single variable reference
    ref =
      new SingleNameReference(
        this.identifierStack[this.identifierPtr],
        this.identifierPositionStack[this.identifierPtr--]);
  else
    //Qualified variable reference
    {
    char[][] tokens = new char[length][];
    this.identifierPtr -= length;
    System.arraycopy(this.identifierStack, this.identifierPtr + 1, tokens, 0, length);
    long[] positions = new long[length];
    System.arraycopy(this.identifierPositionStack, this.identifierPtr + 1, positions, 0, length);
    ref =
      new QualifiedNameReference(tokens,
        positions,
        (int) (this.identifierPositionStack[this.identifierPtr + 1] >> 32), // sourceStart
        (int) this.identifierPositionStack[this.identifierPtr + length]); // sourceEnd
  }
  return ref;
}
protected NameReference getUnspecifiedReferenceOptimized() {

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

protected NameReference getUnspecifiedReference(boolean rejectTypeAnnotations) {
  /* build a (unspecified) NameReference which may be qualified*/
  if (rejectTypeAnnotations) { // Compensate for overpermissive grammar.
    consumeNonTypeUseName();
  }
  int length;
  NameReference ref;
  if ((length = this.identifierLengthStack[this.identifierLengthPtr--]) == 1)
    // single variable reference
    ref =
      new SingleNameReference(
        this.identifierStack[this.identifierPtr],
        this.identifierPositionStack[this.identifierPtr--]);
  else
    //Qualified variable reference
    {
    char[][] tokens = new char[length][];
    this.identifierPtr -= length;
    System.arraycopy(this.identifierStack, this.identifierPtr + 1, tokens, 0, length);
    long[] positions = new long[length];
    System.arraycopy(this.identifierPositionStack, this.identifierPtr + 1, positions, 0, length);
    ref =
      new QualifiedNameReference(tokens,
        positions,
        (int) (this.identifierPositionStack[this.identifierPtr + 1] >> 32), // sourceStart
        (int) this.identifierPositionStack[this.identifierPtr + length]); // sourceEnd
  }
  return ref;
}
protected NameReference getUnspecifiedReferenceOptimized() {

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

consumeNonTypeUseName();
int length;
NameReference ref;

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

consumeNonTypeUseName();
int length;
NameReference ref;

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

consumeNonTypeUseName();
int length;
NameReference ref;

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

consumeNonTypeUseName();
int length;
NameReference ref;

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

consumeNonTypeUseName();
int length;
NameReference ref;

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

consumeNonTypeUseName();
int length;
NameReference ref;

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

consumeNonTypeUseName();
int length;
NameReference ref;

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

consumeNonTypeUseName();
int length;
NameReference ref;

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

consumeNonTypeUseName();  
break;

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

consumeNonTypeUseName();  
break;

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

consumeNonTypeUseName();  
break;

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

consumeNonTypeUseName();  
break;

相关文章

微信公众号

最新文章

更多

Parser类方法