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

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

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

Parser.getUnspecifiedReference介绍

暂无

代码示例

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

  1. protected NameReference getUnspecifiedReference() {
  2. return getUnspecifiedReference(true);
  3. }
  4. protected NameReference getUnspecifiedReference(boolean rejectTypeAnnotations) {

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

  1. protected NameReference getUnspecifiedReference() {
  2. return getUnspecifiedReference(true);
  3. }
  4. protected NameReference getUnspecifiedReference(boolean rejectTypeAnnotations) {

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

  1. protected NameReference getUnspecifiedReference() {
  2. return getUnspecifiedReference(true);
  3. }
  4. protected NameReference getUnspecifiedReference(boolean rejectTypeAnnotations) {

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

  1. protected NameReference getUnspecifiedReference() {
  2. return getUnspecifiedReference(true);
  3. }
  4. protected NameReference getUnspecifiedReference(boolean rejectTypeAnnotations) {

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

  1. protected NameReference getUnspecifiedReference() {
  2. return getUnspecifiedReference(true);
  3. }
  4. protected NameReference getUnspecifiedReference(boolean rejectTypeAnnotations) {

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

  1. protected NameReference getUnspecifiedReference() {
  2. return getUnspecifiedReference(true);
  3. }
  4. protected NameReference getUnspecifiedReference(boolean rejectTypeAnnotations) {

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

  1. protected NameReference getUnspecifiedReference() {
  2. return getUnspecifiedReference(true);
  3. }
  4. protected NameReference getUnspecifiedReference(boolean rejectTypeAnnotations) {

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

  1. protected NameReference getUnspecifiedReference() {
  2. return getUnspecifiedReference(true);
  3. }
  4. protected NameReference getUnspecifiedReference(boolean rejectTypeAnnotations) {

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

  1. protected void consumeResourceAsLocalVariable() {
  2. // Resource ::= Name
  3. NameReference ref = getUnspecifiedReference(true);
  4. //ref.bits |= ASTNode.IsCapturedOuterLocal;
  5. pushOnAstStack(ref);
  6. }
  7. protected void consumeResourceAsFieldAccess() {

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

  1. protected void consumeResourceAsLocalVariable() {
  2. // Resource ::= Name
  3. NameReference ref = getUnspecifiedReference(true);
  4. //ref.bits |= ASTNode.IsCapturedOuterLocal;
  5. pushOnAstStack(ref);
  6. }
  7. protected void consumeResourceAsFieldAccess() {

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

  1. protected NameReference getUnspecifiedReference(boolean rejectTypeAnnotations) {
  2. NameReference nameRef = super.getUnspecifiedReference(rejectTypeAnnotations);
  3. if (this.patternFineGrain == 0) {
  4. this.patternLocator.match(nameRef, this.nodeSet); // NB: Don't check container since unspecified reference can happen anywhere
  5. } else if ((this.patternFineGrain & IJavaSearchConstants.QUALIFIED_REFERENCE) != 0) {
  6. if (nameRef instanceof QualifiedNameReference) {
  7. this.patternLocator.match(nameRef, this.nodeSet);
  8. }
  9. } else if ((this.patternFineGrain & IJavaSearchConstants.IMPLICIT_THIS_REFERENCE) != 0) {
  10. if (nameRef instanceof SingleNameReference) {
  11. this.patternLocator.match(nameRef, this.nodeSet);
  12. }
  13. }
  14. return nameRef;
  15. }
  16. protected NameReference getUnspecifiedReferenceOptimized() {

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

  1. protected NameReference getUnspecifiedReference(boolean rejectTypeAnnotations) {
  2. NameReference nameRef = super.getUnspecifiedReference(rejectTypeAnnotations);
  3. if (this.patternFineGrain == 0) {
  4. this.patternLocator.match(nameRef, this.nodeSet); // NB: Don't check container since unspecified reference can happen anywhere
  5. } else if ((this.patternFineGrain & IJavaSearchConstants.QUALIFIED_REFERENCE) != 0) {
  6. if (nameRef instanceof QualifiedNameReference) {
  7. this.patternLocator.match(nameRef, this.nodeSet);
  8. }
  9. } else if ((this.patternFineGrain & IJavaSearchConstants.IMPLICIT_THIS_REFERENCE) != 0) {
  10. if (nameRef instanceof SingleNameReference) {
  11. this.patternLocator.match(nameRef, this.nodeSet);
  12. }
  13. }
  14. return nameRef;
  15. }
  16. protected NameReference getUnspecifiedReferenceOptimized() {

代码示例来源: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: 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: 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: 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. }

代码示例来源: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. }

相关文章

Parser类方法