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

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

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

Parser.consumeMethodInvocationNameWithTypeArguments介绍

暂无

代码示例

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

@Override
protected void consumeMethodInvocationNameWithTypeArguments() {
  super.consumeMethodInvocationNameWithTypeArguments();
  popElement(K_SELECTOR);
  MessageSend messageSend = (MessageSend)this.expressionStack[this.expressionPtr];
  if (messageSend == this.assistNode){
    this.lastCheckPoint = messageSend.sourceEnd + 1;
  }
}
@Override

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

protected void consumeMethodInvocationNameWithTypeArguments() {
  super.consumeMethodInvocationNameWithTypeArguments();
  popElement(K_SELECTOR);
  MessageSend messageSend = (MessageSend)this.expressionStack[this.expressionPtr];
  if (messageSend == this.assistNode){
    this.lastCheckPoint = messageSend.sourceEnd + 1;
  }
}
protected void consumeMethodInvocationPrimary() {

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

protected void consumeMethodInvocationNameWithTypeArguments() {
  super.consumeMethodInvocationNameWithTypeArguments();
  popElement(K_SELECTOR);
  MessageSend messageSend = (MessageSend)this.expressionStack[this.expressionPtr];
  if (messageSend == this.assistNode){
    this.lastCheckPoint = messageSend.sourceEnd + 1;
  }
}
protected void consumeMethodInvocationPrimary() {

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

protected void consumeMethodInvocationNameWithTypeArguments() {
  super.consumeMethodInvocationNameWithTypeArguments();
  popElement(K_SELECTOR);
  MessageSend messageSend = (MessageSend)this.expressionStack[this.expressionPtr];
  if (messageSend == this.assistNode){
    this.lastCheckPoint = messageSend.sourceEnd + 1;
  }
}
protected void consumeMethodInvocationPrimary() {

代码示例来源:origin: org.jibx.config.3rdparty.org.eclipse/org.eclipse.jdt.core

protected void consumeMethodInvocationNameWithTypeArguments() {
  super.consumeMethodInvocationNameWithTypeArguments();
  popElement(K_SELECTOR);
  MessageSend messageSend = (MessageSend)this.expressionStack[this.expressionPtr];
  if (messageSend == this.assistNode){
    this.lastCheckPoint = messageSend.sourceEnd + 1;
  }
}
protected void consumeMethodInvocationPrimary() {

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

protected void consumeMethodInvocationNameWithTypeArguments() {
  super.consumeMethodInvocationNameWithTypeArguments();
  popElement(K_SELECTOR);
  MessageSend messageSend = (MessageSend)this.expressionStack[this.expressionPtr];
  if (messageSend == this.assistNode){
    this.lastCheckPoint = messageSend.sourceEnd + 1;
  }
}
protected void consumeMethodInvocationPrimary() {

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

protected void consumeMethodInvocationNameWithTypeArguments() {
  // MethodInvocation ::= Name '.' TypeArguments 'Identifier' '(' ArgumentListopt ')'

  // when the name is only an identifier...we have a message send to "this" (implicit)
  if (this.scanner.startPosition >= this.codeSnippetStart
      && this.scanner.startPosition <= this.codeSnippetEnd + 1 + this.lineSeparatorLength // 14838
      && isTopLevelType()) {

  
    MessageSend m = newMessageSendWithTypeArguments();
    m.sourceEnd = this.rParenPos;
    m.sourceStart =
      (int) ((m.nameSourcePosition = this.identifierPositionStack[this.identifierPtr]) >>> 32);
    m.selector = this.identifierStack[this.identifierPtr--];
    this.identifierLengthPtr--;
  
    // handle type arguments
    int length = this.genericsLengthStack[this.genericsLengthPtr--];
    this.genericsPtr -= length;
    System.arraycopy(this.genericsStack, this.genericsPtr + 1, m.typeArguments = new TypeReference[length], 0, length);
    this.intPtr--;
  
    m.receiver = getUnspecifiedReference();
    m.sourceStart = m.receiver.sourceStart;
    pushOnExpressionStack(m);
  } else {
    super.consumeMethodInvocationNameWithTypeArguments();
  }
}
protected void consumeMethodInvocationSuper() {

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

protected void consumeMethodInvocationNameWithTypeArguments() {
  // MethodInvocation ::= Name '.' TypeArguments 'Identifier' '(' ArgumentListopt ')'

  // when the name is only an identifier...we have a message send to "this" (implicit)
  if (this.scanner.startPosition >= this.codeSnippetStart
      && this.scanner.startPosition <= this.codeSnippetEnd + 1 + this.lineSeparatorLength // 14838
      && isTopLevelType()) {

  
    MessageSend m = newMessageSendWithTypeArguments();
    m.sourceEnd = this.rParenPos;
    m.sourceStart =
      (int) ((m.nameSourcePosition = this.identifierPositionStack[this.identifierPtr]) >>> 32);
    m.selector = this.identifierStack[this.identifierPtr--];
    this.identifierLengthPtr--;
  
    // handle type arguments
    int length = this.genericsLengthStack[this.genericsLengthPtr--];
    this.genericsPtr -= length;
    System.arraycopy(this.genericsStack, this.genericsPtr + 1, m.typeArguments = new TypeReference[length], 0, length);
    this.intPtr--;
  
    m.receiver = getUnspecifiedReference();
    m.sourceStart = m.receiver.sourceStart;
    pushOnExpressionStack(m);
  } else {
    super.consumeMethodInvocationNameWithTypeArguments();
  }
}
protected void consumeMethodInvocationSuper() {

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

protected void consumeMethodInvocationNameWithTypeArguments() {
  // MethodInvocation ::= Name '.' TypeArguments 'Identifier' '(' ArgumentListopt ')'

  // when the name is only an identifier...we have a message send to "this" (implicit)
  if (this.scanner.startPosition >= this.codeSnippetStart
      && this.scanner.startPosition <= this.codeSnippetEnd + 1 + this.lineSeparatorLength // 14838
      && isTopLevelType()) {

  
    MessageSend m = newMessageSendWithTypeArguments();
    m.sourceEnd = this.rParenPos;
    m.sourceStart =
      (int) ((m.nameSourcePosition = this.identifierPositionStack[this.identifierPtr]) >>> 32);
    m.selector = this.identifierStack[this.identifierPtr--];
    this.identifierLengthPtr--;
  
    // handle type arguments
    int length = this.genericsLengthStack[this.genericsLengthPtr--];
    this.genericsPtr -= length;
    System.arraycopy(this.genericsStack, this.genericsPtr + 1, m.typeArguments = new TypeReference[length], 0, length);
    this.intPtr--;
  
    m.receiver = getUnspecifiedReference();
    m.sourceStart = m.receiver.sourceStart;
    pushOnExpressionStack(m);
  } else {
    super.consumeMethodInvocationNameWithTypeArguments();
  }
}
protected void consumeMethodInvocationSuper() {

代码示例来源:origin: org.jibx.config.3rdparty.org.eclipse/org.eclipse.jdt.core

protected void consumeMethodInvocationNameWithTypeArguments() {
  // MethodInvocation ::= Name '.' TypeArguments 'Identifier' '(' ArgumentListopt ')'

  // when the name is only an identifier...we have a message send to "this" (implicit)
  if (this.scanner.startPosition >= this.codeSnippetStart
      && this.scanner.startPosition <= this.codeSnippetEnd + 1 + this.lineSeparatorLength // 14838
      && isTopLevelType()) {

  
    MessageSend m = newMessageSendWithTypeArguments();
    m.sourceEnd = this.rParenPos;
    m.sourceStart =
      (int) ((m.nameSourcePosition = this.identifierPositionStack[this.identifierPtr]) >>> 32);
    m.selector = this.identifierStack[this.identifierPtr--];
    this.identifierLengthPtr--;
  
    // handle type arguments
    int length = this.genericsLengthStack[this.genericsLengthPtr--];
    this.genericsPtr -= length;
    System.arraycopy(this.genericsStack, this.genericsPtr + 1, m.typeArguments = new TypeReference[length], 0, length);
    this.intPtr--;
  
    m.receiver = getUnspecifiedReference();
    m.sourceStart = m.receiver.sourceStart;
    pushOnExpressionStack(m);
  } else {
    super.consumeMethodInvocationNameWithTypeArguments();
  }
}
protected void consumeMethodInvocationSuper() {

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

protected void consumeMethodInvocationNameWithTypeArguments() {
  // MethodInvocation ::= Name '.' TypeArguments 'Identifier' '(' ArgumentListopt ')'

  // when the name is only an identifier...we have a message send to "this" (implicit)
  if (this.scanner.startPosition >= this.codeSnippetStart
      && this.scanner.startPosition <= this.codeSnippetEnd + 1 + this.lineSeparatorLength // 14838
      && isTopLevelType()) {

  
    MessageSend m = newMessageSendWithTypeArguments();
    m.sourceEnd = this.rParenPos;
    m.sourceStart =
      (int) ((m.nameSourcePosition = this.identifierPositionStack[this.identifierPtr]) >>> 32);
    m.selector = this.identifierStack[this.identifierPtr--];
    this.identifierLengthPtr--;
  
    // handle type arguments
    int length = this.genericsLengthStack[this.genericsLengthPtr--];
    this.genericsPtr -= length;
    System.arraycopy(this.genericsStack, this.genericsPtr + 1, m.typeArguments = new TypeReference[length], 0, length);
    this.intPtr--;
  
    m.receiver = getUnspecifiedReference();
    m.sourceStart = m.receiver.sourceStart;
    pushOnExpressionStack(m);
  } else {
    super.consumeMethodInvocationNameWithTypeArguments();
  }
}
protected void consumeMethodInvocationSuper() {

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

pushOnExpressionStack(m);
} else {
  super.consumeMethodInvocationNameWithTypeArguments();

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

protected void consumeMethodInvocationNameWithTypeArguments() {
  super.consumeMethodInvocationNameWithTypeArguments();
  MessageSend messageSend = (MessageSend) this.expressionStack[this.expressionPtr];
  if (this.patternFineGrain == 0) {
    this.patternLocator.match(messageSend, this.nodeSet);
  } else {
    if (messageSend.receiver.isThis()) {
      if ((this.patternFineGrain & IJavaSearchConstants.IMPLICIT_THIS_REFERENCE) != 0) {
        this.patternLocator.match(messageSend, this.nodeSet);
      }
    } else {
      if ((this.patternFineGrain & IJavaSearchConstants.QUALIFIED_REFERENCE) != 0) {
        this.patternLocator.match(messageSend, this.nodeSet);
      }
    }
  }
}

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

protected void consumeMethodInvocationNameWithTypeArguments() {
  super.consumeMethodInvocationNameWithTypeArguments();
  MessageSend messageSend = (MessageSend) this.expressionStack[this.expressionPtr];
  if (this.patternFineGrain == 0) {
    this.patternLocator.match(messageSend, this.nodeSet);
  } else {
    if (messageSend.receiver.isThis()) {
      if ((this.patternFineGrain & IJavaSearchConstants.IMPLICIT_THIS_REFERENCE) != 0) {
        this.patternLocator.match(messageSend, this.nodeSet);
      }
    } else {
      if ((this.patternFineGrain & IJavaSearchConstants.QUALIFIED_REFERENCE) != 0) {
        this.patternLocator.match(messageSend, this.nodeSet);
      }
    }
  }
}

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

@Override
protected void consumeMethodInvocationNameWithTypeArguments() {
  super.consumeMethodInvocationNameWithTypeArguments();
  MessageSend messageSend = (MessageSend) this.expressionStack[this.expressionPtr];
  if (this.patternFineGrain == 0) {
    this.patternLocator.match(messageSend, this.nodeSet);
  } else {
    if (messageSend.receiver.isThis()) {
      if ((this.patternFineGrain & IJavaSearchConstants.IMPLICIT_THIS_REFERENCE) != 0) {
        this.patternLocator.match(messageSend, this.nodeSet);
      }
    } else {
      if ((this.patternFineGrain & IJavaSearchConstants.QUALIFIED_REFERENCE) != 0) {
        this.patternLocator.match(messageSend, this.nodeSet);
      }
    }
  }
}

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

protected void consumeMethodInvocationNameWithTypeArguments() {
  super.consumeMethodInvocationNameWithTypeArguments();
  MessageSend messageSend = (MessageSend) this.expressionStack[this.expressionPtr];
  if (this.patternFineGrain == 0) {
    this.patternLocator.match(messageSend, this.nodeSet);
  } else {
    if (messageSend.receiver.isThis()) {
      if ((this.patternFineGrain & IJavaSearchConstants.IMPLICIT_THIS_REFERENCE) != 0) {
        this.patternLocator.match(messageSend, this.nodeSet);
      }
    } else {
      if ((this.patternFineGrain & IJavaSearchConstants.QUALIFIED_REFERENCE) != 0) {
        this.patternLocator.match(messageSend, this.nodeSet);
      }
    }
  }
}

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

protected void consumeMethodInvocationNameWithTypeArguments() {
  super.consumeMethodInvocationNameWithTypeArguments();
  MessageSend messageSend = (MessageSend) this.expressionStack[this.expressionPtr];
  if (this.patternFineGrain == 0) {
    this.patternLocator.match(messageSend, this.nodeSet);
  } else {
    if (messageSend.receiver.isThis()) {
      if ((this.patternFineGrain & IJavaSearchConstants.IMPLICIT_THIS_REFERENCE) != 0) {
        this.patternLocator.match(messageSend, this.nodeSet);
      }
    } else {
      if ((this.patternFineGrain & IJavaSearchConstants.QUALIFIED_REFERENCE) != 0) {
        this.patternLocator.match(messageSend, this.nodeSet);
      }
    }
  }
}

代码示例来源:origin: org.jibx.config.3rdparty.org.eclipse/org.eclipse.jdt.core

protected void consumeMethodInvocationNameWithTypeArguments() {
  super.consumeMethodInvocationNameWithTypeArguments();
  MessageSend messageSend = (MessageSend) this.expressionStack[this.expressionPtr];
  if (this.patternFineGrain == 0) {
    this.patternLocator.match(messageSend, this.nodeSet);
  } else {
    if (messageSend.receiver.isThis()) {
      if ((this.patternFineGrain & IJavaSearchConstants.IMPLICIT_THIS_REFERENCE) != 0) {
        this.patternLocator.match(messageSend, this.nodeSet);
      }
    } else {
      if ((this.patternFineGrain & IJavaSearchConstants.QUALIFIED_REFERENCE) != 0) {
        this.patternLocator.match(messageSend, this.nodeSet);
      }
    }
  }
}

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

consumeMethodInvocationNameWithTypeArguments();  
break;

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

consumeMethodInvocationNameWithTypeArguments();  
break;

相关文章

微信公众号

最新文章

更多

Parser类方法