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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

  1. protected void pushIdentifier(int flag) {
  2. /*push a special flag on the stack :
  3. -zero stands for optional Name
  4. -negative number for direct ref to base types.
  5. identifierLengthPtr points on the top */
  6. int stackLength = this.identifierLengthStack.length;
  7. if (++this.identifierLengthPtr >= stackLength) {
  8. System.arraycopy(
  9. this.identifierLengthStack, 0,
  10. this.identifierLengthStack = new int[stackLength + 10], 0,
  11. stackLength);
  12. }
  13. this.identifierLengthStack[this.identifierLengthPtr] = flag;
  14. }
  15. protected void pushOnAstLengthStack(int pos) {

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

  1. protected void pushIdentifier(int flag) {
  2. /*push a special flag on the stack :
  3. -zero stands for optional Name
  4. -negative number for direct ref to base types.
  5. identifierLengthPtr points on the top */
  6. int stackLength = this.identifierLengthStack.length;
  7. if (++this.identifierLengthPtr >= stackLength) {
  8. System.arraycopy(
  9. this.identifierLengthStack, 0,
  10. this.identifierLengthStack = new int[stackLength + 10], 0,
  11. stackLength);
  12. }
  13. this.identifierLengthStack[this.identifierLengthPtr] = flag;
  14. }
  15. protected void pushOnAstLengthStack(int pos) {

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

  1. protected void pushIdentifier(int flag) {
  2. /*push a special flag on the stack :
  3. -zero stands for optional Name
  4. -negative number for direct ref to base types.
  5. identifierLengthPtr points on the top */
  6. int stackLength = this.identifierLengthStack.length;
  7. if (++this.identifierLengthPtr >= stackLength) {
  8. System.arraycopy(
  9. this.identifierLengthStack, 0,
  10. this.identifierLengthStack = new int[stackLength + 10], 0,
  11. stackLength);
  12. }
  13. this.identifierLengthStack[this.identifierLengthPtr] = flag;
  14. }
  15. protected void pushOnAstLengthStack(int pos) {

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

  1. protected void pushIdentifier(int flag) {
  2. /*push a special flag on the stack :
  3. -zero stands for optional Name
  4. -negative number for direct ref to base types.
  5. identifierLengthPtr points on the top */
  6. int stackLength = this.identifierLengthStack.length;
  7. if (++this.identifierLengthPtr >= stackLength) {
  8. System.arraycopy(
  9. this.identifierLengthStack, 0,
  10. this.identifierLengthStack = new int[stackLength + 10], 0,
  11. stackLength);
  12. }
  13. this.identifierLengthStack[this.identifierLengthPtr] = flag;
  14. }
  15. protected void pushOnAstLengthStack(int pos) {

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

  1. protected void consumeExplicitThisParameter(boolean isQualified) {
  2. // VariableDeclaratorIdOrThis ::= 'this'
  3. // VariableDeclaratorIdOrThis ::= UnannotatableName '.' 'this'
  4. // VariableDeclaratorIdOrThis ::= VariableDeclaratorId
  5. NameReference qualifyingNameReference = null;
  6. if (isQualified) {
  7. qualifyingNameReference = getUnspecifiedReference(false); // By construction the qualified name is unannotated here, so we should not meddle with the type annotation stack
  8. }
  9. pushOnExpressionStack(qualifyingNameReference);
  10. int thisStart = this.intStack[this.intPtr--];
  11. pushIdentifier(ConstantPool.This, (((long) thisStart << 32)) + (thisStart + 3));
  12. pushOnIntStack(0); // extended dimensions ...
  13. pushOnIntStack(0); // signal explicit this
  14. }

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

  1. protected void consumeExplicitThisParameter(boolean isQualified) {
  2. // VariableDeclaratorIdOrThis ::= 'this'
  3. // VariableDeclaratorIdOrThis ::= UnannotatableName '.' 'this'
  4. // VariableDeclaratorIdOrThis ::= VariableDeclaratorId
  5. NameReference qualifyingNameReference = null;
  6. if (isQualified) {
  7. qualifyingNameReference = getUnspecifiedReference(false); // By construction the qualified name is unannotated here, so we should not meddle with the type annotation stack
  8. }
  9. pushOnExpressionStack(qualifyingNameReference);
  10. int thisStart = this.intStack[this.intPtr--];
  11. pushIdentifier(ConstantPool.This, (((long) thisStart << 32)) + (thisStart + 3));
  12. pushOnIntStack(0); // extended dimensions ...
  13. pushOnIntStack(0); // signal explicit this
  14. }

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

  1. protected void consumeExplicitThisParameter(boolean isQualified) {
  2. // VariableDeclaratorIdOrThis ::= 'this'
  3. // VariableDeclaratorIdOrThis ::= UnannotatableName '.' 'this'
  4. // VariableDeclaratorIdOrThis ::= VariableDeclaratorId
  5. NameReference qualifyingNameReference = null;
  6. if (isQualified) {
  7. qualifyingNameReference = getUnspecifiedReference(false); // By construction the qualified name is unannotated here, so we should not meddle with the type annotation stack
  8. }
  9. pushOnExpressionStack(qualifyingNameReference);
  10. int thisStart = this.intStack[this.intPtr--];
  11. pushIdentifier(ConstantPool.This, (((long) thisStart << 32)) + (thisStart + 3));
  12. pushOnIntStack(0); // extended dimensions ...
  13. pushOnIntStack(0); // signal explicit this
  14. }

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

  1. protected void consumeExplicitThisParameter(boolean isQualified) {
  2. // VariableDeclaratorIdOrThis ::= 'this'
  3. // VariableDeclaratorIdOrThis ::= UnannotatableName '.' 'this'
  4. // VariableDeclaratorIdOrThis ::= VariableDeclaratorId
  5. NameReference qualifyingNameReference = null;
  6. if (isQualified) {
  7. qualifyingNameReference = getUnspecifiedReference(false); // By construction the qualified name is unannotated here, so we should not meddle with the type annotation stack
  8. }
  9. pushOnExpressionStack(qualifyingNameReference);
  10. int thisStart = this.intStack[this.intPtr--];
  11. pushIdentifier(ConstantPool.This, (((long) thisStart << 32)) + (thisStart + 3));
  12. pushOnIntStack(0); // extended dimensions ...
  13. pushOnIntStack(0); // signal explicit this
  14. }

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

  1. protected void consumeExplicitThisParameter(boolean isQualified) {
  2. // VariableDeclaratorIdOrThis ::= 'this'
  3. // VariableDeclaratorIdOrThis ::= UnannotatableName '.' 'this'
  4. // VariableDeclaratorIdOrThis ::= VariableDeclaratorId
  5. NameReference qualifyingNameReference = null;
  6. if (isQualified) {
  7. qualifyingNameReference = getUnspecifiedReference(false); // By construction the qualified name is unannotated here, so we should not meddle with the type annotation stack
  8. }
  9. pushOnExpressionStack(qualifyingNameReference);
  10. int thisStart = this.intStack[this.intPtr--];
  11. pushIdentifier(ConstantPool.This, (((long) thisStart << 32)) + (thisStart + 3));
  12. pushOnIntStack(0); // extended dimensions ...
  13. pushOnIntStack(0); // signal explicit this
  14. }

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

  1. protected void consumeExplicitThisParameter(boolean isQualified) {
  2. // VariableDeclaratorIdOrThis ::= 'this'
  3. // VariableDeclaratorIdOrThis ::= UnannotatableName '.' 'this'
  4. // VariableDeclaratorIdOrThis ::= VariableDeclaratorId
  5. NameReference qualifyingNameReference = null;
  6. if (isQualified) {
  7. qualifyingNameReference = getUnspecifiedReference(false); // By construction the qualified name is unannotated here, so we should not meddle with the type annotation stack
  8. }
  9. pushOnExpressionStack(qualifyingNameReference);
  10. int thisStart = this.intStack[this.intPtr--];
  11. pushIdentifier(ConstantPool.This, (((long) thisStart << 32)) + (thisStart + 3));
  12. pushOnIntStack(0); // extended dimensions ...
  13. pushOnIntStack(0); // signal explicit this
  14. }

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

  1. protected void consumeExplicitThisParameter(boolean isQualified) {
  2. // VariableDeclaratorIdOrThis ::= 'this'
  3. // VariableDeclaratorIdOrThis ::= UnannotatableName '.' 'this'
  4. // VariableDeclaratorIdOrThis ::= VariableDeclaratorId
  5. NameReference qualifyingNameReference = null;
  6. if (isQualified) {
  7. qualifyingNameReference = getUnspecifiedReference(false); // By construction the qualified name is unannotated here, so we should not meddle with the type annotation stack
  8. }
  9. pushOnExpressionStack(qualifyingNameReference);
  10. int thisStart = this.intStack[this.intPtr--];
  11. pushIdentifier(ConstantPool.This, (((long) thisStart << 32)) + (thisStart + 3));
  12. pushOnIntStack(0); // extended dimensions ...
  13. pushOnIntStack(0); // signal explicit this
  14. }

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

  1. protected void consumeExplicitThisParameter(boolean isQualified) {
  2. // VariableDeclaratorIdOrThis ::= 'this'
  3. // VariableDeclaratorIdOrThis ::= UnannotatableName '.' 'this'
  4. // VariableDeclaratorIdOrThis ::= VariableDeclaratorId
  5. NameReference qualifyingNameReference = null;
  6. if (isQualified) {
  7. qualifyingNameReference = getUnspecifiedReference(false); // By construction the qualified name is unannotated here, so we should not meddle with the type annotation stack
  8. }
  9. pushOnExpressionStack(qualifyingNameReference);
  10. int thisStart = this.intStack[this.intPtr--];
  11. pushIdentifier(ConstantPool.This, (((long) thisStart << 32)) + (thisStart + 3));
  12. pushOnIntStack(0); // extended dimensions ...
  13. pushOnIntStack(0); // signal explicit this
  14. }

相关文章

Parser类方法