本文整理汇总了Java中org.eclipse.jdt.internal.corext.refactoring.typeconstraints.types.TType.getInterfaces方法的典型用法代码示例。如果您正苦于以下问题:Java TType.getInterfaces方法的具体用法?Java TType.getInterfaces怎么用?Java TType.getInterfaces使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.eclipse.jdt.internal.corext.refactoring.typeconstraints.types.TType
的用法示例。
在下文中一共展示了TType.getInterfaces方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: pushSupertypes
import org.eclipse.jdt.internal.corext.refactoring.typeconstraints.types.TType; //导入方法依赖的package包/类
private void pushSupertypes(TType type) {
if (type.isJavaLangObject()) return;
if (type.isTypeVariable() || type.isCaptureType()) {
TType[] bounds = ((AbstractTypeVariable) type).getBounds();
for (int i = 0; i < bounds.length; i++) fWorklist.push(bounds[i].getTypeDeclaration());
} else {
TType superclass = type.getSuperclass();
if (superclass == null) {
if (type.isInterface()) fWorklist.push(type.getEnvironment().getJavaLangObject());
} else {
fWorklist.push(superclass.getTypeDeclaration());
}
TType[] interfaces = type.getInterfaces();
for (int i = 0; i < interfaces.length; i++)
fWorklist.push(interfaces[i].getTypeDeclaration());
}
}
示例2: makeElementVariablesFromSupertypes
import org.eclipse.jdt.internal.corext.refactoring.typeconstraints.types.TType; //导入方法依赖的package包/类
private void makeElementVariablesFromSupertypes(ConstraintVariable2 expressionCv, TType type) {
TType superclass = type.getSuperclass();
if (superclass != null) {
makeSupertypeElementVariables(expressionCv, superclass);
}
TType[] interfaces = type.getInterfaces();
for (int i = 0; i < interfaces.length; i++) {
makeSupertypeElementVariables(expressionCv, interfaces[i]);
}
}
示例3: makeFixedElementVariablesFromSupertypes
import org.eclipse.jdt.internal.corext.refactoring.typeconstraints.types.TType; //导入方法依赖的package包/类
private void makeFixedElementVariablesFromSupertypes(
ConstraintVariable2 expressionCv, TType type) {
TType superclass = type.getSuperclass();
if (superclass != null) makeFixedSupertypeElementVariables(expressionCv, superclass);
TType[] interfaces = type.getInterfaces();
for (int i = 0; i < interfaces.length; i++)
makeFixedSupertypeElementVariables(expressionCv, interfaces[i]);
}