com.sun.tools.classfile.Dependency.Filter Java Examples

The following examples show how to use com.sun.tools.classfile.Dependency.Filter. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: Dependencies.java    From openjdk-8-source with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Get the default filter used to determine included when searching
 * the transitive closure of all the dependencies.
 * Unless overridden, the default filter accepts all dependencies.
 * @return the default filter.
 */
public static Filter getDefaultFilter() {
    return DefaultFilter.instance();
}
 
Example #2
Source File: Dependencies.java    From openjdk-jdk9 with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Get a filter which uses a regular expression on the target's class name
 * to determine if a dependency is of interest.
 * @param pattern the pattern used to match the target's class name
 * @return a filter for matching the target class name with a regular expression
 */
public static Filter getRegexFilter(Pattern pattern) {
    return new TargetRegexFilter(pattern);
}
 
Example #3
Source File: Dependencies.java    From openjdk-jdk9 with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Get a filter which checks the package of a target's class name
 * to determine if a dependency is of interest. The filter checks if the
 * package of the target's class matches any of a set of given package
 * names. The match may optionally match subpackages of the given names as well.
 * @param packageNames the package names used to match the target's class name
 * @param matchSubpackages whether or not to match subpackages as well
 * @return a filter for checking the target package name against a list of package names
 */
public static Filter getPackageFilter(Set<String> packageNames, boolean matchSubpackages) {
    return new TargetPackageFilter(packageNames, matchSubpackages);
}
 
Example #4
Source File: Dependencies.java    From openjdk-jdk9 with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Get the filter used to determine the dependencies included when searching
 * the transitive closure of all the dependencies.
 * Unless overridden, the default filter accepts all dependencies.
 * @return the filter
 */
public Filter getFilter() {
    if (filter == null)
        filter = getDefaultFilter();
    return filter;
}
 
Example #5
Source File: Dependencies.java    From openjdk-jdk9 with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Set the filter used to determine the dependencies included when searching
 * the transitive closure of all the dependencies.
 * @param f the filter
 */
public void setFilter(Filter f) {
    filter = Objects.requireNonNull(f);
}
 
Example #6
Source File: Dependencies.java    From hottub with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Get the default filter used to determine included when searching
 * the transitive closure of all the dependencies.
 * Unless overridden, the default filter accepts all dependencies.
 * @return the default filter.
 */
public static Filter getDefaultFilter() {
    return DefaultFilter.instance();
}
 
Example #7
Source File: Dependencies.java    From hottub with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Get a filter which uses a regular expression on the target's class name
 * to determine if a dependency is of interest.
 * @param pattern the pattern used to match the target's class name
 * @return a filter for matching the target class name with a regular expression
 */
public static Filter getRegexFilter(Pattern pattern) {
    return new TargetRegexFilter(pattern);
}
 
Example #8
Source File: Dependencies.java    From hottub with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Get a filter which checks the package of a target's class name
 * to determine if a dependency is of interest. The filter checks if the
 * package of the target's class matches any of a set of given package
 * names. The match may optionally match subpackages of the given names as well.
 * @param packageNames the package names used to match the target's class name
 * @param matchSubpackages whether or not to match subpackages as well
 * @return a filter for checking the target package name against a list of package names
 */
public static Filter getPackageFilter(Set<String> packageNames, boolean matchSubpackages) {
    return new TargetPackageFilter(packageNames, matchSubpackages);
}
 
Example #9
Source File: Dependencies.java    From hottub with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Get the filter used to determine the dependencies included when searching
 * the transitive closure of all the dependencies.
 * Unless overridden, the default filter accepts all dependencies.
 * @return the filter
 */
public Filter getFilter() {
    if (filter == null)
        filter = getDefaultFilter();
    return filter;
}
 
Example #10
Source File: Dependencies.java    From hottub with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Set the filter used to determine the dependencies included when searching
 * the transitive closure of all the dependencies.
 * @param f the filter
 */
public void setFilter(Filter f) {
    f.getClass(); // null check
    filter = f;
}
 
Example #11
Source File: Dependencies.java    From openjdk-jdk9 with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Get the default filter used to determine included when searching
 * the transitive closure of all the dependencies.
 * Unless overridden, the default filter accepts all dependencies.
 * @return the default filter.
 */
public static Filter getDefaultFilter() {
    return DefaultFilter.instance();
}
 
Example #12
Source File: Dependencies.java    From openjdk-8-source with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Get a filter which uses a regular expression on the target's class name
 * to determine if a dependency is of interest.
 * @param pattern the pattern used to match the target's class name
 * @return a filter for matching the target class name with a regular expression
 */
public static Filter getRegexFilter(Pattern pattern) {
    return new TargetRegexFilter(pattern);
}
 
Example #13
Source File: Dependencies.java    From openjdk-8-source with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Get a filter which checks the package of a target's class name
 * to determine if a dependency is of interest. The filter checks if the
 * package of the target's class matches any of a set of given package
 * names. The match may optionally match subpackages of the given names as well.
 * @param packageNames the package names used to match the target's class name
 * @param matchSubpackages whether or not to match subpackages as well
 * @return a filter for checking the target package name against a list of package names
 */
public static Filter getPackageFilter(Set<String> packageNames, boolean matchSubpackages) {
    return new TargetPackageFilter(packageNames, matchSubpackages);
}
 
Example #14
Source File: Dependencies.java    From openjdk-8-source with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Get the filter used to determine the dependencies included when searching
 * the transitive closure of all the dependencies.
 * Unless overridden, the default filter accepts all dependencies.
 * @return the filter
 */
public Filter getFilter() {
    if (filter == null)
        filter = getDefaultFilter();
    return filter;
}
 
Example #15
Source File: Dependencies.java    From openjdk-8-source with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Set the filter used to determine the dependencies included when searching
 * the transitive closure of all the dependencies.
 * @param f the filter
 */
public void setFilter(Filter f) {
    f.getClass(); // null check
    filter = f;
}
 
Example #16
Source File: Dependencies.java    From openjdk-8 with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Get the default filter used to determine included when searching
 * the transitive closure of all the dependencies.
 * Unless overridden, the default filter accepts all dependencies.
 * @return the default filter.
 */
public static Filter getDefaultFilter() {
    return DefaultFilter.instance();
}
 
Example #17
Source File: Dependencies.java    From openjdk-8 with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Get a filter which uses a regular expression on the target's class name
 * to determine if a dependency is of interest.
 * @param pattern the pattern used to match the target's class name
 * @return a filter for matching the target class name with a regular expression
 */
public static Filter getRegexFilter(Pattern pattern) {
    return new TargetRegexFilter(pattern);
}
 
Example #18
Source File: Dependencies.java    From openjdk-8 with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Get a filter which checks the package of a target's class name
 * to determine if a dependency is of interest. The filter checks if the
 * package of the target's class matches any of a set of given package
 * names. The match may optionally match subpackages of the given names as well.
 * @param packageNames the package names used to match the target's class name
 * @param matchSubpackages whether or not to match subpackages as well
 * @return a filter for checking the target package name against a list of package names
 */
public static Filter getPackageFilter(Set<String> packageNames, boolean matchSubpackages) {
    return new TargetPackageFilter(packageNames, matchSubpackages);
}
 
Example #19
Source File: Dependencies.java    From openjdk-8 with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Get the filter used to determine the dependencies included when searching
 * the transitive closure of all the dependencies.
 * Unless overridden, the default filter accepts all dependencies.
 * @return the filter
 */
public Filter getFilter() {
    if (filter == null)
        filter = getDefaultFilter();
    return filter;
}
 
Example #20
Source File: Dependencies.java    From openjdk-8 with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Set the filter used to determine the dependencies included when searching
 * the transitive closure of all the dependencies.
 * @param f the filter
 */
public void setFilter(Filter f) {
    f.getClass(); // null check
    filter = f;
}
 
Example #21
Source File: Dependencies.java    From openjdk-jdk8u with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Get the default filter used to determine included when searching
 * the transitive closure of all the dependencies.
 * Unless overridden, the default filter accepts all dependencies.
 * @return the default filter.
 */
public static Filter getDefaultFilter() {
    return DefaultFilter.instance();
}
 
Example #22
Source File: Dependencies.java    From TencentKona-8 with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Get a filter which uses a regular expression on the target's class name
 * to determine if a dependency is of interest.
 * @param pattern the pattern used to match the target's class name
 * @return a filter for matching the target class name with a regular expression
 */
public static Filter getRegexFilter(Pattern pattern) {
    return new TargetRegexFilter(pattern);
}
 
Example #23
Source File: Dependencies.java    From TencentKona-8 with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Get a filter which checks the package of a target's class name
 * to determine if a dependency is of interest. The filter checks if the
 * package of the target's class matches any of a set of given package
 * names. The match may optionally match subpackages of the given names as well.
 * @param packageNames the package names used to match the target's class name
 * @param matchSubpackages whether or not to match subpackages as well
 * @return a filter for checking the target package name against a list of package names
 */
public static Filter getPackageFilter(Set<String> packageNames, boolean matchSubpackages) {
    return new TargetPackageFilter(packageNames, matchSubpackages);
}
 
Example #24
Source File: Dependencies.java    From TencentKona-8 with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Get the filter used to determine the dependencies included when searching
 * the transitive closure of all the dependencies.
 * Unless overridden, the default filter accepts all dependencies.
 * @return the filter
 */
public Filter getFilter() {
    if (filter == null)
        filter = getDefaultFilter();
    return filter;
}
 
Example #25
Source File: Dependencies.java    From TencentKona-8 with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Set the filter used to determine the dependencies included when searching
 * the transitive closure of all the dependencies.
 * @param f the filter
 */
public void setFilter(Filter f) {
    f.getClass(); // null check
    filter = f;
}
 
Example #26
Source File: Dependencies.java    From jdk8u60 with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Get the default filter used to determine included when searching
 * the transitive closure of all the dependencies.
 * Unless overridden, the default filter accepts all dependencies.
 * @return the default filter.
 */
public static Filter getDefaultFilter() {
    return DefaultFilter.instance();
}
 
Example #27
Source File: Dependencies.java    From jdk8u60 with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Get a filter which uses a regular expression on the target's class name
 * to determine if a dependency is of interest.
 * @param pattern the pattern used to match the target's class name
 * @return a filter for matching the target class name with a regular expression
 */
public static Filter getRegexFilter(Pattern pattern) {
    return new TargetRegexFilter(pattern);
}
 
Example #28
Source File: Dependencies.java    From jdk8u60 with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Get a filter which checks the package of a target's class name
 * to determine if a dependency is of interest. The filter checks if the
 * package of the target's class matches any of a set of given package
 * names. The match may optionally match subpackages of the given names as well.
 * @param packageNames the package names used to match the target's class name
 * @param matchSubpackages whether or not to match subpackages as well
 * @return a filter for checking the target package name against a list of package names
 */
public static Filter getPackageFilter(Set<String> packageNames, boolean matchSubpackages) {
    return new TargetPackageFilter(packageNames, matchSubpackages);
}
 
Example #29
Source File: Dependencies.java    From jdk8u60 with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Get the filter used to determine the dependencies included when searching
 * the transitive closure of all the dependencies.
 * Unless overridden, the default filter accepts all dependencies.
 * @return the filter
 */
public Filter getFilter() {
    if (filter == null)
        filter = getDefaultFilter();
    return filter;
}
 
Example #30
Source File: Dependencies.java    From jdk8u60 with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Set the filter used to determine the dependencies included when searching
 * the transitive closure of all the dependencies.
 * @param f the filter
 */
public void setFilter(Filter f) {
    f.getClass(); // null check
    filter = f;
}