public class ProfileSupport extends Object
Modifier and Type | Class and Description |
---|---|
static class |
ProfileSupport.Validation
Kind of profile validation.
|
static class |
ProfileSupport.Violation
Violation of profile.
|
static interface |
ProfileSupport.ViolationCollector
Asynchronous callback for collecting the profile
ProfileSupport.Violation s. |
static interface |
ProfileSupport.ViolationCollectorFactory
Factory for
ProfileSupport.ViolationCollector . |
Modifier and Type | Method and Description |
---|---|
static Collection<ProfileSupport.Violation> |
findProfileViolations(SourceLevelQuery.Profile profileToCheck,
Iterable<URL> bootClassPath,
Iterable<URL> compileClassPath,
Iterable<URL> sourcePath,
Set<ProfileSupport.Validation> check)
Synchronously finds the
SourceLevelQuery.Profile violations in given source and classpath roots. |
static void |
findProfileViolations(SourceLevelQuery.Profile profileToCheck,
Iterable<URL> bootClassPath,
Iterable<URL> compileClassPath,
Iterable<URL> sourcePath,
Set<ProfileSupport.Validation> check,
ProfileSupport.ViolationCollectorFactory collectorFactory)
Asynchronously finds the
SourceLevelQuery.Profile violations in given source and classpath roots. |
static void |
findProfileViolations(SourceLevelQuery.Profile profileToCheck,
Iterable<URL> bootClassPath,
Iterable<URL> compileClassPath,
Iterable<URL> sourcePath,
Set<ProfileSupport.Validation> check,
ProfileSupport.ViolationCollectorFactory collectorFactory,
Executor executor)
Asynchronously finds the
SourceLevelQuery.Profile violations in given source and classpath roots. |
public static void findProfileViolations(@NonNull SourceLevelQuery.Profile profileToCheck, @NonNull Iterable<URL> bootClassPath, @NonNull Iterable<URL> compileClassPath, @NonNull Iterable<URL> sourcePath, @NonNull Set<ProfileSupport.Validation> check, @NonNull ProfileSupport.ViolationCollectorFactory collectorFactory)
SourceLevelQuery.Profile
violations in given source and classpath roots.profileToCheck
- the SourceLevelQuery.Profile
to be verifiedbootClassPath
- the boot classpath of JDK 8 platform to get the profile info fromcompileClassPath
- the compile classpath to be validatedsourcePath
- the source path to be validatedcheck
- types of validationcollectorFactory
- the ProfileSupport.Violation
s collectorIllegalArgumentException
- if the bootClassPath is not a valid JDK 8 boot classpath@NonNull public static Collection<ProfileSupport.Violation> findProfileViolations(@NonNull SourceLevelQuery.Profile profileToCheck, @NonNull Iterable<URL> bootClassPath, @NonNull Iterable<URL> compileClassPath, @NonNull Iterable<URL> sourcePath, @NonNull Set<ProfileSupport.Validation> check)
SourceLevelQuery.Profile
violations in given source and classpath roots.profileToCheck
- the SourceLevelQuery.Profile
to be verifiedbootClassPath
- the boot classpath of JDK 8 platform to get the profile info fromcompileClassPath
- the compile classpath to be validatedsourcePath
- the source path to be validatedcheck
- types of validationCollection
of found ProfileSupport.Violation
sIllegalArgumentException
- if the bootClassPath is not a valid JDK 8 boot classpathpublic static void findProfileViolations(@NonNull SourceLevelQuery.Profile profileToCheck, @NonNull Iterable<URL> bootClassPath, @NonNull Iterable<URL> compileClassPath, @NonNull Iterable<URL> sourcePath, @NonNull Set<ProfileSupport.Validation> check, @NonNull ProfileSupport.ViolationCollectorFactory collectorFactory, @NonNull Executor executor)
SourceLevelQuery.Profile
violations in given source and classpath roots.profileToCheck
- the SourceLevelQuery.Profile
to be verifiedbootClassPath
- the boot classpath of JDK 8 platform to get the profile info fromcompileClassPath
- the compile classpath to be validatedsourcePath
- the source path to be validatedcheck
- types of validationcollectorFactory
- the ProfileSupport.Violation
s collectorexecutor
- to use for the asynchronous operation, may have higher throughputIllegalArgumentException
- if the bootClassPath is not a valid JDK 8 boot classpath