当前位置: 首页>>代码示例>>Java>>正文


Java ClassCollector类代码示例

本文整理汇总了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;
}
 
开发者ID:tranleduy2000,项目名称:javaide,代码行数:21,代码来源:ClassMerger.java

示例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;
}
 
开发者ID:tranleduy2000,项目名称:javaide,代码行数:16,代码来源:SideEffectInstructionChecker.java

示例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;
}
 
开发者ID:tranleduy2000,项目名称:javaide,代码行数:17,代码来源:ClassMerger.java

示例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;
}
 
开发者ID:tranleduy2000,项目名称:javaide,代码行数:15,代码来源:ClassMerger.java


注:本文中的proguard.classfile.visitor.ClassCollector类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。