本文整理了Java中org.eclipse.jdt.core.WorkingCopyOwner.isPackage()
方法的一些代码示例,展示了WorkingCopyOwner.isPackage()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。WorkingCopyOwner.isPackage()
方法的具体详情如下:
包路径:org.eclipse.jdt.core.WorkingCopyOwner
类名称:WorkingCopyOwner
方法名:isPackage
[英]Returns whether the given package segments represent a package.
This method is called before the normal lookup (i.e. before looking at the project's classpath and before looking at the working copies of this owner.)
This allows to provide packages that are not normally available.
If false
is returned, then normal lookup is used on this package.
[中]返回给定的包段是否表示包。
在正常查找之前(即,在查看项目的类路径之前,以及在查看此所有者的工作副本之前)调用此方法
这允许提供通常不可用的软件包。
如果返回false
,则在此包上使用正常查找。
代码示例来源:origin: com.google.code.maven-play-plugin.org.eclipse.jdt/org.eclipse.jdt.core
/**
* @see org.eclipse.jdt.internal.compiler.env.INameEnvironment#isPackage(char[][], char[])
*/
public boolean isPackage(char[][] parentPackageName, char[] subPackageName) {
String[] pkgName;
if (parentPackageName == null)
pkgName = new String[] {new String(subPackageName)};
else {
int length = parentPackageName.length;
pkgName = new String[length+1];
for (int i = 0; i < length; i++)
pkgName[i] = new String(parentPackageName[i]);
pkgName[length] = new String(subPackageName);
}
return
(this.owner != null && this.owner.isPackage(pkgName))
|| this.nameLookup.isPackage(pkgName);
}
代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.jdt.core
/**
* @see org.eclipse.jdt.internal.compiler.env.INameEnvironment#isPackage(char[][], char[])
*/
public boolean isPackage(char[][] parentPackageName, char[] subPackageName) {
String[] pkgName;
if (parentPackageName == null)
pkgName = new String[] {new String(subPackageName)};
else {
int length = parentPackageName.length;
pkgName = new String[length+1];
for (int i = 0; i < length; i++)
pkgName[i] = new String(parentPackageName[i]);
pkgName[length] = new String(subPackageName);
}
return
(this.owner != null && this.owner.isPackage(pkgName))
|| this.nameLookup.isPackage(pkgName);
}
代码示例来源:origin: org.jibx.config.3rdparty.org.eclipse/org.eclipse.jdt.core
/**
* @see org.eclipse.jdt.internal.compiler.env.INameEnvironment#isPackage(char[][], char[])
*/
public boolean isPackage(char[][] parentPackageName, char[] subPackageName) {
String[] pkgName;
if (parentPackageName == null)
pkgName = new String[] {new String(subPackageName)};
else {
int length = parentPackageName.length;
pkgName = new String[length+1];
for (int i = 0; i < length; i++)
pkgName[i] = new String(parentPackageName[i]);
pkgName[length] = new String(subPackageName);
}
return
(this.owner != null && this.owner.isPackage(pkgName))
|| this.nameLookup.isPackage(pkgName);
}
代码示例来源:origin: trylimits/Eclipse-Postfix-Code-Completion
/**
* @see org.eclipse.jdt.internal.compiler.env.INameEnvironment#isPackage(char[][], char[])
*/
public boolean isPackage(char[][] parentPackageName, char[] subPackageName) {
String[] pkgName;
if (parentPackageName == null)
pkgName = new String[] {new String(subPackageName)};
else {
int length = parentPackageName.length;
pkgName = new String[length+1];
for (int i = 0; i < length; i++)
pkgName[i] = new String(parentPackageName[i]);
pkgName[length] = new String(subPackageName);
}
return
(this.owner != null && this.owner.isPackage(pkgName))
|| this.nameLookup.isPackage(pkgName);
}
代码示例来源:origin: org.eclipse.jdt/org.eclipse.jdt.core
if ((this.owner != null && this.owner.isPackage(pkgName))
|| this.nameLookup.isPackage(pkgName))
return new char[][] { ModuleBinding.UNNAMED };
代码示例来源:origin: org.eclipse.tycho/org.eclipse.jdt.core
if ((this.owner != null && this.owner.isPackage(pkgName))
|| this.nameLookup.isPackage(pkgName))
return new char[][] { ModuleBinding.UNNAMED };
内容来源于网络,如有侵权,请联系作者删除!