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

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

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

Parser.pushIdentifier介绍

暂无

代码示例

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

protected void consumeIdentifierOrNew(boolean newForm) {
  // IdentifierOrNew ::= 'Identifier'
  // IdentifierOrNew ::= 'new'
  if (newForm) {
    int newStart = this.intStack[this.intPtr--];
    pushIdentifier(ConstantPool.Init, (((long) newStart << 32)) + (newStart + 2));
  }
}
protected void consumeEmptyTypeArguments() {

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

protected void consumeIdentifierOrNew(boolean newForm) {
  // IdentifierOrNew ::= 'Identifier'
  // IdentifierOrNew ::= 'new'
  if (newForm) {
    int newStart = this.intStack[this.intPtr--];
    pushIdentifier(ConstantPool.Init, (((long) newStart << 32)) + (newStart + 2));
  }
}
protected void consumeEmptyTypeArguments() {

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

protected void consumeIdentifierOrNew(boolean newForm) {
  // IdentifierOrNew ::= 'Identifier'
  // IdentifierOrNew ::= 'new'
  if (newForm) {
    int newStart = this.intStack[this.intPtr--];
    pushIdentifier(ConstantPool.Init, (((long) newStart << 32)) + (newStart + 2));
  }
}
protected void consumeEmptyTypeArguments() {

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

protected void consumeIdentifierOrNew(boolean newForm) {
  // IdentifierOrNew ::= 'Identifier'
  // IdentifierOrNew ::= 'new'
  if (newForm) {
    int newStart = this.intStack[this.intPtr--];
    pushIdentifier(ConstantPool.Init, (((long) newStart << 32)) + (newStart + 2));
  }
}
protected void consumeEmptyTypeArguments() {

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

protected void consumeIdentifierOrNew(boolean newForm) {
  // IdentifierOrNew ::= 'Identifier'
  // IdentifierOrNew ::= 'new'
  if (newForm) {
    int newStart = this.intStack[this.intPtr--];
    pushIdentifier(ConstantPool.Init, (((long) newStart << 32)) + (newStart + 2));
  }
}
protected void consumeEmptyTypeArguments() {

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

protected void consumeIdentifierOrNew(boolean newForm) {
  // IdentifierOrNew ::= 'Identifier'
  // IdentifierOrNew ::= 'new'
  if (newForm) {
    int newStart = this.intStack[this.intPtr--];
    pushIdentifier(ConstantPool.Init, (((long) newStart << 32)) + (newStart + 2));
  }
}
protected void consumeEmptyTypeArguments() {

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

protected void consumeIdentifierOrNew(boolean newForm) {
  // IdentifierOrNew ::= 'Identifier'
  // IdentifierOrNew ::= 'new'
  if (newForm) {
    int newStart = this.intStack[this.intPtr--];
    pushIdentifier(ConstantPool.Init, (((long) newStart << 32)) + (newStart + 2));
  }
}
protected void consumeEmptyTypeArguments() {

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

protected void consumeIdentifierOrNew(boolean newForm) {
  // IdentifierOrNew ::= 'Identifier'
  // IdentifierOrNew ::= 'new'
  if (newForm) {
    int newStart = this.intStack[this.intPtr--];
    pushIdentifier(ConstantPool.Init, (((long) newStart << 32)) + (newStart + 2));
  }
}
protected void consumeEmptyTypeArguments() {

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

protected void pushIdentifier(int flag) {
  /*push a special flag on the stack :
  -zero stands for optional Name
  -negative number for direct ref to base types.
  identifierLengthPtr points on the top */

  int stackLength = this.identifierLengthStack.length;
  if (++this.identifierLengthPtr >= stackLength) {
    System.arraycopy(
      this.identifierLengthStack, 0,
      this.identifierLengthStack = new int[stackLength + 10], 0,
      stackLength);
  }
  this.identifierLengthStack[this.identifierLengthPtr] = flag;
}
protected void pushOnAstLengthStack(int pos) {

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

protected void pushIdentifier(int flag) {
  /*push a special flag on the stack :
  -zero stands for optional Name
  -negative number for direct ref to base types.
  identifierLengthPtr points on the top */

  int stackLength = this.identifierLengthStack.length;
  if (++this.identifierLengthPtr >= stackLength) {
    System.arraycopy(
      this.identifierLengthStack, 0,
      this.identifierLengthStack = new int[stackLength + 10], 0,
      stackLength);
  }
  this.identifierLengthStack[this.identifierLengthPtr] = flag;
}
protected void pushOnAstLengthStack(int pos) {

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

protected void pushIdentifier(int flag) {
  /*push a special flag on the stack :
  -zero stands for optional Name
  -negative number for direct ref to base types.
  identifierLengthPtr points on the top */

  int stackLength = this.identifierLengthStack.length;
  if (++this.identifierLengthPtr >= stackLength) {
    System.arraycopy(
      this.identifierLengthStack, 0,
      this.identifierLengthStack = new int[stackLength + 10], 0,
      stackLength);
  }
  this.identifierLengthStack[this.identifierLengthPtr] = flag;
}
protected void pushOnAstLengthStack(int pos) {

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

protected void pushIdentifier(int flag) {
  /*push a special flag on the stack :
  -zero stands for optional Name
  -negative number for direct ref to base types.
  identifierLengthPtr points on the top */

  int stackLength = this.identifierLengthStack.length;
  if (++this.identifierLengthPtr >= stackLength) {
    System.arraycopy(
      this.identifierLengthStack, 0,
      this.identifierLengthStack = new int[stackLength + 10], 0,
      stackLength);
  }
  this.identifierLengthStack[this.identifierLengthPtr] = flag;
}
protected void pushOnAstLengthStack(int pos) {

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

protected void consumeExplicitThisParameter(boolean isQualified) {
  // VariableDeclaratorIdOrThis ::= 'this'
  // VariableDeclaratorIdOrThis ::= UnannotatableName '.' 'this'
  // VariableDeclaratorIdOrThis ::= VariableDeclaratorId

  NameReference qualifyingNameReference = null;
  if (isQualified) {
    qualifyingNameReference = getUnspecifiedReference(false); // By construction the qualified name is unannotated here, so we should not meddle with the type annotation stack
  }
  pushOnExpressionStack(qualifyingNameReference);
  int thisStart = this.intStack[this.intPtr--];
  pushIdentifier(ConstantPool.This, (((long) thisStart << 32)) + (thisStart + 3));
  pushOnIntStack(0);  // extended dimensions ...
  pushOnIntStack(0);  // signal explicit this
}

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

protected void consumeExplicitThisParameter(boolean isQualified) {
  // VariableDeclaratorIdOrThis ::= 'this'
  // VariableDeclaratorIdOrThis ::= UnannotatableName '.' 'this'
  // VariableDeclaratorIdOrThis ::= VariableDeclaratorId

  NameReference qualifyingNameReference = null;
  if (isQualified) {
    qualifyingNameReference = getUnspecifiedReference(false); // By construction the qualified name is unannotated here, so we should not meddle with the type annotation stack
  }
  pushOnExpressionStack(qualifyingNameReference);
  int thisStart = this.intStack[this.intPtr--];
  pushIdentifier(ConstantPool.This, (((long) thisStart << 32)) + (thisStart + 3));
  pushOnIntStack(0);  // extended dimensions ...
  pushOnIntStack(0);  // signal explicit this
}

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

protected void consumeExplicitThisParameter(boolean isQualified) {
  // VariableDeclaratorIdOrThis ::= 'this'
  // VariableDeclaratorIdOrThis ::= UnannotatableName '.' 'this'
  // VariableDeclaratorIdOrThis ::= VariableDeclaratorId

  NameReference qualifyingNameReference = null;
  if (isQualified) {
    qualifyingNameReference = getUnspecifiedReference(false); // By construction the qualified name is unannotated here, so we should not meddle with the type annotation stack
  }
  pushOnExpressionStack(qualifyingNameReference);
  int thisStart = this.intStack[this.intPtr--];
  pushIdentifier(ConstantPool.This, (((long) thisStart << 32)) + (thisStart + 3));
  pushOnIntStack(0);  // extended dimensions ...
  pushOnIntStack(0);  // signal explicit this
}

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

protected void consumeExplicitThisParameter(boolean isQualified) {
  // VariableDeclaratorIdOrThis ::= 'this'
  // VariableDeclaratorIdOrThis ::= UnannotatableName '.' 'this'
  // VariableDeclaratorIdOrThis ::= VariableDeclaratorId

  NameReference qualifyingNameReference = null;
  if (isQualified) {
    qualifyingNameReference = getUnspecifiedReference(false); // By construction the qualified name is unannotated here, so we should not meddle with the type annotation stack
  }
  pushOnExpressionStack(qualifyingNameReference);
  int thisStart = this.intStack[this.intPtr--];
  pushIdentifier(ConstantPool.This, (((long) thisStart << 32)) + (thisStart + 3));
  pushOnIntStack(0);  // extended dimensions ...
  pushOnIntStack(0);  // signal explicit this
}

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

protected void consumeExplicitThisParameter(boolean isQualified) {
  // VariableDeclaratorIdOrThis ::= 'this'
  // VariableDeclaratorIdOrThis ::= UnannotatableName '.' 'this'
  // VariableDeclaratorIdOrThis ::= VariableDeclaratorId

  NameReference qualifyingNameReference = null;
  if (isQualified) {
    qualifyingNameReference = getUnspecifiedReference(false); // By construction the qualified name is unannotated here, so we should not meddle with the type annotation stack
  }
  pushOnExpressionStack(qualifyingNameReference);
  int thisStart = this.intStack[this.intPtr--];
  pushIdentifier(ConstantPool.This, (((long) thisStart << 32)) + (thisStart + 3));
  pushOnIntStack(0);  // extended dimensions ...
  pushOnIntStack(0);  // signal explicit this
}

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

protected void consumeExplicitThisParameter(boolean isQualified) {
  // VariableDeclaratorIdOrThis ::= 'this'
  // VariableDeclaratorIdOrThis ::= UnannotatableName '.' 'this'
  // VariableDeclaratorIdOrThis ::= VariableDeclaratorId

  NameReference qualifyingNameReference = null;
  if (isQualified) {
    qualifyingNameReference = getUnspecifiedReference(false); // By construction the qualified name is unannotated here, so we should not meddle with the type annotation stack
  }
  pushOnExpressionStack(qualifyingNameReference);
  int thisStart = this.intStack[this.intPtr--];
  pushIdentifier(ConstantPool.This, (((long) thisStart << 32)) + (thisStart + 3));
  pushOnIntStack(0);  // extended dimensions ...
  pushOnIntStack(0);  // signal explicit this
}

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

protected void consumeExplicitThisParameter(boolean isQualified) {
  // VariableDeclaratorIdOrThis ::= 'this'
  // VariableDeclaratorIdOrThis ::= UnannotatableName '.' 'this'
  // VariableDeclaratorIdOrThis ::= VariableDeclaratorId

  NameReference qualifyingNameReference = null;
  if (isQualified) {
    qualifyingNameReference = getUnspecifiedReference(false); // By construction the qualified name is unannotated here, so we should not meddle with the type annotation stack
  }
  pushOnExpressionStack(qualifyingNameReference);
  int thisStart = this.intStack[this.intPtr--];
  pushIdentifier(ConstantPool.This, (((long) thisStart << 32)) + (thisStart + 3));
  pushOnIntStack(0);  // extended dimensions ...
  pushOnIntStack(0);  // signal explicit this
}

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

protected void consumeExplicitThisParameter(boolean isQualified) {
  // VariableDeclaratorIdOrThis ::= 'this'
  // VariableDeclaratorIdOrThis ::= UnannotatableName '.' 'this'
  // VariableDeclaratorIdOrThis ::= VariableDeclaratorId

  NameReference qualifyingNameReference = null;
  if (isQualified) {
    qualifyingNameReference = getUnspecifiedReference(false); // By construction the qualified name is unannotated here, so we should not meddle with the type annotation stack
  }
  pushOnExpressionStack(qualifyingNameReference);
  int thisStart = this.intStack[this.intPtr--];
  pushIdentifier(ConstantPool.This, (((long) thisStart << 32)) + (thisStart + 3));
  pushOnIntStack(0);  // extended dimensions ...
  pushOnIntStack(0);  // signal explicit this
}

相关文章

微信公众号

最新文章

更多

Parser类方法