本文整理了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
[英]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) {
内容来源于网络,如有侵权,请联系作者删除!