本文整理汇总了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;
}
示例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;
}
示例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);
}
示例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);
}
示例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();
}
示例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);
}