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


Java Finder类代码示例

本文整理汇总了Java中com.sun.tools.classfile.Dependency.Finder的典型用法代码示例。如果您正苦于以下问题:Java Finder类的具体用法?Java Finder怎么用?Java Finder使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


Finder类属于com.sun.tools.classfile.Dependency包,在下文中一共展示了Finder类的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: getFinder

import com.sun.tools.classfile.Dependency.Finder; //导入依赖的package包/类
/**
 * Get the finder used to locate the dependencies for a class.
 * @return the finder
 */
public Finder getFinder() {
    if (finder == null)
        finder = getDefaultFinder();
    return finder;
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:10,代码来源:Dependencies.java

示例2: setFinder

import com.sun.tools.classfile.Dependency.Finder; //导入依赖的package包/类
/**
 * Set the finder used to locate the dependencies for a class.
 * @param f the finder
 */
public void setFinder(Finder f) {
    f.getClass(); // null check
    finder = f;
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:9,代码来源:Dependencies.java

示例3: getDefaultFinder

import com.sun.tools.classfile.Dependency.Finder; //导入依赖的package包/类
/**
 * Get the  default finder used to locate the dependencies for a class.
 * @return the default finder
 */
public static Finder getDefaultFinder() {
    return new APIDependencyFinder(AccessFlags.ACC_PRIVATE);
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:8,代码来源:Dependencies.java

示例4: getAPIFinder

import com.sun.tools.classfile.Dependency.Finder; //导入依赖的package包/类
/**
 * Get a finder used to locate the API dependencies for a class.
 * These include the superclass, superinterfaces, and classes referenced in
 * the declarations of fields and methods.  The fields and methods that
 * are checked can be limited according to a specified access.
 * The access parameter must be one of {@link AccessFlags#ACC_PUBLIC ACC_PUBLIC},
 * {@link AccessFlags#ACC_PRIVATE ACC_PRIVATE},
 * {@link AccessFlags#ACC_PROTECTED ACC_PROTECTED}, or 0 for
 * package private access. Members with greater than or equal accessibility
 * to that specified will be searched for dependencies.
 * @param access the access of members to be checked
 * @return an API finder
 */
public static Finder getAPIFinder(int access) {
    return new APIDependencyFinder(access);
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:17,代码来源:Dependencies.java

示例5: getClassDependencyFinder

import com.sun.tools.classfile.Dependency.Finder; //导入依赖的package包/类
/**
 * Get a finder to do class dependency analysis.
 *
 * @return a Class dependency finder
 */
public static Finder getClassDependencyFinder() {
    return new ClassDependencyFinder();
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:9,代码来源:Dependencies.java

示例6: setFinder

import com.sun.tools.classfile.Dependency.Finder; //导入依赖的package包/类
/**
 * Set the finder used to locate the dependencies for a class.
 * @param f the finder
 */
public void setFinder(Finder f) {
    finder = Objects.requireNonNull(f);
}
 
开发者ID:AdoptOpenJDK,项目名称:openjdk-jdk10,代码行数:8,代码来源:Dependencies.java


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