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

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

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

Parser.newReferenceExpression介绍

暂无

代码示例

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

  1. protected void consumeReferenceExpressionPrimaryForm() {
  2. // ReferenceExpression ::= Primary '::' NonWildTypeArgumentsopt Identifier
  3. ReferenceExpression referenceExpression = newReferenceExpression();
  4. TypeReference [] typeArguments = null;
  5. char [] selector;
  6. int sourceEnd;
  7. sourceEnd = (int) this.identifierPositionStack[this.identifierPtr];
  8. referenceExpression.nameSourceStart = (int) (this.identifierPositionStack[this.identifierPtr] >>> 32);
  9. selector = this.identifierStack[this.identifierPtr--];
  10. this.identifierLengthPtr--;
  11. int length = this.genericsLengthStack[this.genericsLengthPtr--];
  12. if (length > 0) {
  13. this.genericsPtr -= length;
  14. System.arraycopy(this.genericsStack, this.genericsPtr + 1, typeArguments = new TypeReference[length], 0, length);
  15. this.intPtr--; // pop type arguments source start.
  16. }
  17. Expression primary = this.expressionStack[this.expressionPtr--];
  18. this.expressionLengthPtr--;
  19. referenceExpression.initialize(this.compilationUnit.compilationResult, primary, typeArguments, selector, sourceEnd);
  20. consumeReferenceExpression(referenceExpression);
  21. }
  22. protected void consumeReferenceExpressionSuperForm() {

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

  1. protected void consumeReferenceExpressionPrimaryForm() {
  2. // ReferenceExpression ::= Primary '::' NonWildTypeArgumentsopt Identifier
  3. ReferenceExpression referenceExpression = newReferenceExpression();
  4. TypeReference [] typeArguments = null;
  5. char [] selector;
  6. int sourceEnd;
  7. sourceEnd = (int) this.identifierPositionStack[this.identifierPtr];
  8. referenceExpression.nameSourceStart = (int) (this.identifierPositionStack[this.identifierPtr] >>> 32);
  9. selector = this.identifierStack[this.identifierPtr--];
  10. this.identifierLengthPtr--;
  11. int length = this.genericsLengthStack[this.genericsLengthPtr--];
  12. if (length > 0) {
  13. this.genericsPtr -= length;
  14. System.arraycopy(this.genericsStack, this.genericsPtr + 1, typeArguments = new TypeReference[length], 0, length);
  15. this.intPtr--; // pop type arguments source start.
  16. }
  17. Expression primary = this.expressionStack[this.expressionPtr--];
  18. this.expressionLengthPtr--;
  19. referenceExpression.initialize(this.compilationUnit.compilationResult, primary, typeArguments, selector, sourceEnd);
  20. consumeReferenceExpression(referenceExpression);
  21. }
  22. protected void consumeReferenceExpressionSuperForm() {

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

  1. protected void consumeReferenceExpressionPrimaryForm() {
  2. // ReferenceExpression ::= Primary '::' NonWildTypeArgumentsopt Identifier
  3. ReferenceExpression referenceExpression = newReferenceExpression();
  4. TypeReference [] typeArguments = null;
  5. char [] selector;
  6. int sourceEnd;
  7. sourceEnd = (int) this.identifierPositionStack[this.identifierPtr];
  8. referenceExpression.nameSourceStart = (int) (this.identifierPositionStack[this.identifierPtr] >>> 32);
  9. selector = this.identifierStack[this.identifierPtr--];
  10. this.identifierLengthPtr--;
  11. int length = this.genericsLengthStack[this.genericsLengthPtr--];
  12. if (length > 0) {
  13. this.genericsPtr -= length;
  14. System.arraycopy(this.genericsStack, this.genericsPtr + 1, typeArguments = new TypeReference[length], 0, length);
  15. this.intPtr--; // pop type arguments source start.
  16. }
  17. Expression primary = this.expressionStack[this.expressionPtr--];
  18. this.expressionLengthPtr--;
  19. referenceExpression.initialize(this.compilationUnit.compilationResult, primary, typeArguments, selector, sourceEnd);
  20. consumeReferenceExpression(referenceExpression);
  21. }
  22. protected void consumeReferenceExpressionSuperForm() {

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

  1. protected void consumeReferenceExpressionPrimaryForm() {
  2. // ReferenceExpression ::= Primary '::' NonWildTypeArgumentsopt Identifier
  3. ReferenceExpression referenceExpression = newReferenceExpression();
  4. TypeReference [] typeArguments = null;
  5. char [] selector;
  6. int sourceEnd;
  7. sourceEnd = (int) this.identifierPositionStack[this.identifierPtr];
  8. referenceExpression.nameSourceStart = (int) (this.identifierPositionStack[this.identifierPtr] >>> 32);
  9. selector = this.identifierStack[this.identifierPtr--];
  10. this.identifierLengthPtr--;
  11. int length = this.genericsLengthStack[this.genericsLengthPtr--];
  12. if (length > 0) {
  13. this.genericsPtr -= length;
  14. System.arraycopy(this.genericsStack, this.genericsPtr + 1, typeArguments = new TypeReference[length], 0, length);
  15. this.intPtr--; // pop type arguments source start.
  16. }
  17. Expression primary = this.expressionStack[this.expressionPtr--];
  18. this.expressionLengthPtr--;
  19. referenceExpression.initialize(this.compilationUnit.compilationResult, primary, typeArguments, selector, sourceEnd);
  20. consumeReferenceExpression(referenceExpression);
  21. }
  22. protected void consumeReferenceExpressionSuperForm() {

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

  1. protected void consumeReferenceExpressionPrimaryForm() {
  2. // ReferenceExpression ::= Primary '::' NonWildTypeArgumentsopt Identifier
  3. ReferenceExpression referenceExpression = newReferenceExpression();
  4. TypeReference [] typeArguments = null;
  5. char [] selector;
  6. int sourceEnd;
  7. sourceEnd = (int) this.identifierPositionStack[this.identifierPtr];
  8. referenceExpression.nameSourceStart = (int) (this.identifierPositionStack[this.identifierPtr] >>> 32);
  9. selector = this.identifierStack[this.identifierPtr--];
  10. this.identifierLengthPtr--;
  11. int length = this.genericsLengthStack[this.genericsLengthPtr--];
  12. if (length > 0) {
  13. this.genericsPtr -= length;
  14. System.arraycopy(this.genericsStack, this.genericsPtr + 1, typeArguments = new TypeReference[length], 0, length);
  15. this.intPtr--; // pop type arguments source start.
  16. }
  17. Expression primary = this.expressionStack[this.expressionPtr--];
  18. this.expressionLengthPtr--;
  19. referenceExpression.initialize(this.compilationUnit.compilationResult, primary, typeArguments, selector, sourceEnd);
  20. consumeReferenceExpression(referenceExpression);
  21. }
  22. protected void consumeReferenceExpressionSuperForm() {

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

  1. protected void consumeReferenceExpressionPrimaryForm() {
  2. // ReferenceExpression ::= Primary '::' NonWildTypeArgumentsopt Identifier
  3. ReferenceExpression referenceExpression = newReferenceExpression();
  4. TypeReference [] typeArguments = null;
  5. char [] selector;
  6. int sourceEnd;
  7. sourceEnd = (int) this.identifierPositionStack[this.identifierPtr];
  8. referenceExpression.nameSourceStart = (int) (this.identifierPositionStack[this.identifierPtr] >>> 32);
  9. selector = this.identifierStack[this.identifierPtr--];
  10. this.identifierLengthPtr--;
  11. int length = this.genericsLengthStack[this.genericsLengthPtr--];
  12. if (length > 0) {
  13. this.genericsPtr -= length;
  14. System.arraycopy(this.genericsStack, this.genericsPtr + 1, typeArguments = new TypeReference[length], 0, length);
  15. this.intPtr--; // pop type arguments source start.
  16. }
  17. Expression primary = this.expressionStack[this.expressionPtr--];
  18. this.expressionLengthPtr--;
  19. referenceExpression.initialize(this.compilationUnit.compilationResult, primary, typeArguments, selector, sourceEnd);
  20. consumeReferenceExpression(referenceExpression);
  21. }
  22. protected void consumeReferenceExpressionSuperForm() {

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

  1. protected void consumeReferenceExpressionPrimaryForm() {
  2. // ReferenceExpression ::= Primary '::' NonWildTypeArgumentsopt Identifier
  3. ReferenceExpression referenceExpression = newReferenceExpression();
  4. TypeReference [] typeArguments = null;
  5. char [] selector;
  6. int sourceEnd;
  7. sourceEnd = (int) this.identifierPositionStack[this.identifierPtr];
  8. referenceExpression.nameSourceStart = (int) (this.identifierPositionStack[this.identifierPtr] >>> 32);
  9. selector = this.identifierStack[this.identifierPtr--];
  10. this.identifierLengthPtr--;
  11. int length = this.genericsLengthStack[this.genericsLengthPtr--];
  12. if (length > 0) {
  13. this.genericsPtr -= length;
  14. System.arraycopy(this.genericsStack, this.genericsPtr + 1, typeArguments = new TypeReference[length], 0, length);
  15. this.intPtr--; // pop type arguments source start.
  16. }
  17. Expression primary = this.expressionStack[this.expressionPtr--];
  18. this.expressionLengthPtr--;
  19. referenceExpression.initialize(this.compilationUnit.compilationResult, primary, typeArguments, selector, sourceEnd);
  20. consumeReferenceExpression(referenceExpression);
  21. }
  22. protected void consumeReferenceExpressionSuperForm() {

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

  1. protected void consumeReferenceExpressionPrimaryForm() {
  2. // ReferenceExpression ::= Primary '::' NonWildTypeArgumentsopt Identifier
  3. ReferenceExpression referenceExpression = newReferenceExpression();
  4. TypeReference [] typeArguments = null;
  5. char [] selector;
  6. int sourceEnd;
  7. sourceEnd = (int) this.identifierPositionStack[this.identifierPtr];
  8. referenceExpression.nameSourceStart = (int) (this.identifierPositionStack[this.identifierPtr] >>> 32);
  9. selector = this.identifierStack[this.identifierPtr--];
  10. this.identifierLengthPtr--;
  11. int length = this.genericsLengthStack[this.genericsLengthPtr--];
  12. if (length > 0) {
  13. this.genericsPtr -= length;
  14. System.arraycopy(this.genericsStack, this.genericsPtr + 1, typeArguments = new TypeReference[length], 0, length);
  15. this.intPtr--; // pop type arguments source start.
  16. }
  17. Expression primary = this.expressionStack[this.expressionPtr--];
  18. this.expressionLengthPtr--;
  19. referenceExpression.initialize(this.compilationUnit.compilationResult, primary, typeArguments, selector, sourceEnd);
  20. consumeReferenceExpression(referenceExpression);
  21. }
  22. protected void consumeReferenceExpressionSuperForm() {

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

  1. protected void consumeReferenceExpressionSuperForm() {
  2. // ReferenceExpression ::= 'super' '::' NonWildTypeArgumentsopt Identifier
  3. ReferenceExpression referenceExpression = newReferenceExpression();
  4. TypeReference [] typeArguments = null;
  5. char [] selector;
  6. int sourceEnd;
  7. sourceEnd = (int) this.identifierPositionStack[this.identifierPtr];
  8. referenceExpression.nameSourceStart = (int) (this.identifierPositionStack[this.identifierPtr] >>> 32);
  9. selector = this.identifierStack[this.identifierPtr--];
  10. this.identifierLengthPtr--;
  11. int length = this.genericsLengthStack[this.genericsLengthPtr--];
  12. if (length > 0) {
  13. this.genericsPtr -= length;
  14. System.arraycopy(this.genericsStack, this.genericsPtr + 1, typeArguments = new TypeReference[length], 0, length);
  15. this.intPtr--; // pop type arguments source start.
  16. }
  17. SuperReference superReference = new SuperReference(this.intStack[this.intPtr--], this.endPosition);
  18. referenceExpression.initialize(this.compilationUnit.compilationResult, superReference, typeArguments, selector, sourceEnd);
  19. consumeReferenceExpression(referenceExpression);
  20. }
  21. protected void consumeReferenceExpression(ReferenceExpression referenceExpression) {

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

  1. protected void consumeReferenceExpressionSuperForm() {
  2. // ReferenceExpression ::= 'super' '::' NonWildTypeArgumentsopt Identifier
  3. ReferenceExpression referenceExpression = newReferenceExpression();
  4. TypeReference [] typeArguments = null;
  5. char [] selector;
  6. int sourceEnd;
  7. sourceEnd = (int) this.identifierPositionStack[this.identifierPtr];
  8. referenceExpression.nameSourceStart = (int) (this.identifierPositionStack[this.identifierPtr] >>> 32);
  9. selector = this.identifierStack[this.identifierPtr--];
  10. this.identifierLengthPtr--;
  11. int length = this.genericsLengthStack[this.genericsLengthPtr--];
  12. if (length > 0) {
  13. this.genericsPtr -= length;
  14. System.arraycopy(this.genericsStack, this.genericsPtr + 1, typeArguments = new TypeReference[length], 0, length);
  15. this.intPtr--; // pop type arguments source start.
  16. }
  17. SuperReference superReference = new SuperReference(this.intStack[this.intPtr--], this.endPosition);
  18. referenceExpression.initialize(this.compilationUnit.compilationResult, superReference, typeArguments, selector, sourceEnd);
  19. consumeReferenceExpression(referenceExpression);
  20. }
  21. protected void consumeReferenceExpression(ReferenceExpression referenceExpression) {

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

  1. protected void consumeReferenceExpressionSuperForm() {
  2. // ReferenceExpression ::= 'super' '::' NonWildTypeArgumentsopt Identifier
  3. ReferenceExpression referenceExpression = newReferenceExpression();
  4. TypeReference [] typeArguments = null;
  5. char [] selector;
  6. int sourceEnd;
  7. sourceEnd = (int) this.identifierPositionStack[this.identifierPtr];
  8. referenceExpression.nameSourceStart = (int) (this.identifierPositionStack[this.identifierPtr] >>> 32);
  9. selector = this.identifierStack[this.identifierPtr--];
  10. this.identifierLengthPtr--;
  11. int length = this.genericsLengthStack[this.genericsLengthPtr--];
  12. if (length > 0) {
  13. this.genericsPtr -= length;
  14. System.arraycopy(this.genericsStack, this.genericsPtr + 1, typeArguments = new TypeReference[length], 0, length);
  15. this.intPtr--; // pop type arguments source start.
  16. }
  17. SuperReference superReference = new SuperReference(this.intStack[this.intPtr--], this.endPosition);
  18. referenceExpression.initialize(this.compilationUnit.compilationResult, superReference, typeArguments, selector, sourceEnd);
  19. consumeReferenceExpression(referenceExpression);
  20. }
  21. protected void consumeReferenceExpression(ReferenceExpression referenceExpression) {

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

  1. protected void consumeReferenceExpressionSuperForm() {
  2. // ReferenceExpression ::= 'super' '::' NonWildTypeArgumentsopt Identifier
  3. ReferenceExpression referenceExpression = newReferenceExpression();
  4. TypeReference [] typeArguments = null;
  5. char [] selector;
  6. int sourceEnd;
  7. sourceEnd = (int) this.identifierPositionStack[this.identifierPtr];
  8. referenceExpression.nameSourceStart = (int) (this.identifierPositionStack[this.identifierPtr] >>> 32);
  9. selector = this.identifierStack[this.identifierPtr--];
  10. this.identifierLengthPtr--;
  11. int length = this.genericsLengthStack[this.genericsLengthPtr--];
  12. if (length > 0) {
  13. this.genericsPtr -= length;
  14. System.arraycopy(this.genericsStack, this.genericsPtr + 1, typeArguments = new TypeReference[length], 0, length);
  15. this.intPtr--; // pop type arguments source start.
  16. }
  17. SuperReference superReference = new SuperReference(this.intStack[this.intPtr--], this.endPosition);
  18. referenceExpression.initialize(this.compilationUnit.compilationResult, superReference, typeArguments, selector, sourceEnd);
  19. consumeReferenceExpression(referenceExpression);
  20. }
  21. protected void consumeReferenceExpression(ReferenceExpression referenceExpression) {

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

  1. protected void consumeReferenceExpressionSuperForm() {
  2. // ReferenceExpression ::= 'super' '::' NonWildTypeArgumentsopt Identifier
  3. ReferenceExpression referenceExpression = newReferenceExpression();
  4. TypeReference [] typeArguments = null;
  5. char [] selector;
  6. int sourceEnd;
  7. sourceEnd = (int) this.identifierPositionStack[this.identifierPtr];
  8. referenceExpression.nameSourceStart = (int) (this.identifierPositionStack[this.identifierPtr] >>> 32);
  9. selector = this.identifierStack[this.identifierPtr--];
  10. this.identifierLengthPtr--;
  11. int length = this.genericsLengthStack[this.genericsLengthPtr--];
  12. if (length > 0) {
  13. this.genericsPtr -= length;
  14. System.arraycopy(this.genericsStack, this.genericsPtr + 1, typeArguments = new TypeReference[length], 0, length);
  15. this.intPtr--; // pop type arguments source start.
  16. }
  17. SuperReference superReference = new SuperReference(this.intStack[this.intPtr--], this.endPosition);
  18. referenceExpression.initialize(this.compilationUnit.compilationResult, superReference, typeArguments, selector, sourceEnd);
  19. consumeReferenceExpression(referenceExpression);
  20. }
  21. protected void consumeReferenceExpression(ReferenceExpression referenceExpression) {

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

  1. protected void consumeReferenceExpressionSuperForm() {
  2. // ReferenceExpression ::= 'super' '::' NonWildTypeArgumentsopt Identifier
  3. ReferenceExpression referenceExpression = newReferenceExpression();
  4. TypeReference [] typeArguments = null;
  5. char [] selector;
  6. int sourceEnd;
  7. sourceEnd = (int) this.identifierPositionStack[this.identifierPtr];
  8. referenceExpression.nameSourceStart = (int) (this.identifierPositionStack[this.identifierPtr] >>> 32);
  9. selector = this.identifierStack[this.identifierPtr--];
  10. this.identifierLengthPtr--;
  11. int length = this.genericsLengthStack[this.genericsLengthPtr--];
  12. if (length > 0) {
  13. this.genericsPtr -= length;
  14. System.arraycopy(this.genericsStack, this.genericsPtr + 1, typeArguments = new TypeReference[length], 0, length);
  15. this.intPtr--; // pop type arguments source start.
  16. }
  17. SuperReference superReference = new SuperReference(this.intStack[this.intPtr--], this.endPosition);
  18. referenceExpression.initialize(this.compilationUnit.compilationResult, superReference, typeArguments, selector, sourceEnd);
  19. consumeReferenceExpression(referenceExpression);
  20. }
  21. protected void consumeReferenceExpression(ReferenceExpression referenceExpression) {

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

  1. protected void consumeReferenceExpressionSuperForm() {
  2. // ReferenceExpression ::= 'super' '::' NonWildTypeArgumentsopt Identifier
  3. ReferenceExpression referenceExpression = newReferenceExpression();
  4. TypeReference [] typeArguments = null;
  5. char [] selector;
  6. int sourceEnd;
  7. sourceEnd = (int) this.identifierPositionStack[this.identifierPtr];
  8. referenceExpression.nameSourceStart = (int) (this.identifierPositionStack[this.identifierPtr] >>> 32);
  9. selector = this.identifierStack[this.identifierPtr--];
  10. this.identifierLengthPtr--;
  11. int length = this.genericsLengthStack[this.genericsLengthPtr--];
  12. if (length > 0) {
  13. this.genericsPtr -= length;
  14. System.arraycopy(this.genericsStack, this.genericsPtr + 1, typeArguments = new TypeReference[length], 0, length);
  15. this.intPtr--; // pop type arguments source start.
  16. }
  17. SuperReference superReference = new SuperReference(this.intStack[this.intPtr--], this.endPosition);
  18. referenceExpression.initialize(this.compilationUnit.compilationResult, superReference, typeArguments, selector, sourceEnd);
  19. consumeReferenceExpression(referenceExpression);
  20. }
  21. protected void consumeReferenceExpression(ReferenceExpression referenceExpression) {

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

  1. protected void consumeReferenceExpressionSuperForm() {
  2. // ReferenceExpression ::= 'super' '::' NonWildTypeArgumentsopt Identifier
  3. ReferenceExpression referenceExpression = newReferenceExpression();
  4. TypeReference [] typeArguments = null;
  5. char [] selector;
  6. int sourceEnd;
  7. sourceEnd = (int) this.identifierPositionStack[this.identifierPtr];
  8. referenceExpression.nameSourceStart = (int) (this.identifierPositionStack[this.identifierPtr] >>> 32);
  9. selector = this.identifierStack[this.identifierPtr--];
  10. this.identifierLengthPtr--;
  11. int length = this.genericsLengthStack[this.genericsLengthPtr--];
  12. if (length > 0) {
  13. this.genericsPtr -= length;
  14. System.arraycopy(this.genericsStack, this.genericsPtr + 1, typeArguments = new TypeReference[length], 0, length);
  15. this.intPtr--; // pop type arguments source start.
  16. }
  17. SuperReference superReference = new SuperReference(this.intStack[this.intPtr--], this.endPosition);
  18. referenceExpression.initialize(this.compilationUnit.compilationResult, superReference, typeArguments, selector, sourceEnd);
  19. consumeReferenceExpression(referenceExpression);
  20. }
  21. protected void consumeReferenceExpression(ReferenceExpression referenceExpression) {

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

  1. ReferenceExpression referenceExpression = newReferenceExpression();
  2. TypeReference type;
  3. TypeReference [] typeArguments = null;

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

  1. ReferenceExpression referenceExpression = newReferenceExpression();
  2. TypeReference type;
  3. TypeReference [] typeArguments = null;

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

  1. ReferenceExpression referenceExpression = newReferenceExpression();
  2. TypeReference type;
  3. TypeReference [] typeArguments = null;

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

  1. ReferenceExpression referenceExpression = newReferenceExpression();
  2. TypeReference type;
  3. TypeReference [] typeArguments = null;

相关文章

Parser类方法