org.eclipse.jdt.internal.compiler.lookup.BlockScope.checkAppropriate()方法的使用及代码示例

x33g5p2x  于2022-01-17 转载在 其他  
字(7.3k)|赞(0)|评价(0)|浏览(92)

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

BlockScope.checkAppropriate介绍

[英]15.12.3 (Java 8) "Compile-Time Step 3: Is the Chosen Method Appropriate?"
[中]15.12.3(Java 8)“编译时步骤3:选择的方法合适吗?”

代码示例

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

/** 15.12.3 (Java 8) "Compile-Time Step 3: Is the Chosen Method Appropriate?" */
public void checkAppropriateMethodAgainstSupers(char[] selector, MethodBinding compileTimeMethod,
    TypeBinding[] parameters, InvocationSite site)
{
  ReferenceBinding enclosingType = enclosingReceiverType();
  MethodBinding otherMethod = getMethod(enclosingType.superclass(), selector, parameters, site);
  if (checkAppropriate(compileTimeMethod, otherMethod, site)) {
    ReferenceBinding[] superInterfaces = enclosingType.superInterfaces();
    if (superInterfaces != null) {
      for (int i = 0; i < superInterfaces.length; i++) {
        otherMethod = getMethod(superInterfaces[i], selector, parameters, site);
        if (!checkAppropriate(compileTimeMethod, otherMethod, site))
          break;
      }
    }
  }
}
private boolean checkAppropriate(MethodBinding compileTimeDeclaration, MethodBinding otherMethod, InvocationSite location) {

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

/** 15.12.3 (Java 8) "Compile-Time Step 3: Is the Chosen Method Appropriate?" */
public void checkAppropriateMethodAgainstSupers(char[] selector, MethodBinding compileTimeMethod,
    TypeBinding[] parameters, InvocationSite site)
{
  ReferenceBinding enclosingType = enclosingReceiverType();
  MethodBinding otherMethod = getMethod(enclosingType.superclass(), selector, parameters, site);
  if (checkAppropriate(compileTimeMethod, otherMethod, site)) {
    ReferenceBinding[] superInterfaces = enclosingType.superInterfaces();
    if (superInterfaces != null) {
      for (int i = 0; i < superInterfaces.length; i++) {
        otherMethod = getMethod(superInterfaces[i], selector, parameters, site);
        if (!checkAppropriate(compileTimeMethod, otherMethod, site))
          break;
      }
    }
  }
}
private boolean checkAppropriate(MethodBinding compileTimeDeclaration, MethodBinding otherMethod, InvocationSite location) {

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

/** 15.12.3 (Java 8) "Compile-Time Step 3: Is the Chosen Method Appropriate?" */
public void checkAppropriateMethodAgainstSupers(char[] selector, MethodBinding compileTimeMethod,
    TypeBinding[] parameters, InvocationSite site)
{
  ReferenceBinding enclosingType = enclosingReceiverType();
  MethodBinding otherMethod = getMethod(enclosingType.superclass(), selector, parameters, site);
  if (checkAppropriate(compileTimeMethod, otherMethod, site)) {
    ReferenceBinding[] superInterfaces = enclosingType.superInterfaces();
    if (superInterfaces != null) {
      for (int i = 0; i < superInterfaces.length; i++) {
        otherMethod = getMethod(superInterfaces[i], selector, parameters, site);
        if (!checkAppropriate(compileTimeMethod, otherMethod, site))
          break;
      }
    }
  }
}
private boolean checkAppropriate(MethodBinding compileTimeDeclaration, MethodBinding otherMethod, InvocationSite location) {

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

/** 15.12.3 (Java 8) "Compile-Time Step 3: Is the Chosen Method Appropriate?" */
public void checkAppropriateMethodAgainstSupers(char[] selector, MethodBinding compileTimeMethod,
    TypeBinding[] parameters, InvocationSite site)
{
  ReferenceBinding enclosingType = enclosingReceiverType();
  MethodBinding otherMethod = getMethod(enclosingType.superclass(), selector, parameters, site);
  if (checkAppropriate(compileTimeMethod, otherMethod, site)) {
    ReferenceBinding[] superInterfaces = enclosingType.superInterfaces();
    if (superInterfaces != null) {
      for (int i = 0; i < superInterfaces.length; i++) {
        otherMethod = getMethod(superInterfaces[i], selector, parameters, site);
        if (!checkAppropriate(compileTimeMethod, otherMethod, site))
          break;
      }
    }
  }
}
private boolean checkAppropriate(MethodBinding compileTimeDeclaration, MethodBinding otherMethod, InvocationSite location) {

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

/** 15.12.3 (Java 8) "Compile-Time Step 3: Is the Chosen Method Appropriate?" */
public void checkAppropriateMethodAgainstSupers(char[] selector, MethodBinding compileTimeMethod,
    TypeBinding[] parameters, InvocationSite site)
{
  ReferenceBinding enclosingType = enclosingReceiverType();
  MethodBinding otherMethod = getMethod(enclosingType.superclass(), selector, parameters, site);
  if (checkAppropriate(compileTimeMethod, otherMethod, site)) {
    ReferenceBinding[] superInterfaces = enclosingType.superInterfaces();
    if (superInterfaces != null) {
      for (int i = 0; i < superInterfaces.length; i++) {
        otherMethod = getMethod(superInterfaces[i], selector, parameters, site);
        if (!checkAppropriate(compileTimeMethod, otherMethod, site))
          break;
      }
    }
  }
}
private boolean checkAppropriate(MethodBinding compileTimeDeclaration, MethodBinding otherMethod, InvocationSite location) {

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

/** 15.12.3 (Java 8) "Compile-Time Step 3: Is the Chosen Method Appropriate?" */
public void checkAppropriateMethodAgainstSupers(char[] selector, MethodBinding compileTimeMethod,
    TypeBinding[] parameters, InvocationSite site)
{
  ReferenceBinding enclosingType = enclosingReceiverType();
  MethodBinding otherMethod = getMethod(enclosingType.superclass(), selector, parameters, site);
  if (checkAppropriate(compileTimeMethod, otherMethod, site)) {
    ReferenceBinding[] superInterfaces = enclosingType.superInterfaces();
    if (superInterfaces != null) {
      for (int i = 0; i < superInterfaces.length; i++) {
        otherMethod = getMethod(superInterfaces[i], selector, parameters, site);
        if (!checkAppropriate(compileTimeMethod, otherMethod, site))
          break;
      }
    }
  }
}
private boolean checkAppropriate(MethodBinding compileTimeDeclaration, MethodBinding otherMethod, InvocationSite location) {

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

/** 15.12.3 (Java 8) "Compile-Time Step 3: Is the Chosen Method Appropriate?" */
public void checkAppropriateMethodAgainstSupers(char[] selector, MethodBinding compileTimeMethod,
    TypeBinding[] parameters, InvocationSite site)
{
  ReferenceBinding enclosingType = enclosingReceiverType();
  MethodBinding otherMethod = getMethod(enclosingType.superclass(), selector, parameters, site);
  if (checkAppropriate(compileTimeMethod, otherMethod, site)) {
    ReferenceBinding[] superInterfaces = enclosingType.superInterfaces();
    if (superInterfaces != null) {
      for (int i = 0; i < superInterfaces.length; i++) {
        otherMethod = getMethod(superInterfaces[i], selector, parameters, site);
        if (!checkAppropriate(compileTimeMethod, otherMethod, site))
          break;
      }
    }
  }
}
private boolean checkAppropriate(MethodBinding compileTimeDeclaration, MethodBinding otherMethod, InvocationSite location) {

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

/** 15.12.3 (Java 8) "Compile-Time Step 3: Is the Chosen Method Appropriate?" */
public void checkAppropriateMethodAgainstSupers(char[] selector, MethodBinding compileTimeMethod,
    TypeBinding[] parameters, InvocationSite site)
{
  ReferenceBinding enclosingType = enclosingReceiverType();
  MethodBinding otherMethod = getMethod(enclosingType.superclass(), selector, parameters, site);
  if (checkAppropriate(compileTimeMethod, otherMethod, site)) {
    ReferenceBinding[] superInterfaces = enclosingType.superInterfaces();
    if (superInterfaces != null) {
      for (int i = 0; i < superInterfaces.length; i++) {
        otherMethod = getMethod(superInterfaces[i], selector, parameters, site);
        if (!checkAppropriate(compileTimeMethod, otherMethod, site))
          break;
      }
    }
  }
}
private boolean checkAppropriate(MethodBinding compileTimeDeclaration, MethodBinding otherMethod, InvocationSite location) {

相关文章

微信公众号

最新文章

更多

BlockScope类方法