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

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

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

  1. protected NameReference getUnspecifiedReference(boolean rejectTypeAnnotations) {
  2. /* build a (unspecified) NameReference which may be qualified*/
  3. if (rejectTypeAnnotations) { // Compensate for overpermissive grammar.
  4. consumeNonTypeUseName();
  5. }
  6. int length;
  7. NameReference ref;
  8. if ((length = this.identifierLengthStack[this.identifierLengthPtr--]) == 1)
  9. // single variable reference
  10. ref =
  11. new SingleNameReference(
  12. this.identifierStack[this.identifierPtr],
  13. this.identifierPositionStack[this.identifierPtr--]);
  14. else
  15. //Qualified variable reference
  16. {
  17. char[][] tokens = new char[length][];
  18. this.identifierPtr -= length;
  19. System.arraycopy(this.identifierStack, this.identifierPtr + 1, tokens, 0, length);
  20. long[] positions = new long[length];
  21. System.arraycopy(this.identifierPositionStack, this.identifierPtr + 1, positions, 0, length);
  22. ref =
  23. new QualifiedNameReference(tokens,
  24. positions,
  25. (int) (this.identifierPositionStack[this.identifierPtr + 1] >> 32), // sourceStart
  26. (int) this.identifierPositionStack[this.identifierPtr + length]); // sourceEnd
  27. }
  28. return ref;
  29. }
  30. protected NameReference getUnspecifiedReferenceOptimized() {

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

  1. protected NameReference getUnspecifiedReference(boolean rejectTypeAnnotations) {
  2. /* build a (unspecified) NameReference which may be qualified*/
  3. if (rejectTypeAnnotations) { // Compensate for overpermissive grammar.
  4. consumeNonTypeUseName();
  5. }
  6. int length;
  7. NameReference ref;
  8. if ((length = this.identifierLengthStack[this.identifierLengthPtr--]) == 1)
  9. // single variable reference
  10. ref =
  11. new SingleNameReference(
  12. this.identifierStack[this.identifierPtr],
  13. this.identifierPositionStack[this.identifierPtr--]);
  14. else
  15. //Qualified variable reference
  16. {
  17. char[][] tokens = new char[length][];
  18. this.identifierPtr -= length;
  19. System.arraycopy(this.identifierStack, this.identifierPtr + 1, tokens, 0, length);
  20. long[] positions = new long[length];
  21. System.arraycopy(this.identifierPositionStack, this.identifierPtr + 1, positions, 0, length);
  22. ref =
  23. new QualifiedNameReference(tokens,
  24. positions,
  25. (int) (this.identifierPositionStack[this.identifierPtr + 1] >> 32), // sourceStart
  26. (int) this.identifierPositionStack[this.identifierPtr + length]); // sourceEnd
  27. }
  28. return ref;
  29. }
  30. protected NameReference getUnspecifiedReferenceOptimized() {

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

  1. protected NameReference getUnspecifiedReference(boolean rejectTypeAnnotations) {
  2. /* build a (unspecified) NameReference which may be qualified*/
  3. if (rejectTypeAnnotations) { // Compensate for overpermissive grammar.
  4. consumeNonTypeUseName();
  5. }
  6. int length;
  7. NameReference ref;
  8. if ((length = this.identifierLengthStack[this.identifierLengthPtr--]) == 1)
  9. // single variable reference
  10. ref =
  11. new SingleNameReference(
  12. this.identifierStack[this.identifierPtr],
  13. this.identifierPositionStack[this.identifierPtr--]);
  14. else
  15. //Qualified variable reference
  16. {
  17. char[][] tokens = new char[length][];
  18. this.identifierPtr -= length;
  19. System.arraycopy(this.identifierStack, this.identifierPtr + 1, tokens, 0, length);
  20. long[] positions = new long[length];
  21. System.arraycopy(this.identifierPositionStack, this.identifierPtr + 1, positions, 0, length);
  22. ref =
  23. new QualifiedNameReference(tokens,
  24. positions,
  25. (int) (this.identifierPositionStack[this.identifierPtr + 1] >> 32), // sourceStart
  26. (int) this.identifierPositionStack[this.identifierPtr + length]); // sourceEnd
  27. }
  28. return ref;
  29. }
  30. protected NameReference getUnspecifiedReferenceOptimized() {

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

  1. protected NameReference getUnspecifiedReference(boolean rejectTypeAnnotations) {
  2. /* build a (unspecified) NameReference which may be qualified*/
  3. if (rejectTypeAnnotations) { // Compensate for overpermissive grammar.
  4. consumeNonTypeUseName();
  5. }
  6. int length;
  7. NameReference ref;
  8. if ((length = this.identifierLengthStack[this.identifierLengthPtr--]) == 1)
  9. // single variable reference
  10. ref =
  11. new SingleNameReference(
  12. this.identifierStack[this.identifierPtr],
  13. this.identifierPositionStack[this.identifierPtr--]);
  14. else
  15. //Qualified variable reference
  16. {
  17. char[][] tokens = new char[length][];
  18. this.identifierPtr -= length;
  19. System.arraycopy(this.identifierStack, this.identifierPtr + 1, tokens, 0, length);
  20. long[] positions = new long[length];
  21. System.arraycopy(this.identifierPositionStack, this.identifierPtr + 1, positions, 0, length);
  22. ref =
  23. new QualifiedNameReference(tokens,
  24. positions,
  25. (int) (this.identifierPositionStack[this.identifierPtr + 1] >> 32), // sourceStart
  26. (int) this.identifierPositionStack[this.identifierPtr + length]); // sourceEnd
  27. }
  28. return ref;
  29. }
  30. protected NameReference getUnspecifiedReferenceOptimized() {

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

  1. protected NameReference getUnspecifiedReference(boolean rejectTypeAnnotations) {
  2. /* build a (unspecified) NameReference which may be qualified*/
  3. if (rejectTypeAnnotations) { // Compensate for overpermissive grammar.
  4. consumeNonTypeUseName();
  5. }
  6. int length;
  7. NameReference ref;
  8. if ((length = this.identifierLengthStack[this.identifierLengthPtr--]) == 1)
  9. // single variable reference
  10. ref =
  11. new SingleNameReference(
  12. this.identifierStack[this.identifierPtr],
  13. this.identifierPositionStack[this.identifierPtr--]);
  14. else
  15. //Qualified variable reference
  16. {
  17. char[][] tokens = new char[length][];
  18. this.identifierPtr -= length;
  19. System.arraycopy(this.identifierStack, this.identifierPtr + 1, tokens, 0, length);
  20. long[] positions = new long[length];
  21. System.arraycopy(this.identifierPositionStack, this.identifierPtr + 1, positions, 0, length);
  22. ref =
  23. new QualifiedNameReference(tokens,
  24. positions,
  25. (int) (this.identifierPositionStack[this.identifierPtr + 1] >> 32), // sourceStart
  26. (int) this.identifierPositionStack[this.identifierPtr + length]); // sourceEnd
  27. }
  28. return ref;
  29. }
  30. protected NameReference getUnspecifiedReferenceOptimized() {

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

  1. protected NameReference getUnspecifiedReference(boolean rejectTypeAnnotations) {
  2. /* build a (unspecified) NameReference which may be qualified*/
  3. if (rejectTypeAnnotations) { // Compensate for overpermissive grammar.
  4. consumeNonTypeUseName();
  5. }
  6. int length;
  7. NameReference ref;
  8. if ((length = this.identifierLengthStack[this.identifierLengthPtr--]) == 1)
  9. // single variable reference
  10. ref =
  11. new SingleNameReference(
  12. this.identifierStack[this.identifierPtr],
  13. this.identifierPositionStack[this.identifierPtr--]);
  14. else
  15. //Qualified variable reference
  16. {
  17. char[][] tokens = new char[length][];
  18. this.identifierPtr -= length;
  19. System.arraycopy(this.identifierStack, this.identifierPtr + 1, tokens, 0, length);
  20. long[] positions = new long[length];
  21. System.arraycopy(this.identifierPositionStack, this.identifierPtr + 1, positions, 0, length);
  22. ref =
  23. new QualifiedNameReference(tokens,
  24. positions,
  25. (int) (this.identifierPositionStack[this.identifierPtr + 1] >> 32), // sourceStart
  26. (int) this.identifierPositionStack[this.identifierPtr + length]); // sourceEnd
  27. }
  28. return ref;
  29. }
  30. protected NameReference getUnspecifiedReferenceOptimized() {

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

  1. protected NameReference getUnspecifiedReference(boolean rejectTypeAnnotations) {
  2. /* build a (unspecified) NameReference which may be qualified*/
  3. if (rejectTypeAnnotations) { // Compensate for overpermissive grammar.
  4. consumeNonTypeUseName();
  5. }
  6. int length;
  7. NameReference ref;
  8. if ((length = this.identifierLengthStack[this.identifierLengthPtr--]) == 1)
  9. // single variable reference
  10. ref =
  11. new SingleNameReference(
  12. this.identifierStack[this.identifierPtr],
  13. this.identifierPositionStack[this.identifierPtr--]);
  14. else
  15. //Qualified variable reference
  16. {
  17. char[][] tokens = new char[length][];
  18. this.identifierPtr -= length;
  19. System.arraycopy(this.identifierStack, this.identifierPtr + 1, tokens, 0, length);
  20. long[] positions = new long[length];
  21. System.arraycopy(this.identifierPositionStack, this.identifierPtr + 1, positions, 0, length);
  22. ref =
  23. new QualifiedNameReference(tokens,
  24. positions,
  25. (int) (this.identifierPositionStack[this.identifierPtr + 1] >> 32), // sourceStart
  26. (int) this.identifierPositionStack[this.identifierPtr + length]); // sourceEnd
  27. }
  28. return ref;
  29. }
  30. protected NameReference getUnspecifiedReferenceOptimized() {

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

  1. protected NameReference getUnspecifiedReference(boolean rejectTypeAnnotations) {
  2. /* build a (unspecified) NameReference which may be qualified*/
  3. if (rejectTypeAnnotations) { // Compensate for overpermissive grammar.
  4. consumeNonTypeUseName();
  5. }
  6. int length;
  7. NameReference ref;
  8. if ((length = this.identifierLengthStack[this.identifierLengthPtr--]) == 1)
  9. // single variable reference
  10. ref =
  11. new SingleNameReference(
  12. this.identifierStack[this.identifierPtr],
  13. this.identifierPositionStack[this.identifierPtr--]);
  14. else
  15. //Qualified variable reference
  16. {
  17. char[][] tokens = new char[length][];
  18. this.identifierPtr -= length;
  19. System.arraycopy(this.identifierStack, this.identifierPtr + 1, tokens, 0, length);
  20. long[] positions = new long[length];
  21. System.arraycopy(this.identifierPositionStack, this.identifierPtr + 1, positions, 0, length);
  22. ref =
  23. new QualifiedNameReference(tokens,
  24. positions,
  25. (int) (this.identifierPositionStack[this.identifierPtr + 1] >> 32), // sourceStart
  26. (int) this.identifierPositionStack[this.identifierPtr + length]); // sourceEnd
  27. }
  28. return ref;
  29. }
  30. protected NameReference getUnspecifiedReferenceOptimized() {

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

  1. consumeNonTypeUseName();
  2. int length;
  3. NameReference ref;

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

  1. consumeNonTypeUseName();
  2. int length;
  3. NameReference ref;

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

  1. consumeNonTypeUseName();
  2. int length;
  3. NameReference ref;

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

  1. consumeNonTypeUseName();
  2. int length;
  3. NameReference ref;

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

  1. consumeNonTypeUseName();
  2. int length;
  3. NameReference ref;

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

  1. consumeNonTypeUseName();
  2. int length;
  3. NameReference ref;

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

  1. consumeNonTypeUseName();
  2. int length;
  3. NameReference ref;

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

  1. consumeNonTypeUseName();
  2. int length;
  3. NameReference ref;

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

  1. consumeNonTypeUseName();
  2. break;

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

  1. consumeNonTypeUseName();
  2. break;

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

  1. consumeNonTypeUseName();
  2. break;

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

  1. consumeNonTypeUseName();
  2. break;

相关文章

Parser类方法