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

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

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

Parser.consumeReferenceExpression介绍

暂无

代码示例

代码示例来源: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: 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/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.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: 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.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.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: 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: 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: 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.jdt/org.eclipse.jdt.core

  1. @Override
  2. protected void consumeReferenceExpression(ReferenceExpression referenceExpression) {
  3. super.consumeReferenceExpression(referenceExpression);
  4. if (this.patternFineGrain == 0) {
  5. this.patternLocator.match(referenceExpression, this.nodeSet);
  6. } else if ((this.patternFineGrain & IJavaSearchConstants.METHOD_REFERENCE_EXPRESSION) != 0) {
  7. this.patternLocator.match(referenceExpression, this.nodeSet);
  8. } else if (referenceExpression.lhs.isThis()) {
  9. if ((this.patternFineGrain & IJavaSearchConstants.THIS_REFERENCE) != 0) {
  10. this.patternLocator.match(referenceExpression, this.nodeSet);
  11. }
  12. } else if (referenceExpression.lhs.isSuper()) {
  13. if ((this.patternFineGrain & IJavaSearchConstants.SUPER_REFERENCE) != 0) {
  14. this.patternLocator.match(referenceExpression, this.nodeSet);
  15. }
  16. } else if (referenceExpression.lhs instanceof QualifiedNameReference || referenceExpression.lhs instanceof QualifiedTypeReference) {
  17. if ((this.patternFineGrain & IJavaSearchConstants.QUALIFIED_REFERENCE) != 0) {
  18. this.patternLocator.match(referenceExpression, this.nodeSet);
  19. }
  20. }
  21. }

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

  1. @Override
  2. protected void consumeReferenceExpression(ReferenceExpression referenceExpression) {
  3. super.consumeReferenceExpression(referenceExpression);
  4. if (this.patternFineGrain == 0) {
  5. this.patternLocator.match(referenceExpression, this.nodeSet);
  6. } else if ((this.patternFineGrain & IJavaSearchConstants.METHOD_REFERENCE_EXPRESSION) != 0) {
  7. this.patternLocator.match(referenceExpression, this.nodeSet);
  8. } else if (referenceExpression.lhs.isThis()) {
  9. if ((this.patternFineGrain & IJavaSearchConstants.THIS_REFERENCE) != 0) {
  10. this.patternLocator.match(referenceExpression, this.nodeSet);
  11. }
  12. } else if (referenceExpression.lhs.isSuper()) {
  13. if ((this.patternFineGrain & IJavaSearchConstants.SUPER_REFERENCE) != 0) {
  14. this.patternLocator.match(referenceExpression, this.nodeSet);
  15. }
  16. } else if (referenceExpression.lhs instanceof QualifiedNameReference || referenceExpression.lhs instanceof QualifiedTypeReference) {
  17. if ((this.patternFineGrain & IJavaSearchConstants.QUALIFIED_REFERENCE) != 0) {
  18. this.patternLocator.match(referenceExpression, this.nodeSet);
  19. }
  20. }
  21. }

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

  1. @Override
  2. protected void consumeReferenceExpression(ReferenceExpression referenceExpression) {
  3. super.consumeReferenceExpression(referenceExpression);
  4. if (this.patternFineGrain == 0) {
  5. this.patternLocator.match(referenceExpression, this.nodeSet);
  6. } else if ((this.patternFineGrain & IJavaSearchConstants.METHOD_REFERENCE_EXPRESSION) != 0) {
  7. this.patternLocator.match(referenceExpression, this.nodeSet);
  8. } else if (referenceExpression.lhs.isThis()) {
  9. if ((this.patternFineGrain & IJavaSearchConstants.THIS_REFERENCE) != 0) {
  10. this.patternLocator.match(referenceExpression, this.nodeSet);
  11. }
  12. } else if (referenceExpression.lhs.isSuper()) {
  13. if ((this.patternFineGrain & IJavaSearchConstants.SUPER_REFERENCE) != 0) {
  14. this.patternLocator.match(referenceExpression, this.nodeSet);
  15. }
  16. } else if (referenceExpression.lhs instanceof QualifiedNameReference || referenceExpression.lhs instanceof QualifiedTypeReference) {
  17. if ((this.patternFineGrain & IJavaSearchConstants.QUALIFIED_REFERENCE) != 0) {
  18. this.patternLocator.match(referenceExpression, this.nodeSet);
  19. }
  20. }
  21. }

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

  1. @Override
  2. protected void consumeReferenceExpression(ReferenceExpression referenceExpression) {
  3. super.consumeReferenceExpression(referenceExpression);
  4. if (this.patternFineGrain == 0) {
  5. this.patternLocator.match(referenceExpression, this.nodeSet);
  6. } else if ((this.patternFineGrain & IJavaSearchConstants.METHOD_REFERENCE_EXPRESSION) != 0) {
  7. this.patternLocator.match(referenceExpression, this.nodeSet);
  8. } else if (referenceExpression.lhs.isThis()) {
  9. if ((this.patternFineGrain & IJavaSearchConstants.THIS_REFERENCE) != 0) {
  10. this.patternLocator.match(referenceExpression, this.nodeSet);
  11. }
  12. } else if (referenceExpression.lhs.isSuper()) {
  13. if ((this.patternFineGrain & IJavaSearchConstants.SUPER_REFERENCE) != 0) {
  14. this.patternLocator.match(referenceExpression, this.nodeSet);
  15. }
  16. } else if (referenceExpression.lhs instanceof QualifiedNameReference || referenceExpression.lhs instanceof QualifiedTypeReference) {
  17. if ((this.patternFineGrain & IJavaSearchConstants.QUALIFIED_REFERENCE) != 0) {
  18. this.patternLocator.match(referenceExpression, this.nodeSet);
  19. }
  20. }
  21. }

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

  1. @Override
  2. protected void consumeReferenceExpression(ReferenceExpression referenceExpression) {
  3. super.consumeReferenceExpression(referenceExpression);
  4. if (this.patternFineGrain == 0) {
  5. this.patternLocator.match(referenceExpression, this.nodeSet);
  6. } else if ((this.patternFineGrain & IJavaSearchConstants.METHOD_REFERENCE_EXPRESSION) != 0) {
  7. this.patternLocator.match(referenceExpression, this.nodeSet);
  8. } else if (referenceExpression.lhs.isThis()) {
  9. if ((this.patternFineGrain & IJavaSearchConstants.THIS_REFERENCE) != 0) {
  10. this.patternLocator.match(referenceExpression, this.nodeSet);
  11. }
  12. } else if (referenceExpression.lhs.isSuper()) {
  13. if ((this.patternFineGrain & IJavaSearchConstants.SUPER_REFERENCE) != 0) {
  14. this.patternLocator.match(referenceExpression, this.nodeSet);
  15. }
  16. } else if (referenceExpression.lhs instanceof QualifiedNameReference || referenceExpression.lhs instanceof QualifiedTypeReference) {
  17. if ((this.patternFineGrain & IJavaSearchConstants.QUALIFIED_REFERENCE) != 0) {
  18. this.patternLocator.match(referenceExpression, this.nodeSet);
  19. }
  20. }
  21. }

相关文章

Parser类方法