本文整理汇总了Java中proguard.classfile.visitor.ClassCollector类的典型用法代码示例。如果您正苦于以下问题:Java ClassCollector类的具体用法?Java ClassCollector怎么用?Java ClassCollector使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
ClassCollector类属于proguard.classfile.visitor包,在下文中一共展示了ClassCollector类的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: indirectlyImplementedInterfaces
import proguard.classfile.visitor.ClassCollector; //导入依赖的package包/类
/**
* Returns the set of indirectly implemented interfaces.
*/
private Set indirectlyImplementedInterfaces(Clazz clazz)
{
Set set = new HashSet();
ReferencedClassVisitor referencedInterfaceCollector =
new ReferencedClassVisitor(
new ClassHierarchyTraveler(false, false, true, false,
new ClassCollector(set)));
// Visit all superclasses and collect their interfaces.
clazz.superClassConstantAccept(referencedInterfaceCollector);
// Visit all interfaces and collect their interfaces.
clazz.interfaceConstantsAccept(referencedInterfaceCollector);
return set;
}
示例2: initializedSuperClasses
import proguard.classfile.visitor.ClassCollector; //导入依赖的package包/类
/**
* Returns the set of superclasses and interfaces that are initialized.
*/
private Set initializedSuperClasses(Clazz clazz)
{
Set set = new HashSet();
// Visit all superclasses and interfaces, collecting the ones that have
// static initializers.
clazz.hierarchyAccept(true, true, true, false,
new StaticInitializerContainingClassFilter(
new ClassCollector(set)));
return set;
}
示例3: instanceofedSuperClasses
import proguard.classfile.visitor.ClassCollector; //导入依赖的package包/类
/**
* Returns the set of superclasses and interfaces that are used in
* 'instanceof' tests.
*/
private Set instanceofedSuperClasses(Clazz clazz)
{
Set set = new HashSet();
// Visit all superclasses and interfaces, collecting the ones that are
// used in an 'instanceof' test.
clazz.hierarchyAccept(true, true, true, false,
new InstanceofClassFilter(
new ClassCollector(set)));
return set;
}
示例4: caughtSuperClasses
import proguard.classfile.visitor.ClassCollector; //导入依赖的package包/类
/**
* Returns the set of superclasses that are caught as exceptions.
*/
private Set caughtSuperClasses(Clazz clazz)
{
Set set = new HashSet();
// Visit all superclasses, collecting the ones that are caught.
clazz.hierarchyAccept(true, true, false, false,
new CaughtClassFilter(
new ClassCollector(set)));
return set;
}