本文整理汇总了Java中org.eclipse.jdt.internal.corext.util.JdtFlags.isHigherVisibility方法的典型用法代码示例。如果您正苦于以下问题:Java JdtFlags.isHigherVisibility方法的具体用法?Java JdtFlags.isHigherVisibility怎么用?Java JdtFlags.isHigherVisibility使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.eclipse.jdt.internal.corext.util.JdtFlags
的用法示例。
在下文中一共展示了JdtFlags.isHigherVisibility方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getMostVisibleConstructor
import org.eclipse.jdt.internal.corext.util.JdtFlags; //导入方法依赖的package包/类
private IMethod getMostVisibleConstructor() throws JavaModelException {
Assert.isTrue(fConstructors.length > 0);
IMethod candidate= fConstructors[0];
int visibility= JdtFlags.getVisibilityCode(fConstructors[0]);
for (int i= 1; i < fConstructors.length; i++) {
IMethod constructor= fConstructors[i];
if (JdtFlags.isHigherVisibility(JdtFlags.getVisibilityCode(constructor), visibility))
candidate= constructor;
}
return candidate;
}
示例2: needsVisibilityUpdate
import org.eclipse.jdt.internal.corext.util.JdtFlags; //导入方法依赖的package包/类
private boolean needsVisibilityUpdate() throws JavaModelException {
if (isVisibilitySameAsInitial())
return false;
if (isIncreasingVisibility())
return JdtFlags.isHigherVisibility(fVisibility, JdtFlags.getVisibilityCode(fMethDecl));
else
return JdtFlags.isHigherVisibility(JdtFlags.getVisibilityCode(fMethDecl), fVisibility);
}
示例3: needsVisibilityUpdate
import org.eclipse.jdt.internal.corext.util.JdtFlags; //导入方法依赖的package包/类
private boolean needsVisibilityUpdate() throws JavaModelException {
if (isVisibilitySameAsInitial()) return false;
if (isIncreasingVisibility())
return JdtFlags.isHigherVisibility(fVisibility, JdtFlags.getVisibilityCode(fMethDecl));
else return JdtFlags.isHigherVisibility(JdtFlags.getVisibilityCode(fMethDecl), fVisibility);
}
示例4: isIncreasingVisibility
import org.eclipse.jdt.internal.corext.util.JdtFlags; //导入方法依赖的package包/类
private boolean isIncreasingVisibility() throws JavaModelException {
return JdtFlags.isHigherVisibility(fVisibility, JdtFlags.getVisibilityCode(fMethod));
}
示例5: isIncreasingVisibility
import org.eclipse.jdt.internal.corext.util.JdtFlags; //导入方法依赖的package包/类
private boolean isIncreasingVisibility() throws JavaModelException{
return JdtFlags.isHigherVisibility(fVisibility, JdtFlags.getVisibilityCode(fMethod));
}