id
int32
0
165k
repo
stringlengths
7
58
path
stringlengths
12
218
func_name
stringlengths
3
140
original_string
stringlengths
73
34.1k
language
stringclasses
1 value
code
stringlengths
73
34.1k
code_tokens
list
docstring
stringlengths
3
16k
docstring_tokens
list
sha
stringlengths
40
40
url
stringlengths
105
339
62,800
pwittchen/ReactiveNetwork
library/src/main/java/com/github/pwittchen/reactivenetwork/library/rx2/ConnectivityPredicate.java
ConnectivityPredicate.appendUnknownNetworkTypeToTypes
protected static int[] appendUnknownNetworkTypeToTypes(int[] types) { int i = 0; final int[] extendedTypes = new int[types.length + 1]; for (int type : types) { extendedTypes[i] = type; i++; } extendedTypes[i] = Connectivity.UNKNOWN_TYPE; return extendedTypes; }
java
protected static int[] appendUnknownNetworkTypeToTypes(int[] types) { int i = 0; final int[] extendedTypes = new int[types.length + 1]; for (int type : types) { extendedTypes[i] = type; i++; } extendedTypes[i] = Connectivity.UNKNOWN_TYPE; return extendedTypes; }
[ "protected", "static", "int", "[", "]", "appendUnknownNetworkTypeToTypes", "(", "int", "[", "]", "types", ")", "{", "int", "i", "=", "0", ";", "final", "int", "[", "]", "extendedTypes", "=", "new", "int", "[", "types", ".", "length", "+", "1", "]", "...
Returns network types from the input with additional unknown type, what helps during connections filtering when device is being disconnected from a specific network @param types of the network as an array of ints @return types of the network with unknown type as an array of ints
[ "Returns", "network", "types", "from", "the", "input", "with", "additional", "unknown", "type", "what", "helps", "during", "connections", "filtering", "when", "device", "is", "being", "disconnected", "from", "a", "specific", "network" ]
cfeb3b79a1e44d106581af5e6709ff206e60c369
https://github.com/pwittchen/ReactiveNetwork/blob/cfeb3b79a1e44d106581af5e6709ff206e60c369/library/src/main/java/com/github/pwittchen/reactivenetwork/library/rx2/ConnectivityPredicate.java#L79-L88
62,801
classgraph/classgraph
src/main/java/nonapi/io/github/classgraph/json/JSONParser.java
JSONParser.getAndParseHexChar
private int getAndParseHexChar() throws ParseException { final char hexChar = getc(); if (hexChar >= '0' && hexChar <= '9') { return hexChar - '0'; } else if (hexChar >= 'a' && hexChar <= 'f') { return hexChar - 'a' + 10; } else if (hexChar >= 'A' && hexChar <= 'F...
java
private int getAndParseHexChar() throws ParseException { final char hexChar = getc(); if (hexChar >= '0' && hexChar <= '9') { return hexChar - '0'; } else if (hexChar >= 'a' && hexChar <= 'f') { return hexChar - 'a' + 10; } else if (hexChar >= 'A' && hexChar <= 'F...
[ "private", "int", "getAndParseHexChar", "(", ")", "throws", "ParseException", "{", "final", "char", "hexChar", "=", "getc", "(", ")", ";", "if", "(", "hexChar", ">=", "'", "'", "&&", "hexChar", "<=", "'", "'", ")", "{", "return", "hexChar", "-", "'", ...
Get and parse a hexadecimal digit character. @return the hex char @throws ParseException if the character was not hexadecimal
[ "Get", "and", "parse", "a", "hexadecimal", "digit", "character", "." ]
c8c8b2ca1eb76339f69193fdac33d735c864215c
https://github.com/classgraph/classgraph/blob/c8c8b2ca1eb76339f69193fdac33d735c864215c/src/main/java/nonapi/io/github/classgraph/json/JSONParser.java#L68-L79
62,802
classgraph/classgraph
src/main/java/nonapi/io/github/classgraph/json/JSONParser.java
JSONParser.parseNumber
private Number parseNumber() throws ParseException { final int startIdx = getPosition(); if (peekMatches("Infinity")) { advance(8); return Double.POSITIVE_INFINITY; } else if (peekMatches("-Infinity")) { advance(9); return Double.NEGATIVE_INFINITY;...
java
private Number parseNumber() throws ParseException { final int startIdx = getPosition(); if (peekMatches("Infinity")) { advance(8); return Double.POSITIVE_INFINITY; } else if (peekMatches("-Infinity")) { advance(9); return Double.NEGATIVE_INFINITY;...
[ "private", "Number", "parseNumber", "(", ")", "throws", "ParseException", "{", "final", "int", "startIdx", "=", "getPosition", "(", ")", ";", "if", "(", "peekMatches", "(", "\"Infinity\"", ")", ")", "{", "advance", "(", "8", ")", ";", "return", "Double", ...
Parses and returns Integer, Long or Double type. <pre> Number ← Minus? IntegralPart FractionalPart? ExponentPart? Minus ← "-" IntegralPart ← "0" / [1-9] [0-9]* FractionalPart ← "." [0-9]+ ExponentPart ← ( "e" / "E" ) ( "+" / "-" )? [0-9]+ </pre> @return the number @throws ParseException if parsing fails
[ "Parses", "and", "returns", "Integer", "Long", "or", "Double", "type", "." ]
c8c8b2ca1eb76339f69193fdac33d735c864215c
https://github.com/classgraph/classgraph/blob/c8c8b2ca1eb76339f69193fdac33d735c864215c/src/main/java/nonapi/io/github/classgraph/json/JSONParser.java#L211-L286
62,803
classgraph/classgraph
src/main/java/nonapi/io/github/classgraph/json/JSONParser.java
JSONParser.parseJSONObject
private JSONObject parseJSONObject() throws ParseException { expect('{'); skipWhitespace(); if (peek() == '}') { // Empty object next(); return new JSONObject(Collections.<Entry<String, Object>> emptyList()); } final List<Entry<String, Object>...
java
private JSONObject parseJSONObject() throws ParseException { expect('{'); skipWhitespace(); if (peek() == '}') { // Empty object next(); return new JSONObject(Collections.<Entry<String, Object>> emptyList()); } final List<Entry<String, Object>...
[ "private", "JSONObject", "parseJSONObject", "(", ")", "throws", "ParseException", "{", "expect", "(", "'", "'", ")", ";", "skipWhitespace", "(", ")", ";", "if", "(", "peek", "(", ")", "==", "'", "'", ")", "{", "// Empty object", "next", "(", ")", ";", ...
Parse a JSON Object. <pre> Object ← "{" ( String ":" JSON ( "," String ":" JSON )* / S? ) "}" </pre> @return the JSON object @throws ParseException if parsing fails
[ "Parse", "a", "JSON", "Object", "." ]
c8c8b2ca1eb76339f69193fdac33d735c864215c
https://github.com/classgraph/classgraph/blob/c8c8b2ca1eb76339f69193fdac33d735c864215c/src/main/java/nonapi/io/github/classgraph/json/JSONParser.java#L342-L382
62,804
classgraph/classgraph
src/main/java/io/github/classgraph/ObjectTypedValueWrapper.java
ObjectTypedValueWrapper.instantiateOrGet
Object instantiateOrGet(final ClassInfo annotationClassInfo, final String paramName) { final boolean instantiate = annotationClassInfo != null; if (enumValue != null) { return instantiate ? enumValue.loadClassAndReturnEnumValue() : enumValue; } else if (classRef != null) { ...
java
Object instantiateOrGet(final ClassInfo annotationClassInfo, final String paramName) { final boolean instantiate = annotationClassInfo != null; if (enumValue != null) { return instantiate ? enumValue.loadClassAndReturnEnumValue() : enumValue; } else if (classRef != null) { ...
[ "Object", "instantiateOrGet", "(", "final", "ClassInfo", "annotationClassInfo", ",", "final", "String", "paramName", ")", "{", "final", "boolean", "instantiate", "=", "annotationClassInfo", "!=", "null", ";", "if", "(", "enumValue", "!=", "null", ")", "{", "retu...
Instantiate or get the wrapped value. @param annotationClassInfo if non-null, instantiate this object as a parameter value of this annotation class. @param paramName if non-null, instantiate this object as a value of this named parameter. @return The value wrapped by this wrapper class.
[ "Instantiate", "or", "get", "the", "wrapped", "value", "." ]
c8c8b2ca1eb76339f69193fdac33d735c864215c
https://github.com/classgraph/classgraph/blob/c8c8b2ca1eb76339f69193fdac33d735c864215c/src/main/java/io/github/classgraph/ObjectTypedValueWrapper.java#L196-L262
62,805
classgraph/classgraph
src/main/java/io/github/classgraph/ObjectTypedValueWrapper.java
ObjectTypedValueWrapper.getArrayValueClassOrName
private Object getArrayValueClassOrName(final ClassInfo annotationClassInfo, final String paramName, final boolean getClass) { // Find the method in the annotation class with the same name as the annotation parameter. final MethodInfoList annotationMethodList = annotationClassInfo.methodInfo...
java
private Object getArrayValueClassOrName(final ClassInfo annotationClassInfo, final String paramName, final boolean getClass) { // Find the method in the annotation class with the same name as the annotation parameter. final MethodInfoList annotationMethodList = annotationClassInfo.methodInfo...
[ "private", "Object", "getArrayValueClassOrName", "(", "final", "ClassInfo", "annotationClassInfo", ",", "final", "String", "paramName", ",", "final", "boolean", "getClass", ")", "{", "// Find the method in the annotation class with the same name as the annotation parameter.", "fi...
Get the element type of an array element. @param annotationClassInfo annotation class @param paramName the parameter name @param getClass If true, return a {@code Class<?>} reference, otherwise return the class name. @return the array value type as a {@code Class<?>} reference if getClass is true, otherwise the class ...
[ "Get", "the", "element", "type", "of", "an", "array", "element", "." ]
c8c8b2ca1eb76339f69193fdac33d735c864215c
https://github.com/classgraph/classgraph/blob/c8c8b2ca1eb76339f69193fdac33d735c864215c/src/main/java/io/github/classgraph/ObjectTypedValueWrapper.java#L287-L343
62,806
classgraph/classgraph
src/main/java/io/github/classgraph/ClassGraph.java
ClassGraph.enableAllInfo
public ClassGraph enableAllInfo() { enableClassInfo(); enableFieldInfo(); enableMethodInfo(); enableAnnotationInfo(); enableStaticFinalFieldConstantInitializerValues(); ignoreClassVisibility(); ignoreFieldVisibility(); ignoreMethodVisibility(); ret...
java
public ClassGraph enableAllInfo() { enableClassInfo(); enableFieldInfo(); enableMethodInfo(); enableAnnotationInfo(); enableStaticFinalFieldConstantInitializerValues(); ignoreClassVisibility(); ignoreFieldVisibility(); ignoreMethodVisibility(); ret...
[ "public", "ClassGraph", "enableAllInfo", "(", ")", "{", "enableClassInfo", "(", ")", ";", "enableFieldInfo", "(", ")", ";", "enableMethodInfo", "(", ")", ";", "enableAnnotationInfo", "(", ")", ";", "enableStaticFinalFieldConstantInitializerValues", "(", ")", ";", ...
Enables the scanning of all classes, fields, methods, annotations, and static final field constant initializer values, and ignores all visibility modifiers, so that both public and non-public classes, fields and methods are all scanned. <p> Calls {@link #enableClassInfo()}, {@link #enableFieldInfo()}, {@link #enableMe...
[ "Enables", "the", "scanning", "of", "all", "classes", "fields", "methods", "annotations", "and", "static", "final", "field", "constant", "initializer", "values", "and", "ignores", "all", "visibility", "modifiers", "so", "that", "both", "public", "and", "non", "-...
c8c8b2ca1eb76339f69193fdac33d735c864215c
https://github.com/classgraph/classgraph/blob/c8c8b2ca1eb76339f69193fdac33d735c864215c/src/main/java/io/github/classgraph/ClassGraph.java#L126-L136
62,807
classgraph/classgraph
src/main/java/io/github/classgraph/ClassGraph.java
ClassGraph.overrideClasspath
public ClassGraph overrideClasspath(final Iterable<?> overrideClasspathElements) { final String overrideClasspath = JarUtils.pathElementsToPathStr(overrideClasspathElements); if (overrideClasspath.isEmpty()) { throw new IllegalArgumentException("Can't override classpath with an empty path");...
java
public ClassGraph overrideClasspath(final Iterable<?> overrideClasspathElements) { final String overrideClasspath = JarUtils.pathElementsToPathStr(overrideClasspathElements); if (overrideClasspath.isEmpty()) { throw new IllegalArgumentException("Can't override classpath with an empty path");...
[ "public", "ClassGraph", "overrideClasspath", "(", "final", "Iterable", "<", "?", ">", "overrideClasspathElements", ")", "{", "final", "String", "overrideClasspath", "=", "JarUtils", ".", "pathElementsToPathStr", "(", "overrideClasspathElements", ")", ";", "if", "(", ...
Override the automatically-detected classpath with a custom path. Causes system ClassLoaders and the java.class.path system property to be ignored. Also causes modules not to be scanned. <p> Works for Iterables of any type whose toString() method resolves to a classpath element string, e.g. String, File or Path. @par...
[ "Override", "the", "automatically", "-", "detected", "classpath", "with", "a", "custom", "path", ".", "Causes", "system", "ClassLoaders", "and", "the", "java", ".", "class", ".", "path", "system", "property", "to", "be", "ignored", ".", "Also", "causes", "mo...
c8c8b2ca1eb76339f69193fdac33d735c864215c
https://github.com/classgraph/classgraph/blob/c8c8b2ca1eb76339f69193fdac33d735c864215c/src/main/java/io/github/classgraph/ClassGraph.java#L388-L395
62,808
classgraph/classgraph
src/main/java/io/github/classgraph/ClassGraph.java
ClassGraph.whitelistPackages
public ClassGraph whitelistPackages(final String... packageNames) { enableClassInfo(); for (final String packageName : packageNames) { final String packageNameNormalized = WhiteBlackList.normalizePackageOrClassName(packageName); if (packageNameNormalized.startsWith("!") || packag...
java
public ClassGraph whitelistPackages(final String... packageNames) { enableClassInfo(); for (final String packageName : packageNames) { final String packageNameNormalized = WhiteBlackList.normalizePackageOrClassName(packageName); if (packageNameNormalized.startsWith("!") || packag...
[ "public", "ClassGraph", "whitelistPackages", "(", "final", "String", "...", "packageNames", ")", "{", "enableClassInfo", "(", ")", ";", "for", "(", "final", "String", "packageName", ":", "packageNames", ")", "{", "final", "String", "packageNameNormalized", "=", ...
Scan one or more specific packages and their sub-packages. <p> N.B. Automatically calls {@link #enableClassInfo()} -- call {@link #whitelistPaths(String...)} instead if you only need to scan resources. @param packageNames The fully-qualified names of packages to scan (using '.' as a separator). May include a glob wil...
[ "Scan", "one", "or", "more", "specific", "packages", "and", "their", "sub", "-", "packages", "." ]
c8c8b2ca1eb76339f69193fdac33d735c864215c
https://github.com/classgraph/classgraph/blob/c8c8b2ca1eb76339f69193fdac33d735c864215c/src/main/java/io/github/classgraph/ClassGraph.java#L558-L585
62,809
classgraph/classgraph
src/main/java/io/github/classgraph/ClassGraph.java
ClassGraph.whitelistPaths
public ClassGraph whitelistPaths(final String... paths) { for (final String path : paths) { final String pathNormalized = WhiteBlackList.normalizePath(path); // Whitelist path final String packageName = WhiteBlackList.pathToPackageName(pathNormalized); scanSpec.pa...
java
public ClassGraph whitelistPaths(final String... paths) { for (final String path : paths) { final String pathNormalized = WhiteBlackList.normalizePath(path); // Whitelist path final String packageName = WhiteBlackList.pathToPackageName(pathNormalized); scanSpec.pa...
[ "public", "ClassGraph", "whitelistPaths", "(", "final", "String", "...", "paths", ")", "{", "for", "(", "final", "String", "path", ":", "paths", ")", "{", "final", "String", "pathNormalized", "=", "WhiteBlackList", ".", "normalizePath", "(", "path", ")", ";"...
Scan one or more specific paths, and their sub-directories or nested paths. @param paths The paths to scan, relative to the package root of the classpath element (with '/' as a separator). May include a glob wildcard ({@code '*'}). @return this (for method chaining).
[ "Scan", "one", "or", "more", "specific", "paths", "and", "their", "sub", "-", "directories", "or", "nested", "paths", "." ]
c8c8b2ca1eb76339f69193fdac33d735c864215c
https://github.com/classgraph/classgraph/blob/c8c8b2ca1eb76339f69193fdac33d735c864215c/src/main/java/io/github/classgraph/ClassGraph.java#L595-L617
62,810
classgraph/classgraph
src/main/java/io/github/classgraph/ClassGraph.java
ClassGraph.whitelistPackagesNonRecursive
public ClassGraph whitelistPackagesNonRecursive(final String... packageNames) { enableClassInfo(); for (final String packageName : packageNames) { final String packageNameNormalized = WhiteBlackList.normalizePackageOrClassName(packageName); if (packageNameNormalized.contains("*")...
java
public ClassGraph whitelistPackagesNonRecursive(final String... packageNames) { enableClassInfo(); for (final String packageName : packageNames) { final String packageNameNormalized = WhiteBlackList.normalizePackageOrClassName(packageName); if (packageNameNormalized.contains("*")...
[ "public", "ClassGraph", "whitelistPackagesNonRecursive", "(", "final", "String", "...", "packageNames", ")", "{", "enableClassInfo", "(", ")", ";", "for", "(", "final", "String", "packageName", ":", "packageNames", ")", "{", "final", "String", "packageNameNormalized...
Scan one or more specific packages, without recursively scanning sub-packages unless they are themselves whitelisted. <p> N.B. Automatically calls {@link #enableClassInfo()} -- call {@link #whitelistPathsNonRecursive(String...)} instead if you only need to scan resources. <p> This may be particularly useful for scann...
[ "Scan", "one", "or", "more", "specific", "packages", "without", "recursively", "scanning", "sub", "-", "packages", "unless", "they", "are", "themselves", "whitelisted", "." ]
c8c8b2ca1eb76339f69193fdac33d735c864215c
https://github.com/classgraph/classgraph/blob/c8c8b2ca1eb76339f69193fdac33d735c864215c/src/main/java/io/github/classgraph/ClassGraph.java#L637-L653
62,811
classgraph/classgraph
src/main/java/io/github/classgraph/ClassGraph.java
ClassGraph.whitelistPathsNonRecursive
public ClassGraph whitelistPathsNonRecursive(final String... paths) { for (final String path : paths) { if (path.contains("*")) { throw new IllegalArgumentException("Cannot use a glob wildcard here: " + path); } final String pathNormalized = WhiteBlackList.nor...
java
public ClassGraph whitelistPathsNonRecursive(final String... paths) { for (final String path : paths) { if (path.contains("*")) { throw new IllegalArgumentException("Cannot use a glob wildcard here: " + path); } final String pathNormalized = WhiteBlackList.nor...
[ "public", "ClassGraph", "whitelistPathsNonRecursive", "(", "final", "String", "...", "paths", ")", "{", "for", "(", "final", "String", "path", ":", "paths", ")", "{", "if", "(", "path", ".", "contains", "(", "\"*\"", ")", ")", "{", "throw", "new", "Illeg...
Scan one or more specific paths, without recursively scanning sub-directories or nested paths unless they are themselves whitelisted. <p> This may be particularly useful for scanning the package root ("") without recursively scanning everything in the jar, dir or module. @param paths The paths to scan, relative to th...
[ "Scan", "one", "or", "more", "specific", "paths", "without", "recursively", "scanning", "sub", "-", "directories", "or", "nested", "paths", "unless", "they", "are", "themselves", "whitelisted", "." ]
c8c8b2ca1eb76339f69193fdac33d735c864215c
https://github.com/classgraph/classgraph/blob/c8c8b2ca1eb76339f69193fdac33d735c864215c/src/main/java/io/github/classgraph/ClassGraph.java#L668-L682
62,812
classgraph/classgraph
src/main/java/io/github/classgraph/ClassGraph.java
ClassGraph.blacklistPackages
public ClassGraph blacklistPackages(final String... packageNames) { enableClassInfo(); for (final String packageName : packageNames) { final String packageNameNormalized = WhiteBlackList.normalizePackageOrClassName(packageName); if (packageNameNormalized.isEmpty()) { ...
java
public ClassGraph blacklistPackages(final String... packageNames) { enableClassInfo(); for (final String packageName : packageNames) { final String packageNameNormalized = WhiteBlackList.normalizePackageOrClassName(packageName); if (packageNameNormalized.isEmpty()) { ...
[ "public", "ClassGraph", "blacklistPackages", "(", "final", "String", "...", "packageNames", ")", "{", "enableClassInfo", "(", ")", ";", "for", "(", "final", "String", "packageName", ":", "packageNames", ")", "{", "final", "String", "packageNameNormalized", "=", ...
Prevent the scanning of one or more specific packages and their sub-packages. <p> N.B. Automatically calls {@link #enableClassInfo()} -- call {@link #blacklistPaths(String...)} instead if you only need to scan resources. @param packageNames The fully-qualified names of packages to blacklist (with '.' as a separator)....
[ "Prevent", "the", "scanning", "of", "one", "or", "more", "specific", "packages", "and", "their", "sub", "-", "packages", "." ]
c8c8b2ca1eb76339f69193fdac33d735c864215c
https://github.com/classgraph/classgraph/blob/c8c8b2ca1eb76339f69193fdac33d735c864215c/src/main/java/io/github/classgraph/ClassGraph.java#L696-L715
62,813
classgraph/classgraph
src/main/java/io/github/classgraph/ClassGraph.java
ClassGraph.whitelistClasses
public ClassGraph whitelistClasses(final String... classNames) { enableClassInfo(); for (final String className : classNames) { if (className.contains("*")) { throw new IllegalArgumentException("Cannot use a glob wildcard here: " + className); } final ...
java
public ClassGraph whitelistClasses(final String... classNames) { enableClassInfo(); for (final String className : classNames) { if (className.contains("*")) { throw new IllegalArgumentException("Cannot use a glob wildcard here: " + className); } final ...
[ "public", "ClassGraph", "whitelistClasses", "(", "final", "String", "...", "classNames", ")", "{", "enableClassInfo", "(", ")", ";", "for", "(", "final", "String", "className", ":", "classNames", ")", "{", "if", "(", "className", ".", "contains", "(", "\"*\"...
Scan one or more specific classes, without scanning other classes in the same package unless the package is itself whitelisted. <p> N.B. Automatically calls {@link #enableClassInfo()}. @param classNames The fully-qualified names of classes to scan (using '.' as a separator). May not include a glob wildcard ({@code '...
[ "Scan", "one", "or", "more", "specific", "classes", "without", "scanning", "other", "classes", "in", "the", "same", "package", "unless", "the", "package", "is", "itself", "whitelisted", "." ]
c8c8b2ca1eb76339f69193fdac33d735c864215c
https://github.com/classgraph/classgraph/blob/c8c8b2ca1eb76339f69193fdac33d735c864215c/src/main/java/io/github/classgraph/ClassGraph.java#L757-L776
62,814
classgraph/classgraph
src/main/java/io/github/classgraph/ClassGraph.java
ClassGraph.blacklistClasses
public ClassGraph blacklistClasses(final String... classNames) { enableClassInfo(); for (final String className : classNames) { if (className.contains("*")) { throw new IllegalArgumentException("Cannot use a glob wildcard here: " + className); } final ...
java
public ClassGraph blacklistClasses(final String... classNames) { enableClassInfo(); for (final String className : classNames) { if (className.contains("*")) { throw new IllegalArgumentException("Cannot use a glob wildcard here: " + className); } final ...
[ "public", "ClassGraph", "blacklistClasses", "(", "final", "String", "...", "classNames", ")", "{", "enableClassInfo", "(", ")", ";", "for", "(", "final", "String", "className", ":", "classNames", ")", "{", "if", "(", "className", ".", "contains", "(", "\"*\"...
Specifically blacklist one or more specific classes, preventing them from being scanned even if they are in a whitelisted package. <p> N.B. Automatically calls {@link #enableClassInfo()}. @param classNames The fully-qualified names of classes to blacklist (using '.' as a separator). May not include a glob wildcard ({...
[ "Specifically", "blacklist", "one", "or", "more", "specific", "classes", "preventing", "them", "from", "being", "scanned", "even", "if", "they", "are", "in", "a", "whitelisted", "package", "." ]
c8c8b2ca1eb76339f69193fdac33d735c864215c
https://github.com/classgraph/classgraph/blob/c8c8b2ca1eb76339f69193fdac33d735c864215c/src/main/java/io/github/classgraph/ClassGraph.java#L790-L802
62,815
classgraph/classgraph
src/main/java/io/github/classgraph/ClassGraph.java
ClassGraph.whitelistJars
public ClassGraph whitelistJars(final String... jarLeafNames) { for (final String jarLeafName : jarLeafNames) { final String leafName = JarUtils.leafName(jarLeafName); if (!leafName.equals(jarLeafName)) { throw new IllegalArgumentException("Can only whitelist jars by leaf...
java
public ClassGraph whitelistJars(final String... jarLeafNames) { for (final String jarLeafName : jarLeafNames) { final String leafName = JarUtils.leafName(jarLeafName); if (!leafName.equals(jarLeafName)) { throw new IllegalArgumentException("Can only whitelist jars by leaf...
[ "public", "ClassGraph", "whitelistJars", "(", "final", "String", "...", "jarLeafNames", ")", "{", "for", "(", "final", "String", "jarLeafName", ":", "jarLeafNames", ")", "{", "final", "String", "leafName", "=", "JarUtils", ".", "leafName", "(", "jarLeafName", ...
Whitelist one or more jars. This will cause only the whitelisted jars to be scanned. @param jarLeafNames The leafnames of the jars that should be scanned (e.g. {@code "mylib.jar"}). May contain a wildcard glob ({@code "mylib-*.jar"}). @return this (for method chaining).
[ "Whitelist", "one", "or", "more", "jars", ".", "This", "will", "cause", "only", "the", "whitelisted", "jars", "to", "be", "scanned", "." ]
c8c8b2ca1eb76339f69193fdac33d735c864215c
https://github.com/classgraph/classgraph/blob/c8c8b2ca1eb76339f69193fdac33d735c864215c/src/main/java/io/github/classgraph/ClassGraph.java#L812-L821
62,816
classgraph/classgraph
src/main/java/io/github/classgraph/ClassGraph.java
ClassGraph.blacklistJars
public ClassGraph blacklistJars(final String... jarLeafNames) { for (final String jarLeafName : jarLeafNames) { final String leafName = JarUtils.leafName(jarLeafName); if (!leafName.equals(jarLeafName)) { throw new IllegalArgumentException("Can only blacklist jars by leaf...
java
public ClassGraph blacklistJars(final String... jarLeafNames) { for (final String jarLeafName : jarLeafNames) { final String leafName = JarUtils.leafName(jarLeafName); if (!leafName.equals(jarLeafName)) { throw new IllegalArgumentException("Can only blacklist jars by leaf...
[ "public", "ClassGraph", "blacklistJars", "(", "final", "String", "...", "jarLeafNames", ")", "{", "for", "(", "final", "String", "jarLeafName", ":", "jarLeafNames", ")", "{", "final", "String", "leafName", "=", "JarUtils", ".", "leafName", "(", "jarLeafName", ...
Blacklist one or more jars, preventing them from being scanned. @param jarLeafNames The leafnames of the jars that should be scanned (e.g. {@code "badlib.jar"}). May contain a wildcard glob ({@code "badlib-*.jar"}). @return this (for method chaining).
[ "Blacklist", "one", "or", "more", "jars", "preventing", "them", "from", "being", "scanned", "." ]
c8c8b2ca1eb76339f69193fdac33d735c864215c
https://github.com/classgraph/classgraph/blob/c8c8b2ca1eb76339f69193fdac33d735c864215c/src/main/java/io/github/classgraph/ClassGraph.java#L831-L840
62,817
classgraph/classgraph
src/main/java/io/github/classgraph/ClassGraph.java
ClassGraph.whitelistOrBlacklistLibOrExtJars
private void whitelistOrBlacklistLibOrExtJars(final boolean whitelist, final String... jarLeafNames) { if (jarLeafNames.length == 0) { // If no jar leafnames are given, whitelist or blacklist all lib or ext jars for (final String libOrExtJar : SystemJarFinder.getJreLibOrExtJars()) { ...
java
private void whitelistOrBlacklistLibOrExtJars(final boolean whitelist, final String... jarLeafNames) { if (jarLeafNames.length == 0) { // If no jar leafnames are given, whitelist or blacklist all lib or ext jars for (final String libOrExtJar : SystemJarFinder.getJreLibOrExtJars()) { ...
[ "private", "void", "whitelistOrBlacklistLibOrExtJars", "(", "final", "boolean", "whitelist", ",", "final", "String", "...", "jarLeafNames", ")", "{", "if", "(", "jarLeafNames", ".", "length", "==", "0", ")", "{", "// If no jar leafnames are given, whitelist or blacklist...
Add lib or ext jars to whitelist or blacklist. @param whitelist if true, add to whitelist, otherwise add to blacklist. @param jarLeafNames the jar leaf names to whitelist
[ "Add", "lib", "or", "ext", "jars", "to", "whitelist", "or", "blacklist", "." ]
c8c8b2ca1eb76339f69193fdac33d735c864215c
https://github.com/classgraph/classgraph/blob/c8c8b2ca1eb76339f69193fdac33d735c864215c/src/main/java/io/github/classgraph/ClassGraph.java#L850-L905
62,818
classgraph/classgraph
src/main/java/io/github/classgraph/ClassGraph.java
ClassGraph.whitelistModules
public ClassGraph whitelistModules(final String... moduleNames) { for (final String moduleName : moduleNames) { scanSpec.moduleWhiteBlackList.addToWhitelist(WhiteBlackList.normalizePackageOrClassName(moduleName)); } return this; }
java
public ClassGraph whitelistModules(final String... moduleNames) { for (final String moduleName : moduleNames) { scanSpec.moduleWhiteBlackList.addToWhitelist(WhiteBlackList.normalizePackageOrClassName(moduleName)); } return this; }
[ "public", "ClassGraph", "whitelistModules", "(", "final", "String", "...", "moduleNames", ")", "{", "for", "(", "final", "String", "moduleName", ":", "moduleNames", ")", "{", "scanSpec", ".", "moduleWhiteBlackList", ".", "addToWhitelist", "(", "WhiteBlackList", "....
Whitelist one or more modules to scan. @param moduleNames The names of the modules that should be scanned. May contain a wildcard glob ({@code '*'}). @return this (for method chaining).
[ "Whitelist", "one", "or", "more", "modules", "to", "scan", "." ]
c8c8b2ca1eb76339f69193fdac33d735c864215c
https://github.com/classgraph/classgraph/blob/c8c8b2ca1eb76339f69193fdac33d735c864215c/src/main/java/io/github/classgraph/ClassGraph.java#L943-L948
62,819
classgraph/classgraph
src/main/java/io/github/classgraph/ClassGraph.java
ClassGraph.blacklistModules
public ClassGraph blacklistModules(final String... moduleNames) { for (final String moduleName : moduleNames) { scanSpec.moduleWhiteBlackList.addToBlacklist(WhiteBlackList.normalizePackageOrClassName(moduleName)); } return this; }
java
public ClassGraph blacklistModules(final String... moduleNames) { for (final String moduleName : moduleNames) { scanSpec.moduleWhiteBlackList.addToBlacklist(WhiteBlackList.normalizePackageOrClassName(moduleName)); } return this; }
[ "public", "ClassGraph", "blacklistModules", "(", "final", "String", "...", "moduleNames", ")", "{", "for", "(", "final", "String", "moduleName", ":", "moduleNames", ")", "{", "scanSpec", ".", "moduleWhiteBlackList", ".", "addToBlacklist", "(", "WhiteBlackList", "....
Blacklist one or more modules, preventing them from being scanned. @param moduleNames The names of the modules that should not be scanned. May contain a wildcard glob ({@code '*'}). @return this (for method chaining).
[ "Blacklist", "one", "or", "more", "modules", "preventing", "them", "from", "being", "scanned", "." ]
c8c8b2ca1eb76339f69193fdac33d735c864215c
https://github.com/classgraph/classgraph/blob/c8c8b2ca1eb76339f69193fdac33d735c864215c/src/main/java/io/github/classgraph/ClassGraph.java#L957-L962
62,820
classgraph/classgraph
src/main/java/io/github/classgraph/ClassGraph.java
ClassGraph.whitelistClasspathElementsContainingResourcePath
public ClassGraph whitelistClasspathElementsContainingResourcePath(final String... resourcePaths) { for (final String resourcePath : resourcePaths) { final String resourcePathNormalized = WhiteBlackList.normalizePath(resourcePath); scanSpec.classpathElementResourcePathWhiteBlackList.addT...
java
public ClassGraph whitelistClasspathElementsContainingResourcePath(final String... resourcePaths) { for (final String resourcePath : resourcePaths) { final String resourcePathNormalized = WhiteBlackList.normalizePath(resourcePath); scanSpec.classpathElementResourcePathWhiteBlackList.addT...
[ "public", "ClassGraph", "whitelistClasspathElementsContainingResourcePath", "(", "final", "String", "...", "resourcePaths", ")", "{", "for", "(", "final", "String", "resourcePath", ":", "resourcePaths", ")", "{", "final", "String", "resourcePathNormalized", "=", "WhiteB...
Whitelist classpath elements based on resource paths. Only classpath elements that contain resources with paths matching the whitelist will be scanned. @param resourcePaths The resource paths, any of which must be present in a classpath element for the classpath element to be scanned. May contain a wildcard glob ({@co...
[ "Whitelist", "classpath", "elements", "based", "on", "resource", "paths", ".", "Only", "classpath", "elements", "that", "contain", "resources", "with", "paths", "matching", "the", "whitelist", "will", "be", "scanned", "." ]
c8c8b2ca1eb76339f69193fdac33d735c864215c
https://github.com/classgraph/classgraph/blob/c8c8b2ca1eb76339f69193fdac33d735c864215c/src/main/java/io/github/classgraph/ClassGraph.java#L973-L979
62,821
classgraph/classgraph
src/main/java/io/github/classgraph/ClassGraph.java
ClassGraph.blacklistClasspathElementsContainingResourcePath
public ClassGraph blacklistClasspathElementsContainingResourcePath(final String... resourcePaths) { for (final String resourcePath : resourcePaths) { final String resourcePathNormalized = WhiteBlackList.normalizePath(resourcePath); scanSpec.classpathElementResourcePathWhiteBlackList.addT...
java
public ClassGraph blacklistClasspathElementsContainingResourcePath(final String... resourcePaths) { for (final String resourcePath : resourcePaths) { final String resourcePathNormalized = WhiteBlackList.normalizePath(resourcePath); scanSpec.classpathElementResourcePathWhiteBlackList.addT...
[ "public", "ClassGraph", "blacklistClasspathElementsContainingResourcePath", "(", "final", "String", "...", "resourcePaths", ")", "{", "for", "(", "final", "String", "resourcePath", ":", "resourcePaths", ")", "{", "final", "String", "resourcePathNormalized", "=", "WhiteB...
Blacklist classpath elements based on resource paths. Classpath elements that contain resources with paths matching the blacklist will not be scanned. @param resourcePaths The resource paths which cause a classpath not to be scanned if any are present in a classpath element for the classpath element. May contain a wil...
[ "Blacklist", "classpath", "elements", "based", "on", "resource", "paths", ".", "Classpath", "elements", "that", "contain", "resources", "with", "paths", "matching", "the", "blacklist", "will", "not", "be", "scanned", "." ]
c8c8b2ca1eb76339f69193fdac33d735c864215c
https://github.com/classgraph/classgraph/blob/c8c8b2ca1eb76339f69193fdac33d735c864215c/src/main/java/io/github/classgraph/ClassGraph.java#L990-L996
62,822
classgraph/classgraph
src/main/java/nonapi/io/github/classgraph/recycler/Recycler.java
Recycler.acquire
public T acquire() throws E { final T instance; final T recycledInstance = unusedInstances.poll(); if (recycledInstance == null) { // Allocate a new instance -- may throw an exception of type E final T newInstance = newInstance(); if (newInstance == null) { ...
java
public T acquire() throws E { final T instance; final T recycledInstance = unusedInstances.poll(); if (recycledInstance == null) { // Allocate a new instance -- may throw an exception of type E final T newInstance = newInstance(); if (newInstance == null) { ...
[ "public", "T", "acquire", "(", ")", "throws", "E", "{", "final", "T", "instance", ";", "final", "T", "recycledInstance", "=", "unusedInstances", ".", "poll", "(", ")", ";", "if", "(", "recycledInstance", "==", "null", ")", "{", "// Allocate a new instance --...
Acquire on object instance of type T, either by reusing a previously recycled instance if possible, or if there are no currently-unused instances, by allocating a new instance. @return Either a new or a recycled object instance. @throws E if {@link #newInstance()} threw an exception of type E. @throws NullPointerExcep...
[ "Acquire", "on", "object", "instance", "of", "type", "T", "either", "by", "reusing", "a", "previously", "recycled", "instance", "if", "possible", "or", "if", "there", "are", "no", "currently", "-", "unused", "instances", "by", "allocating", "a", "new", "inst...
c8c8b2ca1eb76339f69193fdac33d735c864215c
https://github.com/classgraph/classgraph/blob/c8c8b2ca1eb76339f69193fdac33d735c864215c/src/main/java/nonapi/io/github/classgraph/recycler/Recycler.java#L74-L90
62,823
classgraph/classgraph
src/main/java/io/github/classgraph/ScanResult.java
ScanResult.getClasspathURIs
public List<URI> getClasspathURIs() { if (closed.get()) { throw new IllegalArgumentException("Cannot use a ScanResult after it has been closed"); } final List<URI> classpathElementOrderURIs = new ArrayList<>(); for (final ClasspathElement classpathElement : classpathOrder) { ...
java
public List<URI> getClasspathURIs() { if (closed.get()) { throw new IllegalArgumentException("Cannot use a ScanResult after it has been closed"); } final List<URI> classpathElementOrderURIs = new ArrayList<>(); for (final ClasspathElement classpathElement : classpathOrder) { ...
[ "public", "List", "<", "URI", ">", "getClasspathURIs", "(", ")", "{", "if", "(", "closed", ".", "get", "(", ")", ")", "{", "throw", "new", "IllegalArgumentException", "(", "\"Cannot use a ScanResult after it has been closed\"", ")", ";", "}", "final", "List", ...
Returns an ordered list of unique classpath element and module URIs. @return The unique classpath element and module URIs.
[ "Returns", "an", "ordered", "list", "of", "unique", "classpath", "element", "and", "module", "URIs", "." ]
c8c8b2ca1eb76339f69193fdac33d735c864215c
https://github.com/classgraph/classgraph/blob/c8c8b2ca1eb76339f69193fdac33d735c864215c/src/main/java/io/github/classgraph/ScanResult.java#L440-L456
62,824
classgraph/classgraph
src/main/java/io/github/classgraph/ScanResult.java
ScanResult.getAllResources
public ResourceList getAllResources() { if (allWhitelistedResourcesCached == null) { // Index Resource objects by path final ResourceList whitelistedResourcesList = new ResourceList(); for (final ClasspathElement classpathElt : classpathOrder) { if (classpathE...
java
public ResourceList getAllResources() { if (allWhitelistedResourcesCached == null) { // Index Resource objects by path final ResourceList whitelistedResourcesList = new ResourceList(); for (final ClasspathElement classpathElt : classpathOrder) { if (classpathE...
[ "public", "ResourceList", "getAllResources", "(", ")", "{", "if", "(", "allWhitelistedResourcesCached", "==", "null", ")", "{", "// Index Resource objects by path", "final", "ResourceList", "whitelistedResourcesList", "=", "new", "ResourceList", "(", ")", ";", "for", ...
Get the list of all resources. @return A list of all resources (including classfiles and non-classfiles) found in whitelisted packages.
[ "Get", "the", "list", "of", "all", "resources", "." ]
c8c8b2ca1eb76339f69193fdac33d735c864215c
https://github.com/classgraph/classgraph/blob/c8c8b2ca1eb76339f69193fdac33d735c864215c/src/main/java/io/github/classgraph/ScanResult.java#L525-L538
62,825
classgraph/classgraph
src/main/java/io/github/classgraph/ScanResult.java
ScanResult.getResourcesWithPath
public ResourceList getResourcesWithPath(final String resourcePath) { if (closed.get()) { throw new IllegalArgumentException("Cannot use a ScanResult after it has been closed"); } final ResourceList allWhitelistedResources = getAllResources(); if (allWhitelistedResources.isEm...
java
public ResourceList getResourcesWithPath(final String resourcePath) { if (closed.get()) { throw new IllegalArgumentException("Cannot use a ScanResult after it has been closed"); } final ResourceList allWhitelistedResources = getAllResources(); if (allWhitelistedResources.isEm...
[ "public", "ResourceList", "getResourcesWithPath", "(", "final", "String", "resourcePath", ")", "{", "if", "(", "closed", ".", "get", "(", ")", ")", "{", "throw", "new", "IllegalArgumentException", "(", "\"Cannot use a ScanResult after it has been closed\"", ")", ";", ...
Get the list of all resources found in whitelisted packages that have the given path, relative to the package root of the classpath element. May match several resources, up to one per classpath element. @param resourcePath A complete resource path, relative to the classpath entry package root. @return A list of all re...
[ "Get", "the", "list", "of", "all", "resources", "found", "in", "whitelisted", "packages", "that", "have", "the", "given", "path", "relative", "to", "the", "package", "root", "of", "the", "classpath", "element", ".", "May", "match", "several", "resources", "u...
c8c8b2ca1eb76339f69193fdac33d735c864215c
https://github.com/classgraph/classgraph/blob/c8c8b2ca1eb76339f69193fdac33d735c864215c/src/main/java/io/github/classgraph/ScanResult.java#L572-L584
62,826
classgraph/classgraph
src/main/java/io/github/classgraph/ScanResult.java
ScanResult.getResourcesWithLeafName
public ResourceList getResourcesWithLeafName(final String leafName) { if (closed.get()) { throw new IllegalArgumentException("Cannot use a ScanResult after it has been closed"); } final ResourceList allWhitelistedResources = getAllResources(); if (allWhitelistedResources.isEm...
java
public ResourceList getResourcesWithLeafName(final String leafName) { if (closed.get()) { throw new IllegalArgumentException("Cannot use a ScanResult after it has been closed"); } final ResourceList allWhitelistedResources = getAllResources(); if (allWhitelistedResources.isEm...
[ "public", "ResourceList", "getResourcesWithLeafName", "(", "final", "String", "leafName", ")", "{", "if", "(", "closed", ".", "get", "(", ")", ")", "{", "throw", "new", "IllegalArgumentException", "(", "\"Cannot use a ScanResult after it has been closed\"", ")", ";", ...
Get the list of all resources found in whitelisted packages that have the requested leafname. @param leafName A resource leaf filename. @return A list of all resources found in whitelisted packages that have the requested leafname.
[ "Get", "the", "list", "of", "all", "resources", "found", "in", "whitelisted", "packages", "that", "have", "the", "requested", "leafname", "." ]
c8c8b2ca1eb76339f69193fdac33d735c864215c
https://github.com/classgraph/classgraph/blob/c8c8b2ca1eb76339f69193fdac33d735c864215c/src/main/java/io/github/classgraph/ScanResult.java#L619-L637
62,827
classgraph/classgraph
src/main/java/io/github/classgraph/ScanResult.java
ScanResult.getResourcesWithExtension
public ResourceList getResourcesWithExtension(final String extension) { if (closed.get()) { throw new IllegalArgumentException("Cannot use a ScanResult after it has been closed"); } final ResourceList allWhitelistedResources = getAllResources(); if (allWhitelistedResources.is...
java
public ResourceList getResourcesWithExtension(final String extension) { if (closed.get()) { throw new IllegalArgumentException("Cannot use a ScanResult after it has been closed"); } final ResourceList allWhitelistedResources = getAllResources(); if (allWhitelistedResources.is...
[ "public", "ResourceList", "getResourcesWithExtension", "(", "final", "String", "extension", ")", "{", "if", "(", "closed", ".", "get", "(", ")", ")", "{", "throw", "new", "IllegalArgumentException", "(", "\"Cannot use a ScanResult after it has been closed\"", ")", ";"...
Get the list of all resources found in whitelisted packages that have the requested filename extension. @param extension A filename extension, e.g. "xml" to match all resources ending in ".xml". @return A list of all resources found in whitelisted packages that have the requested filename extension.
[ "Get", "the", "list", "of", "all", "resources", "found", "in", "whitelisted", "packages", "that", "have", "the", "requested", "filename", "extension", "." ]
c8c8b2ca1eb76339f69193fdac33d735c864215c
https://github.com/classgraph/classgraph/blob/c8c8b2ca1eb76339f69193fdac33d735c864215c/src/main/java/io/github/classgraph/ScanResult.java#L646-L670
62,828
classgraph/classgraph
src/main/java/io/github/classgraph/ScanResult.java
ScanResult.getResourcesMatchingPattern
public ResourceList getResourcesMatchingPattern(final Pattern pattern) { if (closed.get()) { throw new IllegalArgumentException("Cannot use a ScanResult after it has been closed"); } final ResourceList allWhitelistedResources = getAllResources(); if (allWhitelistedResources.i...
java
public ResourceList getResourcesMatchingPattern(final Pattern pattern) { if (closed.get()) { throw new IllegalArgumentException("Cannot use a ScanResult after it has been closed"); } final ResourceList allWhitelistedResources = getAllResources(); if (allWhitelistedResources.i...
[ "public", "ResourceList", "getResourcesMatchingPattern", "(", "final", "Pattern", "pattern", ")", "{", "if", "(", "closed", ".", "get", "(", ")", ")", "{", "throw", "new", "IllegalArgumentException", "(", "\"Cannot use a ScanResult after it has been closed\"", ")", ";...
Get the list of all resources found in whitelisted packages that have a path matching the requested pattern. @param pattern A pattern to match {@link Resource} paths with. @return A list of all resources found in whitelisted packages that have a path matching the requested pattern.
[ "Get", "the", "list", "of", "all", "resources", "found", "in", "whitelisted", "packages", "that", "have", "a", "path", "matching", "the", "requested", "pattern", "." ]
c8c8b2ca1eb76339f69193fdac33d735c864215c
https://github.com/classgraph/classgraph/blob/c8c8b2ca1eb76339f69193fdac33d735c864215c/src/main/java/io/github/classgraph/ScanResult.java#L680-L697
62,829
classgraph/classgraph
src/main/java/io/github/classgraph/ScanResult.java
ScanResult.getModuleInfo
public ModuleInfoList getModuleInfo() { if (closed.get()) { throw new IllegalArgumentException("Cannot use a ScanResult after it has been closed"); } if (!scanSpec.enableClassInfo) { throw new IllegalArgumentException("Please call ClassGraph#enableClassInfo() before #scan...
java
public ModuleInfoList getModuleInfo() { if (closed.get()) { throw new IllegalArgumentException("Cannot use a ScanResult after it has been closed"); } if (!scanSpec.enableClassInfo) { throw new IllegalArgumentException("Please call ClassGraph#enableClassInfo() before #scan...
[ "public", "ModuleInfoList", "getModuleInfo", "(", ")", "{", "if", "(", "closed", ".", "get", "(", ")", ")", "{", "throw", "new", "IllegalArgumentException", "(", "\"Cannot use a ScanResult after it has been closed\"", ")", ";", "}", "if", "(", "!", "scanSpec", "...
Get all modules found during the scan. @return A list of all modules found during the scan, or the empty list if none.
[ "Get", "all", "modules", "found", "during", "the", "scan", "." ]
c8c8b2ca1eb76339f69193fdac33d735c864215c
https://github.com/classgraph/classgraph/blob/c8c8b2ca1eb76339f69193fdac33d735c864215c/src/main/java/io/github/classgraph/ScanResult.java#L725-L733
62,830
classgraph/classgraph
src/main/java/io/github/classgraph/ScanResult.java
ScanResult.getPackageInfo
public PackageInfoList getPackageInfo() { if (closed.get()) { throw new IllegalArgumentException("Cannot use a ScanResult after it has been closed"); } if (!scanSpec.enableClassInfo) { throw new IllegalArgumentException("Please call ClassGraph#enableClassInfo() before #sc...
java
public PackageInfoList getPackageInfo() { if (closed.get()) { throw new IllegalArgumentException("Cannot use a ScanResult after it has been closed"); } if (!scanSpec.enableClassInfo) { throw new IllegalArgumentException("Please call ClassGraph#enableClassInfo() before #sc...
[ "public", "PackageInfoList", "getPackageInfo", "(", ")", "{", "if", "(", "closed", ".", "get", "(", ")", ")", "{", "throw", "new", "IllegalArgumentException", "(", "\"Cannot use a ScanResult after it has been closed\"", ")", ";", "}", "if", "(", "!", "scanSpec", ...
Get all packages found during the scan. @return A list of all packages found during the scan, or the empty list if none.
[ "Get", "all", "packages", "found", "during", "the", "scan", "." ]
c8c8b2ca1eb76339f69193fdac33d735c864215c
https://github.com/classgraph/classgraph/blob/c8c8b2ca1eb76339f69193fdac33d735c864215c/src/main/java/io/github/classgraph/ScanResult.java#L761-L769
62,831
classgraph/classgraph
src/main/java/io/github/classgraph/ScanResult.java
ScanResult.getAllClasses
public ClassInfoList getAllClasses() { if (closed.get()) { throw new IllegalArgumentException("Cannot use a ScanResult after it has been closed"); } if (!scanSpec.enableClassInfo) { throw new IllegalArgumentException("Please call ClassGraph#enableClassInfo() before #scan(...
java
public ClassInfoList getAllClasses() { if (closed.get()) { throw new IllegalArgumentException("Cannot use a ScanResult after it has been closed"); } if (!scanSpec.enableClassInfo) { throw new IllegalArgumentException("Please call ClassGraph#enableClassInfo() before #scan(...
[ "public", "ClassInfoList", "getAllClasses", "(", ")", "{", "if", "(", "closed", ".", "get", "(", ")", ")", "{", "throw", "new", "IllegalArgumentException", "(", "\"Cannot use a ScanResult after it has been closed\"", ")", ";", "}", "if", "(", "!", "scanSpec", "....
Get all classes, interfaces and annotations found during the scan. @return A list of all whitelisted classes found during the scan, or the empty list if none.
[ "Get", "all", "classes", "interfaces", "and", "annotations", "found", "during", "the", "scan", "." ]
c8c8b2ca1eb76339f69193fdac33d735c864215c
https://github.com/classgraph/classgraph/blob/c8c8b2ca1eb76339f69193fdac33d735c864215c/src/main/java/io/github/classgraph/ScanResult.java#L850-L858
62,832
classgraph/classgraph
src/main/java/io/github/classgraph/ScanResult.java
ScanResult.getSubclasses
public ClassInfoList getSubclasses(final String superclassName) { if (closed.get()) { throw new IllegalArgumentException("Cannot use a ScanResult after it has been closed"); } if (!scanSpec.enableClassInfo) { throw new IllegalArgumentException("Please call ClassGraph#enab...
java
public ClassInfoList getSubclasses(final String superclassName) { if (closed.get()) { throw new IllegalArgumentException("Cannot use a ScanResult after it has been closed"); } if (!scanSpec.enableClassInfo) { throw new IllegalArgumentException("Please call ClassGraph#enab...
[ "public", "ClassInfoList", "getSubclasses", "(", "final", "String", "superclassName", ")", "{", "if", "(", "closed", ".", "get", "(", ")", ")", "{", "throw", "new", "IllegalArgumentException", "(", "\"Cannot use a ScanResult after it has been closed\"", ")", ";", "}...
Get all subclasses of the named superclass. @param superclassName The name of the superclass. @return A list of subclasses of the named superclass, or the empty list if none.
[ "Get", "all", "subclasses", "of", "the", "named", "superclass", "." ]
c8c8b2ca1eb76339f69193fdac33d735c864215c
https://github.com/classgraph/classgraph/blob/c8c8b2ca1eb76339f69193fdac33d735c864215c/src/main/java/io/github/classgraph/ScanResult.java#L899-L913
62,833
classgraph/classgraph
src/main/java/io/github/classgraph/ScanResult.java
ScanResult.getSuperclasses
public ClassInfoList getSuperclasses(final String subclassName) { if (closed.get()) { throw new IllegalArgumentException("Cannot use a ScanResult after it has been closed"); } if (!scanSpec.enableClassInfo) { throw new IllegalArgumentException("Please call ClassGraph#enab...
java
public ClassInfoList getSuperclasses(final String subclassName) { if (closed.get()) { throw new IllegalArgumentException("Cannot use a ScanResult after it has been closed"); } if (!scanSpec.enableClassInfo) { throw new IllegalArgumentException("Please call ClassGraph#enab...
[ "public", "ClassInfoList", "getSuperclasses", "(", "final", "String", "subclassName", ")", "{", "if", "(", "closed", ".", "get", "(", ")", ")", "{", "throw", "new", "IllegalArgumentException", "(", "\"Cannot use a ScanResult after it has been closed\"", ")", ";", "}...
Get superclasses of the named subclass. @param subclassName The name of the subclass. @return A list of superclasses of the named subclass, or the empty list if none.
[ "Get", "superclasses", "of", "the", "named", "subclass", "." ]
c8c8b2ca1eb76339f69193fdac33d735c864215c
https://github.com/classgraph/classgraph/blob/c8c8b2ca1eb76339f69193fdac33d735c864215c/src/main/java/io/github/classgraph/ScanResult.java#L922-L931
62,834
classgraph/classgraph
src/main/java/io/github/classgraph/ScanResult.java
ScanResult.getClassesWithMethodAnnotation
public ClassInfoList getClassesWithMethodAnnotation(final String methodAnnotationName) { if (closed.get()) { throw new IllegalArgumentException("Cannot use a ScanResult after it has been closed"); } if (!scanSpec.enableClassInfo || !scanSpec.enableMethodInfo || !scanSpec.enableAnnota...
java
public ClassInfoList getClassesWithMethodAnnotation(final String methodAnnotationName) { if (closed.get()) { throw new IllegalArgumentException("Cannot use a ScanResult after it has been closed"); } if (!scanSpec.enableClassInfo || !scanSpec.enableMethodInfo || !scanSpec.enableAnnota...
[ "public", "ClassInfoList", "getClassesWithMethodAnnotation", "(", "final", "String", "methodAnnotationName", ")", "{", "if", "(", "closed", ".", "get", "(", ")", ")", "{", "throw", "new", "IllegalArgumentException", "(", "\"Cannot use a ScanResult after it has been closed...
Get classes that have a method with an annotation of the named type. @param methodAnnotationName the name of the method annotation. @return A list of classes with a method that has an annotation of the named type, or the empty list if none.
[ "Get", "classes", "that", "have", "a", "method", "with", "an", "annotation", "of", "the", "named", "type", "." ]
c8c8b2ca1eb76339f69193fdac33d735c864215c
https://github.com/classgraph/classgraph/blob/c8c8b2ca1eb76339f69193fdac33d735c864215c/src/main/java/io/github/classgraph/ScanResult.java#L940-L950
62,835
classgraph/classgraph
src/main/java/io/github/classgraph/ScanResult.java
ScanResult.getClassesWithMethodParameterAnnotation
public ClassInfoList getClassesWithMethodParameterAnnotation(final String methodParameterAnnotationName) { if (closed.get()) { throw new IllegalArgumentException("Cannot use a ScanResult after it has been closed"); } if (!scanSpec.enableClassInfo || !scanSpec.enableMethodInfo || !sca...
java
public ClassInfoList getClassesWithMethodParameterAnnotation(final String methodParameterAnnotationName) { if (closed.get()) { throw new IllegalArgumentException("Cannot use a ScanResult after it has been closed"); } if (!scanSpec.enableClassInfo || !scanSpec.enableMethodInfo || !sca...
[ "public", "ClassInfoList", "getClassesWithMethodParameterAnnotation", "(", "final", "String", "methodParameterAnnotationName", ")", "{", "if", "(", "closed", ".", "get", "(", ")", ")", "{", "throw", "new", "IllegalArgumentException", "(", "\"Cannot use a ScanResult after ...
Get classes that have a method with a parameter that is annotated with an annotation of the named type. @param methodParameterAnnotationName the name of the method parameter annotation. @return A list of classes that have a method with a parameter annotated with the named annotation type, or the empty list if none.
[ "Get", "classes", "that", "have", "a", "method", "with", "a", "parameter", "that", "is", "annotated", "with", "an", "annotation", "of", "the", "named", "type", "." ]
c8c8b2ca1eb76339f69193fdac33d735c864215c
https://github.com/classgraph/classgraph/blob/c8c8b2ca1eb76339f69193fdac33d735c864215c/src/main/java/io/github/classgraph/ScanResult.java#L960-L970
62,836
classgraph/classgraph
src/main/java/io/github/classgraph/ScanResult.java
ScanResult.getClassesWithFieldAnnotation
public ClassInfoList getClassesWithFieldAnnotation(final String fieldAnnotationName) { if (closed.get()) { throw new IllegalArgumentException("Cannot use a ScanResult after it has been closed"); } if (!scanSpec.enableClassInfo || !scanSpec.enableFieldInfo || !scanSpec.enableAnnotatio...
java
public ClassInfoList getClassesWithFieldAnnotation(final String fieldAnnotationName) { if (closed.get()) { throw new IllegalArgumentException("Cannot use a ScanResult after it has been closed"); } if (!scanSpec.enableClassInfo || !scanSpec.enableFieldInfo || !scanSpec.enableAnnotatio...
[ "public", "ClassInfoList", "getClassesWithFieldAnnotation", "(", "final", "String", "fieldAnnotationName", ")", "{", "if", "(", "closed", ".", "get", "(", ")", ")", "{", "throw", "new", "IllegalArgumentException", "(", "\"Cannot use a ScanResult after it has been closed\"...
Get classes that have a field with an annotation of the named type. @param fieldAnnotationName the name of the field annotation. @return A list of classes that have a field with an annotation of the named type, or the empty list if none.
[ "Get", "classes", "that", "have", "a", "field", "with", "an", "annotation", "of", "the", "named", "type", "." ]
c8c8b2ca1eb76339f69193fdac33d735c864215c
https://github.com/classgraph/classgraph/blob/c8c8b2ca1eb76339f69193fdac33d735c864215c/src/main/java/io/github/classgraph/ScanResult.java#L979-L989
62,837
classgraph/classgraph
src/main/java/io/github/classgraph/ScanResult.java
ScanResult.getInterfaces
public ClassInfoList getInterfaces(final String className) { if (closed.get()) { throw new IllegalArgumentException("Cannot use a ScanResult after it has been closed"); } if (!scanSpec.enableClassInfo) { throw new IllegalArgumentException("Please call ClassGraph#enableCla...
java
public ClassInfoList getInterfaces(final String className) { if (closed.get()) { throw new IllegalArgumentException("Cannot use a ScanResult after it has been closed"); } if (!scanSpec.enableClassInfo) { throw new IllegalArgumentException("Please call ClassGraph#enableCla...
[ "public", "ClassInfoList", "getInterfaces", "(", "final", "String", "className", ")", "{", "if", "(", "closed", ".", "get", "(", ")", ")", "{", "throw", "new", "IllegalArgumentException", "(", "\"Cannot use a ScanResult after it has been closed\"", ")", ";", "}", ...
Get all interfaces implemented by the named class or by one of its superclasses, if this is a standard class, or the superinterfaces extended by this interface, if this is an interface. @param className The class name. @return A list of interfaces implemented by the named class (or superinterfaces extended by the name...
[ "Get", "all", "interfaces", "implemented", "by", "the", "named", "class", "or", "by", "one", "of", "its", "superclasses", "if", "this", "is", "a", "standard", "class", "or", "the", "superinterfaces", "extended", "by", "this", "interface", "if", "this", "is",...
c8c8b2ca1eb76339f69193fdac33d735c864215c
https://github.com/classgraph/classgraph/blob/c8c8b2ca1eb76339f69193fdac33d735c864215c/src/main/java/io/github/classgraph/ScanResult.java#L1019-L1028
62,838
classgraph/classgraph
src/main/java/io/github/classgraph/ScanResult.java
ScanResult.getClassesWithAnnotation
public ClassInfoList getClassesWithAnnotation(final String annotationName) { if (closed.get()) { throw new IllegalArgumentException("Cannot use a ScanResult after it has been closed"); } if (!scanSpec.enableClassInfo || !scanSpec.enableAnnotationInfo) { throw new IllegalA...
java
public ClassInfoList getClassesWithAnnotation(final String annotationName) { if (closed.get()) { throw new IllegalArgumentException("Cannot use a ScanResult after it has been closed"); } if (!scanSpec.enableClassInfo || !scanSpec.enableAnnotationInfo) { throw new IllegalA...
[ "public", "ClassInfoList", "getClassesWithAnnotation", "(", "final", "String", "annotationName", ")", "{", "if", "(", "closed", ".", "get", "(", ")", ")", "{", "throw", "new", "IllegalArgumentException", "(", "\"Cannot use a ScanResult after it has been closed\"", ")", ...
Get classes with the named class annotation or meta-annotation. @param annotationName The name of the class annotation or meta-annotation. @return A list of all non-annotation classes that were found with the named class annotation during the scan, or the empty list if none.
[ "Get", "classes", "with", "the", "named", "class", "annotation", "or", "meta", "-", "annotation", "." ]
c8c8b2ca1eb76339f69193fdac33d735c864215c
https://github.com/classgraph/classgraph/blob/c8c8b2ca1eb76339f69193fdac33d735c864215c/src/main/java/io/github/classgraph/ScanResult.java#L1093-L1103
62,839
classgraph/classgraph
src/main/java/io/github/classgraph/ScanResult.java
ScanResult.fromJSON
public static ScanResult fromJSON(final String json) { final Matcher matcher = Pattern.compile("\\{[\\n\\r ]*\"format\"[ ]?:[ ]?\"([^\"]+)\"").matcher(json); if (!matcher.find()) { throw new IllegalArgumentException("JSON is not in correct format"); } if (!CURRENT_SERIALIZATI...
java
public static ScanResult fromJSON(final String json) { final Matcher matcher = Pattern.compile("\\{[\\n\\r ]*\"format\"[ ]?:[ ]?\"([^\"]+)\"").matcher(json); if (!matcher.find()) { throw new IllegalArgumentException("JSON is not in correct format"); } if (!CURRENT_SERIALIZATI...
[ "public", "static", "ScanResult", "fromJSON", "(", "final", "String", "json", ")", "{", "final", "Matcher", "matcher", "=", "Pattern", ".", "compile", "(", "\"\\\\{[\\\\n\\\\r ]*\\\"format\\\"[ ]?:[ ]?\\\"([^\\\"]+)\\\"\"", ")", ".", "matcher", "(", "json", ")", ";"...
Deserialize a ScanResult from previously-serialized JSON. @param json The JSON string for the serialized {@link ScanResult}. @return The deserialized {@link ScanResult}.
[ "Deserialize", "a", "ScanResult", "from", "previously", "-", "serialized", "JSON", "." ]
c8c8b2ca1eb76339f69193fdac33d735c864215c
https://github.com/classgraph/classgraph/blob/c8c8b2ca1eb76339f69193fdac33d735c864215c/src/main/java/io/github/classgraph/ScanResult.java#L1308-L1368
62,840
classgraph/classgraph
src/main/java/io/github/classgraph/ScanResult.java
ScanResult.toJSON
public String toJSON(final int indentWidth) { if (closed.get()) { throw new IllegalArgumentException("Cannot use a ScanResult after it has been closed"); } if (!scanSpec.enableClassInfo) { throw new IllegalArgumentException("Please call ClassGraph#enableClassInfo() before...
java
public String toJSON(final int indentWidth) { if (closed.get()) { throw new IllegalArgumentException("Cannot use a ScanResult after it has been closed"); } if (!scanSpec.enableClassInfo) { throw new IllegalArgumentException("Please call ClassGraph#enableClassInfo() before...
[ "public", "String", "toJSON", "(", "final", "int", "indentWidth", ")", "{", "if", "(", "closed", ".", "get", "(", ")", ")", "{", "throw", "new", "IllegalArgumentException", "(", "\"Cannot use a ScanResult after it has been closed\"", ")", ";", "}", "if", "(", ...
Serialize a ScanResult to JSON. @param indentWidth If greater than 0, JSON will be formatted (indented), otherwise it will be minified (un-indented). @return This {@link ScanResult}, serialized as a JSON string.
[ "Serialize", "a", "ScanResult", "to", "JSON", "." ]
c8c8b2ca1eb76339f69193fdac33d735c864215c
https://github.com/classgraph/classgraph/blob/c8c8b2ca1eb76339f69193fdac33d735c864215c/src/main/java/io/github/classgraph/ScanResult.java#L1377-L1392
62,841
classgraph/classgraph
src/main/java/nonapi/io/github/classgraph/json/TypeResolutions.java
TypeResolutions.resolveTypeVariables
Type resolveTypeVariables(final Type type) { if (type instanceof Class<?>) { // Arrays and non-generic classes have no type variables return type; } else if (type instanceof ParameterizedType) { // Recursively resolve parameterized types final Parameteriz...
java
Type resolveTypeVariables(final Type type) { if (type instanceof Class<?>) { // Arrays and non-generic classes have no type variables return type; } else if (type instanceof ParameterizedType) { // Recursively resolve parameterized types final Parameteriz...
[ "Type", "resolveTypeVariables", "(", "final", "Type", "type", ")", "{", "if", "(", "type", "instanceof", "Class", "<", "?", ">", ")", "{", "// Arrays and non-generic classes have no type variables", "return", "type", ";", "}", "else", "if", "(", "type", "instanc...
Resolve the type variables in a type using a type variable resolution list, producing a resolved type. @param type the type @return the resolved type
[ "Resolve", "the", "type", "variables", "in", "a", "type", "using", "a", "type", "variable", "resolution", "list", "producing", "a", "resolved", "type", "." ]
c8c8b2ca1eb76339f69193fdac33d735c864215c
https://github.com/classgraph/classgraph/blob/c8c8b2ca1eb76339f69193fdac33d735c864215c/src/main/java/nonapi/io/github/classgraph/json/TypeResolutions.java#L71-L150
62,842
classgraph/classgraph
src/main/java/nonapi/io/github/classgraph/json/JSONSerializer.java
JSONSerializer.assignObjectIds
private static void assignObjectIds(final Object jsonVal, final Map<ReferenceEqualityKey<Object>, JSONObject> objToJSONVal, final ClassFieldCache classFieldCache, final Map<ReferenceEqualityKey<JSONReference>, CharSequence> jsonReferenceToId, final AtomicInteger objId, final boolean ...
java
private static void assignObjectIds(final Object jsonVal, final Map<ReferenceEqualityKey<Object>, JSONObject> objToJSONVal, final ClassFieldCache classFieldCache, final Map<ReferenceEqualityKey<JSONReference>, CharSequence> jsonReferenceToId, final AtomicInteger objId, final boolean ...
[ "private", "static", "void", "assignObjectIds", "(", "final", "Object", "jsonVal", ",", "final", "Map", "<", "ReferenceEqualityKey", "<", "Object", ">", ",", "JSONObject", ">", "objToJSONVal", ",", "final", "ClassFieldCache", "classFieldCache", ",", "final", "Map"...
Create a unique id for each referenced JSON object. @param jsonVal the json val @param objToJSONVal a map from obj to JSON val @param classFieldCache the class field cache @param jsonReferenceToId a map from json reference to id @param objId the object id @param onlySerializePublicFields whether to only serialize publ...
[ "Create", "a", "unique", "id", "for", "each", "referenced", "JSON", "object", "." ]
c8c8b2ca1eb76339f69193fdac33d735c864215c
https://github.com/classgraph/classgraph/blob/c8c8b2ca1eb76339f69193fdac33d735c864215c/src/main/java/nonapi/io/github/classgraph/json/JSONSerializer.java#L78-L137
62,843
classgraph/classgraph
src/main/java/nonapi/io/github/classgraph/json/JSONSerializer.java
JSONSerializer.jsonValToJSONString
static void jsonValToJSONString(final Object jsonVal, final Map<ReferenceEqualityKey<JSONReference>, CharSequence> jsonReferenceToId, final boolean includeNullValuedFields, final int depth, final int indentWidth, final StringBuilder buf) { if (jsonVal == null) { ...
java
static void jsonValToJSONString(final Object jsonVal, final Map<ReferenceEqualityKey<JSONReference>, CharSequence> jsonReferenceToId, final boolean includeNullValuedFields, final int depth, final int indentWidth, final StringBuilder buf) { if (jsonVal == null) { ...
[ "static", "void", "jsonValToJSONString", "(", "final", "Object", "jsonVal", ",", "final", "Map", "<", "ReferenceEqualityKey", "<", "JSONReference", ">", ",", "CharSequence", ">", "jsonReferenceToId", ",", "final", "boolean", "includeNullValuedFields", ",", "final", ...
Serialize a JSON object, array, or value. @param jsonVal the json val @param jsonReferenceToId a map from json reference to id @param includeNullValuedFields the include null valued fields @param depth the depth @param indentWidth the indent width @param buf the buf
[ "Serialize", "a", "JSON", "object", "array", "or", "value", "." ]
c8c8b2ca1eb76339f69193fdac33d735c864215c
https://github.com/classgraph/classgraph/blob/c8c8b2ca1eb76339f69193fdac33d735c864215c/src/main/java/nonapi/io/github/classgraph/json/JSONSerializer.java#L417-L452
62,844
classgraph/classgraph
src/main/java/io/github/classgraph/Classfile.java
Classfile.scheduleScanningIfExternalClass
private void scheduleScanningIfExternalClass(final String className, final String relationship) { // Don't scan Object if (className != null && !className.equals("java.lang.Object") // Only schedule each external class once for scanning, across all threads && classNamesScheduledF...
java
private void scheduleScanningIfExternalClass(final String className, final String relationship) { // Don't scan Object if (className != null && !className.equals("java.lang.Object") // Only schedule each external class once for scanning, across all threads && classNamesScheduledF...
[ "private", "void", "scheduleScanningIfExternalClass", "(", "final", "String", "className", ",", "final", "String", "relationship", ")", "{", "// Don't scan Object", "if", "(", "className", "!=", "null", "&&", "!", "className", ".", "equals", "(", "\"java.lang.Object...
Extend scanning to a superclass, interface or annotation. @param className the class name @param relationship the relationship type
[ "Extend", "scanning", "to", "a", "superclass", "interface", "or", "annotation", "." ]
c8c8b2ca1eb76339f69193fdac33d735c864215c
https://github.com/classgraph/classgraph/blob/c8c8b2ca1eb76339f69193fdac33d735c864215c/src/main/java/io/github/classgraph/Classfile.java#L231-L277
62,845
classgraph/classgraph
src/main/java/io/github/classgraph/Classfile.java
Classfile.extendScanningUpwards
private void extendScanningUpwards() { // Check superclass if (superclassName != null) { scheduleScanningIfExternalClass(superclassName, "superclass"); } // Check implemented interfaces if (implementedInterfaces != null) { for (final String interfaceName :...
java
private void extendScanningUpwards() { // Check superclass if (superclassName != null) { scheduleScanningIfExternalClass(superclassName, "superclass"); } // Check implemented interfaces if (implementedInterfaces != null) { for (final String interfaceName :...
[ "private", "void", "extendScanningUpwards", "(", ")", "{", "// Check superclass", "if", "(", "superclassName", "!=", "null", ")", "{", "scheduleScanningIfExternalClass", "(", "superclassName", ",", "\"superclass\"", ")", ";", "}", "// Check implemented interfaces", "if"...
Check if scanning needs to be extended upwards to an external superclass, interface or annotation.
[ "Check", "if", "scanning", "needs", "to", "be", "extended", "upwards", "to", "an", "external", "superclass", "interface", "or", "annotation", "." ]
c8c8b2ca1eb76339f69193fdac33d735c864215c
https://github.com/classgraph/classgraph/blob/c8c8b2ca1eb76339f69193fdac33d735c864215c/src/main/java/io/github/classgraph/Classfile.java#L282-L330
62,846
classgraph/classgraph
src/main/java/io/github/classgraph/Classfile.java
Classfile.link
void link(final Map<String, ClassInfo> classNameToClassInfo, final Map<String, PackageInfo> packageNameToPackageInfo, final Map<String, ModuleInfo> moduleNameToModuleInfo) { boolean isModuleDescriptor = false; boolean isPackageDescriptor = false; ClassInfo classInfo = nul...
java
void link(final Map<String, ClassInfo> classNameToClassInfo, final Map<String, PackageInfo> packageNameToPackageInfo, final Map<String, ModuleInfo> moduleNameToModuleInfo) { boolean isModuleDescriptor = false; boolean isPackageDescriptor = false; ClassInfo classInfo = nul...
[ "void", "link", "(", "final", "Map", "<", "String", ",", "ClassInfo", ">", "classNameToClassInfo", ",", "final", "Map", "<", "String", ",", "PackageInfo", ">", "packageNameToPackageInfo", ",", "final", "Map", "<", "String", ",", "ModuleInfo", ">", "moduleNameT...
Link classes. Not threadsafe, should be run in a single-threaded context. @param classNameToClassInfo map from class name to class info @param packageNameToPackageInfo map from package name to package info @param moduleNameToModuleInfo map from module name to module info
[ "Link", "classes", ".", "Not", "threadsafe", "should", "be", "run", "in", "a", "single", "-", "threaded", "context", "." ]
c8c8b2ca1eb76339f69193fdac33d735c864215c
https://github.com/classgraph/classgraph/blob/c8c8b2ca1eb76339f69193fdac33d735c864215c/src/main/java/io/github/classgraph/Classfile.java#L344-L439
62,847
classgraph/classgraph
src/main/java/io/github/classgraph/Classfile.java
Classfile.intern
private String intern(final String str) { if (str == null) { return null; } final String interned = stringInternMap.putIfAbsent(str, str); if (interned != null) { return interned; } return str; }
java
private String intern(final String str) { if (str == null) { return null; } final String interned = stringInternMap.putIfAbsent(str, str); if (interned != null) { return interned; } return str; }
[ "private", "String", "intern", "(", "final", "String", "str", ")", "{", "if", "(", "str", "==", "null", ")", "{", "return", "null", ";", "}", "final", "String", "interned", "=", "stringInternMap", ".", "putIfAbsent", "(", "str", ",", "str", ")", ";", ...
Intern a string.
[ "Intern", "a", "string", "." ]
c8c8b2ca1eb76339f69193fdac33d735c864215c
https://github.com/classgraph/classgraph/blob/c8c8b2ca1eb76339f69193fdac33d735c864215c/src/main/java/io/github/classgraph/Classfile.java#L446-L455
62,848
classgraph/classgraph
src/main/java/io/github/classgraph/Classfile.java
Classfile.getConstantPoolStringOffset
private int getConstantPoolStringOffset(final int cpIdx, final int subFieldIdx) throws ClassfileFormatException { if (cpIdx < 1 || cpIdx >= cpCount) { throw new ClassfileFormatException("Constant pool index " + cpIdx + ", should be in range [1, " + (cpCount - 1) + "] ...
java
private int getConstantPoolStringOffset(final int cpIdx, final int subFieldIdx) throws ClassfileFormatException { if (cpIdx < 1 || cpIdx >= cpCount) { throw new ClassfileFormatException("Constant pool index " + cpIdx + ", should be in range [1, " + (cpCount - 1) + "] ...
[ "private", "int", "getConstantPoolStringOffset", "(", "final", "int", "cpIdx", ",", "final", "int", "subFieldIdx", ")", "throws", "ClassfileFormatException", "{", "if", "(", "cpIdx", "<", "1", "||", "cpIdx", ">=", "cpCount", ")", "{", "throw", "new", "Classfil...
Get the byte offset within the buffer of a string from the constant pool, or 0 for a null string. @param cpIdx the constant pool index @param subFieldIdx should be 0 for CONSTANT_Utf8, CONSTANT_Class and CONSTANT_String, and for CONSTANT_NameAndType_info, fetches the name for value 0, or the type descriptor for value ...
[ "Get", "the", "byte", "offset", "within", "the", "buffer", "of", "a", "string", "from", "the", "constant", "pool", "or", "0", "for", "a", "null", "string", "." ]
c8c8b2ca1eb76339f69193fdac33d735c864215c
https://github.com/classgraph/classgraph/blob/c8c8b2ca1eb76339f69193fdac33d735c864215c/src/main/java/io/github/classgraph/Classfile.java#L469-L529
62,849
classgraph/classgraph
src/main/java/io/github/classgraph/Classfile.java
Classfile.getConstantPoolString
private String getConstantPoolString(final int cpIdx, final int subFieldIdx) throws ClassfileFormatException, IOException { final int constantPoolStringOffset = getConstantPoolStringOffset(cpIdx, subFieldIdx); return constantPoolStringOffset == 0 ? null : intern(inputStreamOr...
java
private String getConstantPoolString(final int cpIdx, final int subFieldIdx) throws ClassfileFormatException, IOException { final int constantPoolStringOffset = getConstantPoolStringOffset(cpIdx, subFieldIdx); return constantPoolStringOffset == 0 ? null : intern(inputStreamOr...
[ "private", "String", "getConstantPoolString", "(", "final", "int", "cpIdx", ",", "final", "int", "subFieldIdx", ")", "throws", "ClassfileFormatException", ",", "IOException", "{", "final", "int", "constantPoolStringOffset", "=", "getConstantPoolStringOffset", "(", "cpId...
Get a string from the constant pool. @param cpIdx the constant pool index @param subFieldIdx should be 0 for CONSTANT_Utf8, CONSTANT_Class and CONSTANT_String, and for CONSTANT_NameAndType_info, fetches the name for value 0, or the type descriptor for value 1. @return the constant pool string @throws ClassfileFormatEx...
[ "Get", "a", "string", "from", "the", "constant", "pool", "." ]
c8c8b2ca1eb76339f69193fdac33d735c864215c
https://github.com/classgraph/classgraph/blob/c8c8b2ca1eb76339f69193fdac33d735c864215c/src/main/java/io/github/classgraph/Classfile.java#L569-L575
62,850
classgraph/classgraph
src/main/java/io/github/classgraph/Classfile.java
Classfile.getConstantPoolStringFirstByte
private byte getConstantPoolStringFirstByte(final int cpIdx) throws ClassfileFormatException, IOException { final int constantPoolStringOffset = getConstantPoolStringOffset(cpIdx, /* subFieldIdx = */ 0); if (constantPoolStringOffset == 0) { return '\0'; } final int utfLen = i...
java
private byte getConstantPoolStringFirstByte(final int cpIdx) throws ClassfileFormatException, IOException { final int constantPoolStringOffset = getConstantPoolStringOffset(cpIdx, /* subFieldIdx = */ 0); if (constantPoolStringOffset == 0) { return '\0'; } final int utfLen = i...
[ "private", "byte", "getConstantPoolStringFirstByte", "(", "final", "int", "cpIdx", ")", "throws", "ClassfileFormatException", ",", "IOException", "{", "final", "int", "constantPoolStringOffset", "=", "getConstantPoolStringOffset", "(", "cpIdx", ",", "/* subFieldIdx = */", ...
Get the first UTF8 byte of a string in the constant pool, or '\0' if the string is null or empty. @param cpIdx the constant pool index @return the first byte of the constant pool string @throws ClassfileFormatException If a problem occurs. @throws IOException If an IO exception occurs.
[ "Get", "the", "first", "UTF8", "byte", "of", "a", "string", "in", "the", "constant", "pool", "or", "\\", "0", "if", "the", "string", "is", "null", "or", "empty", "." ]
c8c8b2ca1eb76339f69193fdac33d735c864215c
https://github.com/classgraph/classgraph/blob/c8c8b2ca1eb76339f69193fdac33d735c864215c/src/main/java/io/github/classgraph/Classfile.java#L603-L613
62,851
classgraph/classgraph
src/main/java/io/github/classgraph/Classfile.java
Classfile.constantPoolStringEquals
private boolean constantPoolStringEquals(final int cpIdx, final String asciiString) throws ClassfileFormatException, IOException { final int strOffset = getConstantPoolStringOffset(cpIdx, /* subFieldIdx = */ 0); if (strOffset == 0) { return asciiString == null; } else if ...
java
private boolean constantPoolStringEquals(final int cpIdx, final String asciiString) throws ClassfileFormatException, IOException { final int strOffset = getConstantPoolStringOffset(cpIdx, /* subFieldIdx = */ 0); if (strOffset == 0) { return asciiString == null; } else if ...
[ "private", "boolean", "constantPoolStringEquals", "(", "final", "int", "cpIdx", ",", "final", "String", "asciiString", ")", "throws", "ClassfileFormatException", ",", "IOException", "{", "final", "int", "strOffset", "=", "getConstantPoolStringOffset", "(", "cpIdx", ",...
Compare a string in the constant pool with a given ASCII string, without constructing the constant pool String object. @param cpIdx the constant pool index @param asciiString the ASCII string to compare to @return true, if successful @throws ClassfileFormatException If a problem occurs. @throws IOException If an IO ex...
[ "Compare", "a", "string", "in", "the", "constant", "pool", "with", "a", "given", "ASCII", "string", "without", "constructing", "the", "constant", "pool", "String", "object", "." ]
c8c8b2ca1eb76339f69193fdac33d735c864215c
https://github.com/classgraph/classgraph/blob/c8c8b2ca1eb76339f69193fdac33d735c864215c/src/main/java/io/github/classgraph/Classfile.java#L661-L681
62,852
classgraph/classgraph
src/main/java/io/github/classgraph/Classfile.java
Classfile.cpReadUnsignedShort
private int cpReadUnsignedShort(final int cpIdx) throws IOException { if (cpIdx < 1 || cpIdx >= cpCount) { throw new ClassfileFormatException("Constant pool index " + cpIdx + ", should be in range [1, " + (cpCount - 1) + "] -- cannot continue reading class. " ...
java
private int cpReadUnsignedShort(final int cpIdx) throws IOException { if (cpIdx < 1 || cpIdx >= cpCount) { throw new ClassfileFormatException("Constant pool index " + cpIdx + ", should be in range [1, " + (cpCount - 1) + "] -- cannot continue reading class. " ...
[ "private", "int", "cpReadUnsignedShort", "(", "final", "int", "cpIdx", ")", "throws", "IOException", "{", "if", "(", "cpIdx", "<", "1", "||", "cpIdx", ">=", "cpCount", ")", "{", "throw", "new", "ClassfileFormatException", "(", "\"Constant pool index \"", "+", ...
Read an unsigned short from the constant pool. @param cpIdx the constant pool index. @return the unsigned short @throws IOException If an I/O exception occurred.
[ "Read", "an", "unsigned", "short", "from", "the", "constant", "pool", "." ]
c8c8b2ca1eb76339f69193fdac33d735c864215c
https://github.com/classgraph/classgraph/blob/c8c8b2ca1eb76339f69193fdac33d735c864215c/src/main/java/io/github/classgraph/Classfile.java#L694-L701
62,853
classgraph/classgraph
src/main/java/io/github/classgraph/Classfile.java
Classfile.cpReadInt
private int cpReadInt(final int cpIdx) throws IOException { if (cpIdx < 1 || cpIdx >= cpCount) { throw new ClassfileFormatException("Constant pool index " + cpIdx + ", should be in range [1, " + (cpCount - 1) + "] -- cannot continue reading class. " + "Please ...
java
private int cpReadInt(final int cpIdx) throws IOException { if (cpIdx < 1 || cpIdx >= cpCount) { throw new ClassfileFormatException("Constant pool index " + cpIdx + ", should be in range [1, " + (cpCount - 1) + "] -- cannot continue reading class. " + "Please ...
[ "private", "int", "cpReadInt", "(", "final", "int", "cpIdx", ")", "throws", "IOException", "{", "if", "(", "cpIdx", "<", "1", "||", "cpIdx", ">=", "cpCount", ")", "{", "throw", "new", "ClassfileFormatException", "(", "\"Constant pool index \"", "+", "cpIdx", ...
Read an int from the constant pool. @param cpIdx the constant pool index. @return the int @throws IOException If an I/O exception occurred.
[ "Read", "an", "int", "from", "the", "constant", "pool", "." ]
c8c8b2ca1eb76339f69193fdac33d735c864215c
https://github.com/classgraph/classgraph/blob/c8c8b2ca1eb76339f69193fdac33d735c864215c/src/main/java/io/github/classgraph/Classfile.java#L712-L719
62,854
classgraph/classgraph
src/main/java/io/github/classgraph/Classfile.java
Classfile.cpReadLong
private long cpReadLong(final int cpIdx) throws IOException { if (cpIdx < 1 || cpIdx >= cpCount) { throw new ClassfileFormatException("Constant pool index " + cpIdx + ", should be in range [1, " + (cpCount - 1) + "] -- cannot continue reading class. " + "Pleas...
java
private long cpReadLong(final int cpIdx) throws IOException { if (cpIdx < 1 || cpIdx >= cpCount) { throw new ClassfileFormatException("Constant pool index " + cpIdx + ", should be in range [1, " + (cpCount - 1) + "] -- cannot continue reading class. " + "Pleas...
[ "private", "long", "cpReadLong", "(", "final", "int", "cpIdx", ")", "throws", "IOException", "{", "if", "(", "cpIdx", "<", "1", "||", "cpIdx", ">=", "cpCount", ")", "{", "throw", "new", "ClassfileFormatException", "(", "\"Constant pool index \"", "+", "cpIdx",...
Read a long from the constant pool. @param cpIdx the constant pool index. @return the long @throws IOException If an I/O exception occurred.
[ "Read", "a", "long", "from", "the", "constant", "pool", "." ]
c8c8b2ca1eb76339f69193fdac33d735c864215c
https://github.com/classgraph/classgraph/blob/c8c8b2ca1eb76339f69193fdac33d735c864215c/src/main/java/io/github/classgraph/Classfile.java#L730-L737
62,855
classgraph/classgraph
src/main/java/io/github/classgraph/Classfile.java
Classfile.getFieldConstantPoolValue
private Object getFieldConstantPoolValue(final int tag, final char fieldTypeDescriptorFirstChar, final int cpIdx) throws ClassfileFormatException, IOException { switch (tag) { case 1: // Modified UTF8 case 7: // Class -- N.B. Unused? Class references do not seem to actually be stored...
java
private Object getFieldConstantPoolValue(final int tag, final char fieldTypeDescriptorFirstChar, final int cpIdx) throws ClassfileFormatException, IOException { switch (tag) { case 1: // Modified UTF8 case 7: // Class -- N.B. Unused? Class references do not seem to actually be stored...
[ "private", "Object", "getFieldConstantPoolValue", "(", "final", "int", "tag", ",", "final", "char", "fieldTypeDescriptorFirstChar", ",", "final", "int", "cpIdx", ")", "throws", "ClassfileFormatException", ",", "IOException", "{", "switch", "(", "tag", ")", "{", "c...
Get a field constant from the constant pool. @param tag the tag @param fieldTypeDescriptorFirstChar the first char of the field type descriptor @param cpIdx the constant pool index @return the field constant pool value @throws ClassfileFormatException If a problem occurs. @throws IOException If an IO exception occurs.
[ "Get", "a", "field", "constant", "from", "the", "constant", "pool", "." ]
c8c8b2ca1eb76339f69193fdac33d735c864215c
https://github.com/classgraph/classgraph/blob/c8c8b2ca1eb76339f69193fdac33d735c864215c/src/main/java/io/github/classgraph/Classfile.java#L756-L796
62,856
classgraph/classgraph
src/main/java/io/github/classgraph/Classfile.java
Classfile.readAnnotation
private AnnotationInfo readAnnotation() throws IOException { // Lcom/xyz/Annotation; -> Lcom.xyz.Annotation; final String annotationClassName = getConstantPoolClassDescriptor( inputStreamOrByteBuffer.readUnsignedShort()); final int numElementValuePairs = inputStreamOrByteBuffer.r...
java
private AnnotationInfo readAnnotation() throws IOException { // Lcom/xyz/Annotation; -> Lcom.xyz.Annotation; final String annotationClassName = getConstantPoolClassDescriptor( inputStreamOrByteBuffer.readUnsignedShort()); final int numElementValuePairs = inputStreamOrByteBuffer.r...
[ "private", "AnnotationInfo", "readAnnotation", "(", ")", "throws", "IOException", "{", "// Lcom/xyz/Annotation; -> Lcom.xyz.Annotation;", "final", "String", "annotationClassName", "=", "getConstantPoolClassDescriptor", "(", "inputStreamOrByteBuffer", ".", "readUnsignedShort", "("...
Read annotation entry from classfile. @return the annotation, as an {@link AnnotationInfo} object. @throws IOException If an IO exception occurs.
[ "Read", "annotation", "entry", "from", "classfile", "." ]
c8c8b2ca1eb76339f69193fdac33d735c864215c
https://github.com/classgraph/classgraph/blob/c8c8b2ca1eb76339f69193fdac33d735c864215c/src/main/java/io/github/classgraph/Classfile.java#L807-L822
62,857
classgraph/classgraph
src/main/java/io/github/classgraph/Classfile.java
Classfile.readAnnotationElementValue
private Object readAnnotationElementValue() throws IOException { final int tag = (char) inputStreamOrByteBuffer.readUnsignedByte(); switch (tag) { case 'B': return (byte) cpReadInt(inputStreamOrByteBuffer.readUnsignedShort()); case 'C': return (char) cpReadInt(inp...
java
private Object readAnnotationElementValue() throws IOException { final int tag = (char) inputStreamOrByteBuffer.readUnsignedByte(); switch (tag) { case 'B': return (byte) cpReadInt(inputStreamOrByteBuffer.readUnsignedShort()); case 'C': return (char) cpReadInt(inp...
[ "private", "Object", "readAnnotationElementValue", "(", ")", "throws", "IOException", "{", "final", "int", "tag", "=", "(", "char", ")", "inputStreamOrByteBuffer", ".", "readUnsignedByte", "(", ")", ";", "switch", "(", "tag", ")", "{", "case", "'", "'", ":",...
Read annotation element value from classfile. @return the annotation element value @throws IOException If an IO exception occurs.
[ "Read", "annotation", "element", "value", "from", "classfile", "." ]
c8c8b2ca1eb76339f69193fdac33d735c864215c
https://github.com/classgraph/classgraph/blob/c8c8b2ca1eb76339f69193fdac33d735c864215c/src/main/java/io/github/classgraph/Classfile.java#L831-L881
62,858
classgraph/classgraph
src/main/java/io/github/classgraph/Classfile.java
Classfile.readBasicClassInfo
private void readBasicClassInfo() throws IOException, ClassfileFormatException, SkipClassException { // Modifier flags classModifiers = inputStreamOrByteBuffer.readUnsignedShort(); isInterface = (classModifiers & 0x0200) != 0; isAnnotation = (classModifiers & 0x2000) != 0; // Th...
java
private void readBasicClassInfo() throws IOException, ClassfileFormatException, SkipClassException { // Modifier flags classModifiers = inputStreamOrByteBuffer.readUnsignedShort(); isInterface = (classModifiers & 0x0200) != 0; isAnnotation = (classModifiers & 0x2000) != 0; // Th...
[ "private", "void", "readBasicClassInfo", "(", ")", "throws", "IOException", ",", "ClassfileFormatException", ",", "SkipClassException", "{", "// Modifier flags", "classModifiers", "=", "inputStreamOrByteBuffer", ".", "readUnsignedShort", "(", ")", ";", "isInterface", "=",...
Read basic class information. @throws IOException if an I/O exception occurs. @throws ClassfileFormatException if the classfile is incorrectly formatted. @throws SkipClassException if the classfile needs to be skipped (e.g. the class is non-public, and ignoreClassVisibility is false)
[ "Read", "basic", "class", "information", "." ]
c8c8b2ca1eb76339f69193fdac33d735c864215c
https://github.com/classgraph/classgraph/blob/c8c8b2ca1eb76339f69193fdac33d735c864215c/src/main/java/io/github/classgraph/Classfile.java#L1056-L1098
62,859
classgraph/classgraph
src/main/java/io/github/classgraph/Classfile.java
Classfile.readInterfaces
private void readInterfaces() throws IOException { // Interfaces final int interfaceCount = inputStreamOrByteBuffer.readUnsignedShort(); for (int i = 0; i < interfaceCount; i++) { final String interfaceName = getConstantPoolClassName(inputStreamOrByteBuffer.readUnsignedShort()); ...
java
private void readInterfaces() throws IOException { // Interfaces final int interfaceCount = inputStreamOrByteBuffer.readUnsignedShort(); for (int i = 0; i < interfaceCount; i++) { final String interfaceName = getConstantPoolClassName(inputStreamOrByteBuffer.readUnsignedShort()); ...
[ "private", "void", "readInterfaces", "(", ")", "throws", "IOException", "{", "// Interfaces", "final", "int", "interfaceCount", "=", "inputStreamOrByteBuffer", ".", "readUnsignedShort", "(", ")", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "interface...
Read the class' interfaces. @throws IOException if an I/O exception occurs.
[ "Read", "the", "class", "interfaces", "." ]
c8c8b2ca1eb76339f69193fdac33d735c864215c
https://github.com/classgraph/classgraph/blob/c8c8b2ca1eb76339f69193fdac33d735c864215c/src/main/java/io/github/classgraph/Classfile.java#L1108-L1118
62,860
classgraph/classgraph
src/main/java/io/github/classgraph/Classfile.java
Classfile.readClassAttributes
private void readClassAttributes() throws IOException, ClassfileFormatException { // Class attributes (including class annotations, class type variables, module info, etc.) final int attributesCount = inputStreamOrByteBuffer.readUnsignedShort(); for (int i = 0; i < attributesCount; i++) { ...
java
private void readClassAttributes() throws IOException, ClassfileFormatException { // Class attributes (including class annotations, class type variables, module info, etc.) final int attributesCount = inputStreamOrByteBuffer.readUnsignedShort(); for (int i = 0; i < attributesCount; i++) { ...
[ "private", "void", "readClassAttributes", "(", ")", "throws", "IOException", ",", "ClassfileFormatException", "{", "// Class attributes (including class annotations, class type variables, module info, etc.)", "final", "int", "attributesCount", "=", "inputStreamOrByteBuffer", ".", "...
Read class attributes. @throws IOException if an I/O exception occurs. @throws ClassfileFormatException if the classfile is incorrectly formatted.
[ "Read", "class", "attributes", "." ]
c8c8b2ca1eb76339f69193fdac33d735c864215c
https://github.com/classgraph/classgraph/blob/c8c8b2ca1eb76339f69193fdac33d735c864215c/src/main/java/io/github/classgraph/Classfile.java#L1365-L1433
62,861
classgraph/classgraph
src/main/java/nonapi/io/github/classgraph/fastzipfilereader/ZipFileSlice.java
ZipFileSlice.appendPath
private void appendPath(final StringBuilder buf) { if (parentZipFileSlice != null) { parentZipFileSlice.appendPath(buf); if (buf.length() > 0) { buf.append("!/"); } } buf.append(pathWithinParentZipFileSlice); }
java
private void appendPath(final StringBuilder buf) { if (parentZipFileSlice != null) { parentZipFileSlice.appendPath(buf); if (buf.length() > 0) { buf.append("!/"); } } buf.append(pathWithinParentZipFileSlice); }
[ "private", "void", "appendPath", "(", "final", "StringBuilder", "buf", ")", "{", "if", "(", "parentZipFileSlice", "!=", "null", ")", "{", "parentZipFileSlice", ".", "appendPath", "(", "buf", ")", ";", "if", "(", "buf", ".", "length", "(", ")", ">", "0", ...
Recursively append the path in top down ancestral order. @param buf the buf to append the path to
[ "Recursively", "append", "the", "path", "in", "top", "down", "ancestral", "order", "." ]
c8c8b2ca1eb76339f69193fdac33d735c864215c
https://github.com/classgraph/classgraph/blob/c8c8b2ca1eb76339f69193fdac33d735c864215c/src/main/java/nonapi/io/github/classgraph/fastzipfilereader/ZipFileSlice.java#L178-L186
62,862
classgraph/classgraph
src/main/java/nonapi/io/github/classgraph/ScanSpec.java
ScanSpec.filterClasspathElements
public void filterClasspathElements(final ClasspathElementFilter classpathElementFilter) { if (this.classpathElementFilters == null) { this.classpathElementFilters = new ArrayList<>(2); } this.classpathElementFilters.add(classpathElementFilter); }
java
public void filterClasspathElements(final ClasspathElementFilter classpathElementFilter) { if (this.classpathElementFilters == null) { this.classpathElementFilters = new ArrayList<>(2); } this.classpathElementFilters.add(classpathElementFilter); }
[ "public", "void", "filterClasspathElements", "(", "final", "ClasspathElementFilter", "classpathElementFilter", ")", "{", "if", "(", "this", ".", "classpathElementFilters", "==", "null", ")", "{", "this", ".", "classpathElementFilters", "=", "new", "ArrayList", "<>", ...
Add a classpath element filter. The provided ClasspathElementFilter should return true if the path string passed to it is a path you want to scan. @param classpathElementFilter The classpath element filter to apply to all discovered classpath elements, to decide which should be scanned.
[ "Add", "a", "classpath", "element", "filter", ".", "The", "provided", "ClasspathElementFilter", "should", "return", "true", "if", "the", "path", "string", "passed", "to", "it", "is", "a", "path", "you", "want", "to", "scan", "." ]
c8c8b2ca1eb76339f69193fdac33d735c864215c
https://github.com/classgraph/classgraph/blob/c8c8b2ca1eb76339f69193fdac33d735c864215c/src/main/java/nonapi/io/github/classgraph/ScanSpec.java#L270-L275
62,863
classgraph/classgraph
src/main/java/nonapi/io/github/classgraph/ScanSpec.java
ScanSpec.isModuleLayer
private static boolean isModuleLayer(final Object moduleLayer) { if (moduleLayer == null) { throw new IllegalArgumentException("ModuleLayer references must not be null"); } for (Class<?> currClass = moduleLayer.getClass(); currClass != null; currClass = currClass .get...
java
private static boolean isModuleLayer(final Object moduleLayer) { if (moduleLayer == null) { throw new IllegalArgumentException("ModuleLayer references must not be null"); } for (Class<?> currClass = moduleLayer.getClass(); currClass != null; currClass = currClass .get...
[ "private", "static", "boolean", "isModuleLayer", "(", "final", "Object", "moduleLayer", ")", "{", "if", "(", "moduleLayer", "==", "null", ")", "{", "throw", "new", "IllegalArgumentException", "(", "\"ModuleLayer references must not be null\"", ")", ";", "}", "for", ...
Return true if the argument is a ModuleLayer or a subclass of ModuleLayer. @param moduleLayer the module layer @return true if the argument is a ModuleLayer or a subclass of ModuleLayer.
[ "Return", "true", "if", "the", "argument", "is", "a", "ModuleLayer", "or", "a", "subclass", "of", "ModuleLayer", "." ]
c8c8b2ca1eb76339f69193fdac33d735c864215c
https://github.com/classgraph/classgraph/blob/c8c8b2ca1eb76339f69193fdac33d735c864215c/src/main/java/nonapi/io/github/classgraph/ScanSpec.java#L320-L331
62,864
classgraph/classgraph
src/main/java/nonapi/io/github/classgraph/ScanSpec.java
ScanSpec.addModuleLayer
public void addModuleLayer(final Object moduleLayer) { if (!isModuleLayer(moduleLayer)) { throw new IllegalArgumentException("moduleLayer must be of type java.lang.ModuleLayer"); } if (this.addedModuleLayers == null) { this.addedModuleLayers = new ArrayList<>(); }...
java
public void addModuleLayer(final Object moduleLayer) { if (!isModuleLayer(moduleLayer)) { throw new IllegalArgumentException("moduleLayer must be of type java.lang.ModuleLayer"); } if (this.addedModuleLayers == null) { this.addedModuleLayers = new ArrayList<>(); }...
[ "public", "void", "addModuleLayer", "(", "final", "Object", "moduleLayer", ")", "{", "if", "(", "!", "isModuleLayer", "(", "moduleLayer", ")", ")", "{", "throw", "new", "IllegalArgumentException", "(", "\"moduleLayer must be of type java.lang.ModuleLayer\"", ")", ";",...
Add a ModuleLayer to the list of ModuleLayers to scan. Use this method if you define your own ModuleLayer, but the scanning code is not running within that custom ModuleLayer. <p> This call is ignored if it is called before {@link #overrideModuleLayers(Object...)}. @param moduleLayer The additional ModuleLayer to sca...
[ "Add", "a", "ModuleLayer", "to", "the", "list", "of", "ModuleLayers", "to", "scan", ".", "Use", "this", "method", "if", "you", "define", "your", "own", "ModuleLayer", "but", "the", "scanning", "code", "is", "not", "running", "within", "that", "custom", "Mo...
c8c8b2ca1eb76339f69193fdac33d735c864215c
https://github.com/classgraph/classgraph/blob/c8c8b2ca1eb76339f69193fdac33d735c864215c/src/main/java/nonapi/io/github/classgraph/ScanSpec.java#L344-L352
62,865
classgraph/classgraph
src/main/java/nonapi/io/github/classgraph/ScanSpec.java
ScanSpec.log
public void log(final LogNode log) { if (log != null) { final LogNode scanSpecLog = log.log("ScanSpec:"); for (final Field field : ScanSpec.class.getDeclaredFields()) { try { scanSpecLog.log(field.getName() + ": " + field.get(this)); } ...
java
public void log(final LogNode log) { if (log != null) { final LogNode scanSpecLog = log.log("ScanSpec:"); for (final Field field : ScanSpec.class.getDeclaredFields()) { try { scanSpecLog.log(field.getName() + ": " + field.get(this)); } ...
[ "public", "void", "log", "(", "final", "LogNode", "log", ")", "{", "if", "(", "log", "!=", "null", ")", "{", "final", "LogNode", "scanSpecLog", "=", "log", ".", "log", "(", "\"ScanSpec:\"", ")", ";", "for", "(", "final", "Field", "field", ":", "ScanS...
Write to log. @param log The {@link LogNode} to log to.
[ "Write", "to", "log", "." ]
c8c8b2ca1eb76339f69193fdac33d735c864215c
https://github.com/classgraph/classgraph/blob/c8c8b2ca1eb76339f69193fdac33d735c864215c/src/main/java/nonapi/io/github/classgraph/ScanSpec.java#L493-L504
62,866
classgraph/classgraph
src/main/java/nonapi/io/github/classgraph/classpath/CallStackReader.java
CallStackReader.getCallStackViaSecurityManager
private static Class<?>[] getCallStackViaSecurityManager(final LogNode log) { try { return new CallerResolver().getClassContext(); } catch (final SecurityException e) { // Creating a SecurityManager can fail if the current SecurityManager does not allow // RuntimePerm...
java
private static Class<?>[] getCallStackViaSecurityManager(final LogNode log) { try { return new CallerResolver().getClassContext(); } catch (final SecurityException e) { // Creating a SecurityManager can fail if the current SecurityManager does not allow // RuntimePerm...
[ "private", "static", "Class", "<", "?", ">", "[", "]", "getCallStackViaSecurityManager", "(", "final", "LogNode", "log", ")", "{", "try", "{", "return", "new", "CallerResolver", "(", ")", ".", "getClassContext", "(", ")", ";", "}", "catch", "(", "final", ...
Get the call stack via the SecurityManager API. @param log the log @return the call stack.
[ "Get", "the", "call", "stack", "via", "the", "SecurityManager", "API", "." ]
c8c8b2ca1eb76339f69193fdac33d735c864215c
https://github.com/classgraph/classgraph/blob/c8c8b2ca1eb76339f69193fdac33d735c864215c/src/main/java/nonapi/io/github/classgraph/classpath/CallStackReader.java#L121-L132
62,867
classgraph/classgraph
src/main/java/nonapi/io/github/classgraph/classpath/CallStackReader.java
CallStackReader.getClassContext
static Class<?>[] getClassContext(final LogNode log) { // For JRE 9+, use StackWalker to get call stack. // N.B. need to work around StackWalker bug fixed in JDK 13, and backported to 12.0.2 and 11.0.4 // (probably introduced in JDK 9, when StackWalker was introduced): // https://github....
java
static Class<?>[] getClassContext(final LogNode log) { // For JRE 9+, use StackWalker to get call stack. // N.B. need to work around StackWalker bug fixed in JDK 13, and backported to 12.0.2 and 11.0.4 // (probably introduced in JDK 9, when StackWalker was introduced): // https://github....
[ "static", "Class", "<", "?", ">", "[", "]", "getClassContext", "(", "final", "LogNode", "log", ")", "{", "// For JRE 9+, use StackWalker to get call stack.", "// N.B. need to work around StackWalker bug fixed in JDK 13, and backported to 12.0.2 and 11.0.4", "// (probably introduced i...
Get the class context. @param log the log @return The classes in the call stack.
[ "Get", "the", "class", "context", "." ]
c8c8b2ca1eb76339f69193fdac33d735c864215c
https://github.com/classgraph/classgraph/blob/c8c8b2ca1eb76339f69193fdac33d735c864215c/src/main/java/nonapi/io/github/classgraph/classpath/CallStackReader.java#L143-L204
62,868
classgraph/classgraph
src/main/java/nonapi/io/github/classgraph/concurrency/SingletonMap.java
SingletonMap.values
public List<V> values() throws InterruptedException { final List<V> entries = new ArrayList<>(map.size()); for (final Entry<K, SingletonHolder<V>> ent : map.entrySet()) { final V entryValue = ent.getValue().get(); if (entryValue != null) { entries.add(entryValue);...
java
public List<V> values() throws InterruptedException { final List<V> entries = new ArrayList<>(map.size()); for (final Entry<K, SingletonHolder<V>> ent : map.entrySet()) { final V entryValue = ent.getValue().get(); if (entryValue != null) { entries.add(entryValue);...
[ "public", "List", "<", "V", ">", "values", "(", ")", "throws", "InterruptedException", "{", "final", "List", "<", "V", ">", "entries", "=", "new", "ArrayList", "<>", "(", "map", ".", "size", "(", ")", ")", ";", "for", "(", "final", "Entry", "<", "K...
Get all valid singleton values in the map. @return the singleton values in the map, skipping over any value for which newInstance() threw an exception or returned null. @throws InterruptedException If getting the values was interrupted.
[ "Get", "all", "valid", "singleton", "values", "in", "the", "map", "." ]
c8c8b2ca1eb76339f69193fdac33d735c864215c
https://github.com/classgraph/classgraph/blob/c8c8b2ca1eb76339f69193fdac33d735c864215c/src/main/java/nonapi/io/github/classgraph/concurrency/SingletonMap.java#L212-L221
62,869
classgraph/classgraph
src/main/java/io/github/classgraph/ClasspathElement.java
ClasspathElement.checkResourcePathWhiteBlackList
protected void checkResourcePathWhiteBlackList(final String relativePath, final LogNode log) { // Whitelist/blacklist classpath elements based on file resource paths if (!scanSpec.classpathElementResourcePathWhiteBlackList.whitelistAndBlacklistAreEmpty()) { if (scanSpec.classpathElementResou...
java
protected void checkResourcePathWhiteBlackList(final String relativePath, final LogNode log) { // Whitelist/blacklist classpath elements based on file resource paths if (!scanSpec.classpathElementResourcePathWhiteBlackList.whitelistAndBlacklistAreEmpty()) { if (scanSpec.classpathElementResou...
[ "protected", "void", "checkResourcePathWhiteBlackList", "(", "final", "String", "relativePath", ",", "final", "LogNode", "log", ")", "{", "// Whitelist/blacklist classpath elements based on file resource paths", "if", "(", "!", "scanSpec", ".", "classpathElementResourcePathWhit...
Check relativePath against classpathElementResourcePathWhiteBlackList. @param relativePath the relative path @param log the log
[ "Check", "relativePath", "against", "classpathElementResourcePathWhiteBlackList", "." ]
c8c8b2ca1eb76339f69193fdac33d735c864215c
https://github.com/classgraph/classgraph/blob/c8c8b2ca1eb76339f69193fdac33d735c864215c/src/main/java/io/github/classgraph/ClasspathElement.java#L153-L171
62,870
classgraph/classgraph
src/main/java/io/github/classgraph/ClasspathElement.java
ClasspathElement.addWhitelistedResource
protected void addWhitelistedResource(final Resource resource, final ScanSpecPathMatch parentMatchStatus, final LogNode log) { final String path = resource.getPath(); final boolean isClassFile = FileUtils.isClassfile(path); boolean isWhitelisted = false; if (isClassFile) { ...
java
protected void addWhitelistedResource(final Resource resource, final ScanSpecPathMatch parentMatchStatus, final LogNode log) { final String path = resource.getPath(); final boolean isClassFile = FileUtils.isClassfile(path); boolean isWhitelisted = false; if (isClassFile) { ...
[ "protected", "void", "addWhitelistedResource", "(", "final", "Resource", "resource", ",", "final", "ScanSpecPathMatch", "parentMatchStatus", ",", "final", "LogNode", "log", ")", "{", "final", "String", "path", "=", "resource", ".", "getPath", "(", ")", ";", "fin...
Add a resource discovered during the scan. @param resource the resource @param parentMatchStatus the parent match status @param log the log
[ "Add", "a", "resource", "discovered", "during", "the", "scan", "." ]
c8c8b2ca1eb76339f69193fdac33d735c864215c
https://github.com/classgraph/classgraph/blob/c8c8b2ca1eb76339f69193fdac33d735c864215c/src/main/java/io/github/classgraph/ClasspathElement.java#L239-L284
62,871
classgraph/classgraph
src/main/java/io/github/classgraph/ModuleInfo.java
ModuleInfo.getLocation
public URI getLocation() { if (locationURI == null) { locationURI = moduleRef != null ? moduleRef.getLocation() : null; if (locationURI == null) { locationURI = classpathElement.getURI(); } } return locationURI; }
java
public URI getLocation() { if (locationURI == null) { locationURI = moduleRef != null ? moduleRef.getLocation() : null; if (locationURI == null) { locationURI = classpathElement.getURI(); } } return locationURI; }
[ "public", "URI", "getLocation", "(", ")", "{", "if", "(", "locationURI", "==", "null", ")", "{", "locationURI", "=", "moduleRef", "!=", "null", "?", "moduleRef", ".", "getLocation", "(", ")", ":", "null", ";", "if", "(", "locationURI", "==", "null", ")...
The module location, or null for modules whose location is unknown. @return the module location, or null for modules whose location is unknown.
[ "The", "module", "location", "or", "null", "for", "modules", "whose", "location", "is", "unknown", "." ]
c8c8b2ca1eb76339f69193fdac33d735c864215c
https://github.com/classgraph/classgraph/blob/c8c8b2ca1eb76339f69193fdac33d735c864215c/src/main/java/io/github/classgraph/ModuleInfo.java#L96-L104
62,872
classgraph/classgraph
src/main/java/io/github/classgraph/ModuleInfo.java
ModuleInfo.addAnnotations
void addAnnotations(final AnnotationInfoList moduleAnnotations) { // Currently only class annotations are used in the module-info.class file if (moduleAnnotations != null && !moduleAnnotations.isEmpty()) { if (this.annotationInfo == null) { this.annotationInfo = new Annotatio...
java
void addAnnotations(final AnnotationInfoList moduleAnnotations) { // Currently only class annotations are used in the module-info.class file if (moduleAnnotations != null && !moduleAnnotations.isEmpty()) { if (this.annotationInfo == null) { this.annotationInfo = new Annotatio...
[ "void", "addAnnotations", "(", "final", "AnnotationInfoList", "moduleAnnotations", ")", "{", "// Currently only class annotations are used in the module-info.class file", "if", "(", "moduleAnnotations", "!=", "null", "&&", "!", "moduleAnnotations", ".", "isEmpty", "(", ")", ...
Add annotations found in a module descriptor classfile. @param moduleAnnotations the module annotations
[ "Add", "annotations", "found", "in", "a", "module", "descriptor", "classfile", "." ]
c8c8b2ca1eb76339f69193fdac33d735c864215c
https://github.com/classgraph/classgraph/blob/c8c8b2ca1eb76339f69193fdac33d735c864215c/src/main/java/io/github/classgraph/ModuleInfo.java#L217-L226
62,873
classgraph/classgraph
src/main/java/io/github/classgraph/TypeVariableSignature.java
TypeVariableSignature.parse
static TypeVariableSignature parse(final Parser parser, final String definingClassName) throws ParseException { final char peek = parser.peek(); if (peek == 'T') { parser.next(); if (!TypeUtils.getIdentifierToken(parser)) { throw new ParseException(parser, "Could ...
java
static TypeVariableSignature parse(final Parser parser, final String definingClassName) throws ParseException { final char peek = parser.peek(); if (peek == 'T') { parser.next(); if (!TypeUtils.getIdentifierToken(parser)) { throw new ParseException(parser, "Could ...
[ "static", "TypeVariableSignature", "parse", "(", "final", "Parser", "parser", ",", "final", "String", "definingClassName", ")", "throws", "ParseException", "{", "final", "char", "peek", "=", "parser", ".", "peek", "(", ")", ";", "if", "(", "peek", "==", "'",...
Parse a TypeVariableSignature. @param parser the parser @param definingClassName the defining class name @return the type variable signature @throws ParseException if parsing fails
[ "Parse", "a", "TypeVariableSignature", "." ]
c8c8b2ca1eb76339f69193fdac33d735c864215c
https://github.com/classgraph/classgraph/blob/c8c8b2ca1eb76339f69193fdac33d735c864215c/src/main/java/io/github/classgraph/TypeVariableSignature.java#L128-L152
62,874
classgraph/classgraph
src/main/java/nonapi/io/github/classgraph/utils/LogNode.java
LogNode.logJavaInfo
private void logJavaInfo() { log("Operating system: " + VersionFinder.getProperty("os.name") + " " + VersionFinder.getProperty("os.version") + " " + VersionFinder.getProperty("os.arch")); log("Java version: " + VersionFinder.getProperty("java.version") + " / " + VersionFi...
java
private void logJavaInfo() { log("Operating system: " + VersionFinder.getProperty("os.name") + " " + VersionFinder.getProperty("os.version") + " " + VersionFinder.getProperty("os.arch")); log("Java version: " + VersionFinder.getProperty("java.version") + " / " + VersionFi...
[ "private", "void", "logJavaInfo", "(", ")", "{", "log", "(", "\"Operating system: \"", "+", "VersionFinder", ".", "getProperty", "(", "\"os.name\"", ")", "+", "\" \"", "+", "VersionFinder", ".", "getProperty", "(", "\"os.version\"", ")", "+", "\" \"", "+", "Ve...
Log the Java version and the JRE paths that were found.
[ "Log", "the", "Java", "version", "and", "the", "JRE", "paths", "that", "were", "found", "." ]
c8c8b2ca1eb76339f69193fdac33d735c864215c
https://github.com/classgraph/classgraph/blob/c8c8b2ca1eb76339f69193fdac33d735c864215c/src/main/java/nonapi/io/github/classgraph/utils/LogNode.java#L147-L158
62,875
classgraph/classgraph
src/main/java/nonapi/io/github/classgraph/utils/LogNode.java
LogNode.appendLine
private void appendLine(final String timeStampStr, final int indentLevel, final String line, final StringBuilder buf) { buf.append(timeStampStr); buf.append('\t'); buf.append(ClassGraph.class.getSimpleName()); buf.append('\t'); final int numDashes = 2 * (indentLevel -...
java
private void appendLine(final String timeStampStr, final int indentLevel, final String line, final StringBuilder buf) { buf.append(timeStampStr); buf.append('\t'); buf.append(ClassGraph.class.getSimpleName()); buf.append('\t'); final int numDashes = 2 * (indentLevel -...
[ "private", "void", "appendLine", "(", "final", "String", "timeStampStr", ",", "final", "int", "indentLevel", ",", "final", "String", "line", ",", "final", "StringBuilder", "buf", ")", "{", "buf", ".", "append", "(", "timeStampStr", ")", ";", "buf", ".", "a...
Append a line to the log output, indenting this log entry according to tree structure. @param timeStampStr the timestamp string @param indentLevel the indent level @param line the line to log @param buf the buf
[ "Append", "a", "line", "to", "the", "log", "output", "indenting", "this", "log", "entry", "according", "to", "tree", "structure", "." ]
c8c8b2ca1eb76339f69193fdac33d735c864215c
https://github.com/classgraph/classgraph/blob/c8c8b2ca1eb76339f69193fdac33d735c864215c/src/main/java/nonapi/io/github/classgraph/utils/LogNode.java#L172-L187
62,876
classgraph/classgraph
src/main/java/nonapi/io/github/classgraph/utils/LogNode.java
LogNode.addChild
private LogNode addChild(final String sortKey, final String msg, final long elapsedTimeNanos, final Throwable exception) { final String newSortKey = sortKeyPrefix + "\t" + (sortKey == null ? "" : sortKey) + "\t" + String.format("%09d", sortKeyUniqueSuffix.getAndIncrement()); ...
java
private LogNode addChild(final String sortKey, final String msg, final long elapsedTimeNanos, final Throwable exception) { final String newSortKey = sortKeyPrefix + "\t" + (sortKey == null ? "" : sortKey) + "\t" + String.format("%09d", sortKeyUniqueSuffix.getAndIncrement()); ...
[ "private", "LogNode", "addChild", "(", "final", "String", "sortKey", ",", "final", "String", "msg", ",", "final", "long", "elapsedTimeNanos", ",", "final", "Throwable", "exception", ")", "{", "final", "String", "newSortKey", "=", "sortKeyPrefix", "+", "\"\\t\"",...
Add a child log node. @param sortKey the sort key @param msg the log message @param elapsedTimeNanos the elapsed time in nanos @param exception the exception that was thrown @return the log node
[ "Add", "a", "child", "log", "node", "." ]
c8c8b2ca1eb76339f69193fdac33d735c864215c
https://github.com/classgraph/classgraph/blob/c8c8b2ca1eb76339f69193fdac33d735c864215c/src/main/java/nonapi/io/github/classgraph/utils/LogNode.java#L261-L271
62,877
classgraph/classgraph
src/main/java/nonapi/io/github/classgraph/utils/LogNode.java
LogNode.addChild
private LogNode addChild(final String sortKey, final String msg, final long elapsedTimeNanos) { return addChild(sortKey, msg, elapsedTimeNanos, null); }
java
private LogNode addChild(final String sortKey, final String msg, final long elapsedTimeNanos) { return addChild(sortKey, msg, elapsedTimeNanos, null); }
[ "private", "LogNode", "addChild", "(", "final", "String", "sortKey", ",", "final", "String", "msg", ",", "final", "long", "elapsedTimeNanos", ")", "{", "return", "addChild", "(", "sortKey", ",", "msg", ",", "elapsedTimeNanos", ",", "null", ")", ";", "}" ]
Add a child log node for a message. @param sortKey the sort key @param msg the log message @param elapsedTimeNanos the elapsed time in nanos @return the log node
[ "Add", "a", "child", "log", "node", "for", "a", "message", "." ]
c8c8b2ca1eb76339f69193fdac33d735c864215c
https://github.com/classgraph/classgraph/blob/c8c8b2ca1eb76339f69193fdac33d735c864215c/src/main/java/nonapi/io/github/classgraph/utils/LogNode.java#L284-L286
62,878
classgraph/classgraph
src/main/java/nonapi/io/github/classgraph/utils/LogNode.java
LogNode.log
public LogNode log(final String sortKey, final String msg, final long elapsedTimeNanos) { return addChild(sortKey, msg, elapsedTimeNanos); }
java
public LogNode log(final String sortKey, final String msg, final long elapsedTimeNanos) { return addChild(sortKey, msg, elapsedTimeNanos); }
[ "public", "LogNode", "log", "(", "final", "String", "sortKey", ",", "final", "String", "msg", ",", "final", "long", "elapsedTimeNanos", ")", "{", "return", "addChild", "(", "sortKey", ",", "msg", ",", "elapsedTimeNanos", ")", ";", "}" ]
Add a log entry with sort key for deterministic ordering. @param sortKey The sort key for the log entry. @param msg The message. @param elapsedTimeNanos The elapsed time. @return a child log node, which can be used to add sub-entries.
[ "Add", "a", "log", "entry", "with", "sort", "key", "for", "deterministic", "ordering", "." ]
c8c8b2ca1eb76339f69193fdac33d735c864215c
https://github.com/classgraph/classgraph/blob/c8c8b2ca1eb76339f69193fdac33d735c864215c/src/main/java/nonapi/io/github/classgraph/utils/LogNode.java#L327-L329
62,879
classgraph/classgraph
src/main/java/nonapi/io/github/classgraph/utils/LogNode.java
LogNode.log
public LogNode log(final String msg, final Throwable e) { return addChild("", msg, -1L).addChild(e); }
java
public LogNode log(final String msg, final Throwable e) { return addChild("", msg, -1L).addChild(e); }
[ "public", "LogNode", "log", "(", "final", "String", "msg", ",", "final", "Throwable", "e", ")", "{", "return", "addChild", "(", "\"\"", ",", "msg", ",", "-", "1L", ")", ".", "addChild", "(", "e", ")", ";", "}" ]
Add a log entry. @param msg The message. @param e The {@link Throwable} that was thrown. @return a child log node, which can be used to add sub-entries.
[ "Add", "a", "log", "entry", "." ]
c8c8b2ca1eb76339f69193fdac33d735c864215c
https://github.com/classgraph/classgraph/blob/c8c8b2ca1eb76339f69193fdac33d735c864215c/src/main/java/nonapi/io/github/classgraph/utils/LogNode.java#L396-L398
62,880
classgraph/classgraph
src/main/java/nonapi/io/github/classgraph/utils/LogNode.java
LogNode.log
public LogNode log(final Collection<String> msgs) { LogNode last = null; for (final String m : msgs) { last = log(m); } return last; }
java
public LogNode log(final Collection<String> msgs) { LogNode last = null; for (final String m : msgs) { last = log(m); } return last; }
[ "public", "LogNode", "log", "(", "final", "Collection", "<", "String", ">", "msgs", ")", "{", "LogNode", "last", "=", "null", ";", "for", "(", "final", "String", "m", ":", "msgs", ")", "{", "last", "=", "log", "(", "m", ")", ";", "}", "return", "...
Add a series of log entries. Returns the last LogNode created. @param msgs The messages. @return the last log node created, which can be used to add sub-entries.
[ "Add", "a", "series", "of", "log", "entries", ".", "Returns", "the", "last", "LogNode", "created", "." ]
c8c8b2ca1eb76339f69193fdac33d735c864215c
https://github.com/classgraph/classgraph/blob/c8c8b2ca1eb76339f69193fdac33d735c864215c/src/main/java/nonapi/io/github/classgraph/utils/LogNode.java#L418-L424
62,881
classgraph/classgraph
src/main/java/nonapi/io/github/classgraph/utils/LogNode.java
LogNode.flush
public void flush() { if (parent != null) { throw new IllegalArgumentException("Only flush the toplevel LogNode"); } if (!children.isEmpty()) { final String logOutput = this.toString(); this.children.clear(); log.info(logOutput); } }
java
public void flush() { if (parent != null) { throw new IllegalArgumentException("Only flush the toplevel LogNode"); } if (!children.isEmpty()) { final String logOutput = this.toString(); this.children.clear(); log.info(logOutput); } }
[ "public", "void", "flush", "(", ")", "{", "if", "(", "parent", "!=", "null", ")", "{", "throw", "new", "IllegalArgumentException", "(", "\"Only flush the toplevel LogNode\"", ")", ";", "}", "if", "(", "!", "children", ".", "isEmpty", "(", ")", ")", "{", ...
Flush out the log to stderr, and clear the log contents. Only call this on the toplevel log node, when threads do not have access to references of internal log nodes so that they cannot add more log entries inside the tree, otherwise log entries may be lost.
[ "Flush", "out", "the", "log", "to", "stderr", "and", "clear", "the", "log", "contents", ".", "Only", "call", "this", "on", "the", "toplevel", "log", "node", "when", "threads", "do", "not", "have", "access", "to", "references", "of", "internal", "log", "n...
c8c8b2ca1eb76339f69193fdac33d735c864215c
https://github.com/classgraph/classgraph/blob/c8c8b2ca1eb76339f69193fdac33d735c864215c/src/main/java/nonapi/io/github/classgraph/utils/LogNode.java#L442-L451
62,882
classgraph/classgraph
src/main/java/nonapi/io/github/classgraph/concurrency/InterruptionChecker.java
InterruptionChecker.checkAndReturn
public boolean checkAndReturn() { // Check if any thread has been interrupted if (interrupted.get()) { // If so, interrupt this thread interrupt(); return true; } // Check if this thread has been interrupted if (Thread.currentThread().isInterru...
java
public boolean checkAndReturn() { // Check if any thread has been interrupted if (interrupted.get()) { // If so, interrupt this thread interrupt(); return true; } // Check if this thread has been interrupted if (Thread.currentThread().isInterru...
[ "public", "boolean", "checkAndReturn", "(", ")", "{", "// Check if any thread has been interrupted", "if", "(", "interrupted", ".", "get", "(", ")", ")", "{", "// If so, interrupt this thread", "interrupt", "(", ")", ";", "return", "true", ";", "}", "// Check if thi...
Check for interruption and return interruption status. @return true if this thread or any other thread that shares this InterruptionChecker instance has been interrupted or has thrown an exception.
[ "Check", "for", "interruption", "and", "return", "interruption", "status", "." ]
c8c8b2ca1eb76339f69193fdac33d735c864215c
https://github.com/classgraph/classgraph/blob/c8c8b2ca1eb76339f69193fdac33d735c864215c/src/main/java/nonapi/io/github/classgraph/concurrency/InterruptionChecker.java#L97-L111
62,883
classgraph/classgraph
src/main/java/nonapi/io/github/classgraph/concurrency/InterruptionChecker.java
InterruptionChecker.check
public void check() throws InterruptedException, ExecutionException { // If a thread threw an uncaught exception, re-throw it. final ExecutionException executionException = getExecutionException(); if (executionException != null) { throw executionException; } // If th...
java
public void check() throws InterruptedException, ExecutionException { // If a thread threw an uncaught exception, re-throw it. final ExecutionException executionException = getExecutionException(); if (executionException != null) { throw executionException; } // If th...
[ "public", "void", "check", "(", ")", "throws", "InterruptedException", ",", "ExecutionException", "{", "// If a thread threw an uncaught exception, re-throw it.", "final", "ExecutionException", "executionException", "=", "getExecutionException", "(", ")", ";", "if", "(", "e...
Check if this thread or any other thread that shares this InterruptionChecker instance has been interrupted or has thrown an exception, and if so, throw InterruptedException. @throws InterruptedException If a thread has been interrupted. @throws ExecutionException if a thread has thrown an uncaught exception.
[ "Check", "if", "this", "thread", "or", "any", "other", "thread", "that", "shares", "this", "InterruptionChecker", "instance", "has", "been", "interrupted", "or", "has", "thrown", "an", "exception", "and", "if", "so", "throw", "InterruptedException", "." ]
c8c8b2ca1eb76339f69193fdac33d735c864215c
https://github.com/classgraph/classgraph/blob/c8c8b2ca1eb76339f69193fdac33d735c864215c/src/main/java/nonapi/io/github/classgraph/concurrency/InterruptionChecker.java#L122-L132
62,884
classgraph/classgraph
src/main/java/io/github/classgraph/ModuleRef.java
ModuleRef.isSystemModule
public boolean isSystemModule() { if (name == null || name.isEmpty()) { return false; } return name.startsWith("java.") || name.startsWith("jdk.") || name.startsWith("javafx.") || name.startsWith("oracle."); }
java
public boolean isSystemModule() { if (name == null || name.isEmpty()) { return false; } return name.startsWith("java.") || name.startsWith("jdk.") || name.startsWith("javafx.") || name.startsWith("oracle."); }
[ "public", "boolean", "isSystemModule", "(", ")", "{", "if", "(", "name", "==", "null", "||", "name", ".", "isEmpty", "(", ")", ")", "{", "return", "false", ";", "}", "return", "name", ".", "startsWith", "(", "\"java.\"", ")", "||", "name", ".", "star...
Checks if this module is a system module. @return true if this module is a system module.
[ "Checks", "if", "this", "module", "is", "a", "system", "module", "." ]
c8c8b2ca1eb76339f69193fdac33d735c864215c
https://github.com/classgraph/classgraph/blob/c8c8b2ca1eb76339f69193fdac33d735c864215c/src/main/java/io/github/classgraph/ModuleRef.java#L245-L251
62,885
classgraph/classgraph
src/main/java/io/github/classgraph/MethodTypeSignature.java
MethodTypeSignature.parse
static MethodTypeSignature parse(final String typeDescriptor, final String definingClassName) throws ParseException { if (typeDescriptor.equals("<init>")) { // Special case for instance initialization method signatures in a CONSTANT_NameAndType_info structure: // https://docs...
java
static MethodTypeSignature parse(final String typeDescriptor, final String definingClassName) throws ParseException { if (typeDescriptor.equals("<init>")) { // Special case for instance initialization method signatures in a CONSTANT_NameAndType_info structure: // https://docs...
[ "static", "MethodTypeSignature", "parse", "(", "final", "String", "typeDescriptor", ",", "final", "String", "definingClassName", ")", "throws", "ParseException", "{", "if", "(", "typeDescriptor", ".", "equals", "(", "\"<init>\"", ")", ")", "{", "// Special case for ...
Parse a method signature. @param typeDescriptor The type descriptor of the method. @param definingClassName The name of the defining class (for resolving type variables). @return The parsed method type signature. @throws ParseException If method type signature could not be parsed.
[ "Parse", "a", "method", "signature", "." ]
c8c8b2ca1eb76339f69193fdac33d735c864215c
https://github.com/classgraph/classgraph/blob/c8c8b2ca1eb76339f69193fdac33d735c864215c/src/main/java/io/github/classgraph/MethodTypeSignature.java#L131-L196
62,886
classgraph/classgraph
src/main/java/nonapi/io/github/classgraph/json/JSONArray.java
JSONArray.toJSONString
void toJSONString(final Map<ReferenceEqualityKey<JSONReference>, CharSequence> jsonReferenceToId, final boolean includeNullValuedFields, final int depth, final int indentWidth, final StringBuilder buf) { final boolean prettyPrint = indentWidth > 0; final int n = items.size(); ...
java
void toJSONString(final Map<ReferenceEqualityKey<JSONReference>, CharSequence> jsonReferenceToId, final boolean includeNullValuedFields, final int depth, final int indentWidth, final StringBuilder buf) { final boolean prettyPrint = indentWidth > 0; final int n = items.size(); ...
[ "void", "toJSONString", "(", "final", "Map", "<", "ReferenceEqualityKey", "<", "JSONReference", ">", ",", "CharSequence", ">", "jsonReferenceToId", ",", "final", "boolean", "includeNullValuedFields", ",", "final", "int", "depth", ",", "final", "int", "indentWidth", ...
Serialize this JSONArray to a string. @param jsonReferenceToId the map from json reference to id @param includeNullValuedFields whether to include null-valued fields @param depth the nesting depth @param indentWidth the indent width @param buf the buf
[ "Serialize", "this", "JSONArray", "to", "a", "string", "." ]
c8c8b2ca1eb76339f69193fdac33d735c864215c
https://github.com/classgraph/classgraph/blob/c8c8b2ca1eb76339f69193fdac33d735c864215c/src/main/java/nonapi/io/github/classgraph/json/JSONArray.java#L71-L102
62,887
classgraph/classgraph
src/main/java/io/github/classgraph/ClassInfo.java
ClassInfo.addRelatedClass
boolean addRelatedClass(final RelType relType, final ClassInfo classInfo) { Set<ClassInfo> classInfoSet = relatedClasses.get(relType); if (classInfoSet == null) { relatedClasses.put(relType, classInfoSet = new LinkedHashSet<>(4)); } return classInfoSet.add(classInfo); }
java
boolean addRelatedClass(final RelType relType, final ClassInfo classInfo) { Set<ClassInfo> classInfoSet = relatedClasses.get(relType); if (classInfoSet == null) { relatedClasses.put(relType, classInfoSet = new LinkedHashSet<>(4)); } return classInfoSet.add(classInfo); }
[ "boolean", "addRelatedClass", "(", "final", "RelType", "relType", ",", "final", "ClassInfo", "classInfo", ")", "{", "Set", "<", "ClassInfo", ">", "classInfoSet", "=", "relatedClasses", ".", "get", "(", "relType", ")", ";", "if", "(", "classInfoSet", "==", "n...
Add a class with a given relationship type. Return whether the collection changed as a result of the call. @param relType the {@link RelType} @param classInfo the {@link ClassInfo} @return true, if successful
[ "Add", "a", "class", "with", "a", "given", "relationship", "type", ".", "Return", "whether", "the", "collection", "changed", "as", "a", "result", "of", "the", "call", "." ]
c8c8b2ca1eb76339f69193fdac33d735c864215c
https://github.com/classgraph/classgraph/blob/c8c8b2ca1eb76339f69193fdac33d735c864215c/src/main/java/io/github/classgraph/ClassInfo.java#L287-L293
62,888
classgraph/classgraph
src/main/java/io/github/classgraph/ClassInfo.java
ClassInfo.getOrCreateClassInfo
static ClassInfo getOrCreateClassInfo(final String className, final int classModifiers, final Map<String, ClassInfo> classNameToClassInfo) { ClassInfo classInfo = classNameToClassInfo.get(className); if (classInfo == null) { classNameToClassInfo.put(className, ...
java
static ClassInfo getOrCreateClassInfo(final String className, final int classModifiers, final Map<String, ClassInfo> classNameToClassInfo) { ClassInfo classInfo = classNameToClassInfo.get(className); if (classInfo == null) { classNameToClassInfo.put(className, ...
[ "static", "ClassInfo", "getOrCreateClassInfo", "(", "final", "String", "className", ",", "final", "int", "classModifiers", ",", "final", "Map", "<", "String", ",", "ClassInfo", ">", "classNameToClassInfo", ")", "{", "ClassInfo", "classInfo", "=", "classNameToClassIn...
Get a ClassInfo object, or create it if it doesn't exist. N.B. not threadsafe, so ClassInfo objects should only ever be constructed by a single thread. @param className the class name @param classModifiers the class modifiers @param classNameToClassInfo the map from class name to class info @return the or create class...
[ "Get", "a", "ClassInfo", "object", "or", "create", "it", "if", "it", "doesn", "t", "exist", ".", "N", ".", "B", ".", "not", "threadsafe", "so", "ClassInfo", "objects", "should", "only", "ever", "be", "constructed", "by", "a", "single", "thread", "." ]
c8c8b2ca1eb76339f69193fdac33d735c864215c
https://github.com/classgraph/classgraph/blob/c8c8b2ca1eb76339f69193fdac33d735c864215c/src/main/java/io/github/classgraph/ClassInfo.java#L309-L318
62,889
classgraph/classgraph
src/main/java/io/github/classgraph/ClassInfo.java
ClassInfo.setModifiers
void setModifiers(final int modifiers) { this.modifiers |= modifiers; if ((modifiers & ANNOTATION_CLASS_MODIFIER) != 0) { this.isAnnotation = true; } if ((modifiers & Modifier.INTERFACE) != 0) { this.isInterface = true; } }
java
void setModifiers(final int modifiers) { this.modifiers |= modifiers; if ((modifiers & ANNOTATION_CLASS_MODIFIER) != 0) { this.isAnnotation = true; } if ((modifiers & Modifier.INTERFACE) != 0) { this.isInterface = true; } }
[ "void", "setModifiers", "(", "final", "int", "modifiers", ")", "{", "this", ".", "modifiers", "|=", "modifiers", ";", "if", "(", "(", "modifiers", "&", "ANNOTATION_CLASS_MODIFIER", ")", "!=", "0", ")", "{", "this", ".", "isAnnotation", "=", "true", ";", ...
Set class modifiers. @param modifiers the class modifiers
[ "Set", "class", "modifiers", "." ]
c8c8b2ca1eb76339f69193fdac33d735c864215c
https://github.com/classgraph/classgraph/blob/c8c8b2ca1eb76339f69193fdac33d735c864215c/src/main/java/io/github/classgraph/ClassInfo.java#L326-L334
62,890
classgraph/classgraph
src/main/java/io/github/classgraph/ClassInfo.java
ClassInfo.addSuperclass
void addSuperclass(final String superclassName, final Map<String, ClassInfo> classNameToClassInfo) { if (superclassName != null && !superclassName.equals("java.lang.Object")) { final ClassInfo superclassClassInfo = getOrCreateClassInfo(superclassName, /* classModifiers = */ 0, cl...
java
void addSuperclass(final String superclassName, final Map<String, ClassInfo> classNameToClassInfo) { if (superclassName != null && !superclassName.equals("java.lang.Object")) { final ClassInfo superclassClassInfo = getOrCreateClassInfo(superclassName, /* classModifiers = */ 0, cl...
[ "void", "addSuperclass", "(", "final", "String", "superclassName", ",", "final", "Map", "<", "String", ",", "ClassInfo", ">", "classNameToClassInfo", ")", "{", "if", "(", "superclassName", "!=", "null", "&&", "!", "superclassName", ".", "equals", "(", "\"java....
Add a superclass to this class. @param superclassName the superclass name @param classNameToClassInfo the map from class name to class info
[ "Add", "a", "superclass", "to", "this", "class", "." ]
c8c8b2ca1eb76339f69193fdac33d735c864215c
https://github.com/classgraph/classgraph/blob/c8c8b2ca1eb76339f69193fdac33d735c864215c/src/main/java/io/github/classgraph/ClassInfo.java#L366-L373
62,891
classgraph/classgraph
src/main/java/io/github/classgraph/ClassInfo.java
ClassInfo.addImplementedInterface
void addImplementedInterface(final String interfaceName, final Map<String, ClassInfo> classNameToClassInfo) { final ClassInfo interfaceClassInfo = getOrCreateClassInfo(interfaceName, /* classModifiers = */ Modifier.INTERFACE, classNameToClassInfo); interfaceClassInfo.isInterface = true; ...
java
void addImplementedInterface(final String interfaceName, final Map<String, ClassInfo> classNameToClassInfo) { final ClassInfo interfaceClassInfo = getOrCreateClassInfo(interfaceName, /* classModifiers = */ Modifier.INTERFACE, classNameToClassInfo); interfaceClassInfo.isInterface = true; ...
[ "void", "addImplementedInterface", "(", "final", "String", "interfaceName", ",", "final", "Map", "<", "String", ",", "ClassInfo", ">", "classNameToClassInfo", ")", "{", "final", "ClassInfo", "interfaceClassInfo", "=", "getOrCreateClassInfo", "(", "interfaceName", ",",...
Add an implemented interface to this class. @param interfaceName the interface name @param classNameToClassInfo the map from class name to class info
[ "Add", "an", "implemented", "interface", "to", "this", "class", "." ]
c8c8b2ca1eb76339f69193fdac33d735c864215c
https://github.com/classgraph/classgraph/blob/c8c8b2ca1eb76339f69193fdac33d735c864215c/src/main/java/io/github/classgraph/ClassInfo.java#L383-L390
62,892
classgraph/classgraph
src/main/java/io/github/classgraph/ClassInfo.java
ClassInfo.addClassContainment
static void addClassContainment(final List<SimpleEntry<String, String>> classContainmentEntries, final Map<String, ClassInfo> classNameToClassInfo) { for (final SimpleEntry<String, String> ent : classContainmentEntries) { final String innerClassName = ent.getKey(); final Clas...
java
static void addClassContainment(final List<SimpleEntry<String, String>> classContainmentEntries, final Map<String, ClassInfo> classNameToClassInfo) { for (final SimpleEntry<String, String> ent : classContainmentEntries) { final String innerClassName = ent.getKey(); final Clas...
[ "static", "void", "addClassContainment", "(", "final", "List", "<", "SimpleEntry", "<", "String", ",", "String", ">", ">", "classContainmentEntries", ",", "final", "Map", "<", "String", ",", "ClassInfo", ">", "classNameToClassInfo", ")", "{", "for", "(", "fina...
Add class containment info. @param classContainmentEntries the class containment entries @param classNameToClassInfo the map from class name to class info
[ "Add", "class", "containment", "info", "." ]
c8c8b2ca1eb76339f69193fdac33d735c864215c
https://github.com/classgraph/classgraph/blob/c8c8b2ca1eb76339f69193fdac33d735c864215c/src/main/java/io/github/classgraph/ClassInfo.java#L400-L412
62,893
classgraph/classgraph
src/main/java/io/github/classgraph/ClassInfo.java
ClassInfo.addClassAnnotation
void addClassAnnotation(final AnnotationInfo classAnnotationInfo, final Map<String, ClassInfo> classNameToClassInfo) { final ClassInfo annotationClassInfo = getOrCreateClassInfo(classAnnotationInfo.getName(), ANNOTATION_CLASS_MODIFIER, classNameToClassInfo); if (this.annotati...
java
void addClassAnnotation(final AnnotationInfo classAnnotationInfo, final Map<String, ClassInfo> classNameToClassInfo) { final ClassInfo annotationClassInfo = getOrCreateClassInfo(classAnnotationInfo.getName(), ANNOTATION_CLASS_MODIFIER, classNameToClassInfo); if (this.annotati...
[ "void", "addClassAnnotation", "(", "final", "AnnotationInfo", "classAnnotationInfo", ",", "final", "Map", "<", "String", ",", "ClassInfo", ">", "classNameToClassInfo", ")", "{", "final", "ClassInfo", "annotationClassInfo", "=", "getOrCreateClassInfo", "(", "classAnnotat...
Add an annotation to this class. @param classAnnotationInfo the class annotation info @param classNameToClassInfo the map from class name to class info
[ "Add", "an", "annotation", "to", "this", "class", "." ]
c8c8b2ca1eb76339f69193fdac33d735c864215c
https://github.com/classgraph/classgraph/blob/c8c8b2ca1eb76339f69193fdac33d735c864215c/src/main/java/io/github/classgraph/ClassInfo.java#L432-L448
62,894
classgraph/classgraph
src/main/java/io/github/classgraph/ClassInfo.java
ClassInfo.addFieldOrMethodAnnotationInfo
private void addFieldOrMethodAnnotationInfo(final AnnotationInfoList annotationInfoList, final boolean isField, final Map<String, ClassInfo> classNameToClassInfo) { if (annotationInfoList != null) { for (final AnnotationInfo fieldAnnotationInfo : annotationInfoList) { fin...
java
private void addFieldOrMethodAnnotationInfo(final AnnotationInfoList annotationInfoList, final boolean isField, final Map<String, ClassInfo> classNameToClassInfo) { if (annotationInfoList != null) { for (final AnnotationInfo fieldAnnotationInfo : annotationInfoList) { fin...
[ "private", "void", "addFieldOrMethodAnnotationInfo", "(", "final", "AnnotationInfoList", "annotationInfoList", ",", "final", "boolean", "isField", ",", "final", "Map", "<", "String", ",", "ClassInfo", ">", "classNameToClassInfo", ")", "{", "if", "(", "annotationInfoLi...
Add field or method annotation cross-links. @param annotationInfoList the annotation info list @param isField the is field @param classNameToClassInfo the map from class name to class info
[ "Add", "field", "or", "method", "annotation", "cross", "-", "links", "." ]
c8c8b2ca1eb76339f69193fdac33d735c864215c
https://github.com/classgraph/classgraph/blob/c8c8b2ca1eb76339f69193fdac33d735c864215c/src/main/java/io/github/classgraph/ClassInfo.java#L460-L474
62,895
classgraph/classgraph
src/main/java/io/github/classgraph/ClassInfo.java
ClassInfo.addFieldInfo
void addFieldInfo(final FieldInfoList fieldInfoList, final Map<String, ClassInfo> classNameToClassInfo) { for (final FieldInfo fi : fieldInfoList) { // Index field annotations addFieldOrMethodAnnotationInfo(fi.annotationInfo, /* isField = */ true, classNameToClassInfo); } ...
java
void addFieldInfo(final FieldInfoList fieldInfoList, final Map<String, ClassInfo> classNameToClassInfo) { for (final FieldInfo fi : fieldInfoList) { // Index field annotations addFieldOrMethodAnnotationInfo(fi.annotationInfo, /* isField = */ true, classNameToClassInfo); } ...
[ "void", "addFieldInfo", "(", "final", "FieldInfoList", "fieldInfoList", ",", "final", "Map", "<", "String", ",", "ClassInfo", ">", "classNameToClassInfo", ")", "{", "for", "(", "final", "FieldInfo", "fi", ":", "fieldInfoList", ")", "{", "// Index field annotations...
Add field info. @param fieldInfoList the field info list @param classNameToClassInfo the map from class name to class info
[ "Add", "field", "info", "." ]
c8c8b2ca1eb76339f69193fdac33d735c864215c
https://github.com/classgraph/classgraph/blob/c8c8b2ca1eb76339f69193fdac33d735c864215c/src/main/java/io/github/classgraph/ClassInfo.java#L484-L494
62,896
classgraph/classgraph
src/main/java/io/github/classgraph/ClassInfo.java
ClassInfo.addMethodInfo
void addMethodInfo(final MethodInfoList methodInfoList, final Map<String, ClassInfo> classNameToClassInfo) { for (final MethodInfo mi : methodInfoList) { // Index method annotations addFieldOrMethodAnnotationInfo(mi.annotationInfo, /* isField = */ false, classNameToClassInfo); ...
java
void addMethodInfo(final MethodInfoList methodInfoList, final Map<String, ClassInfo> classNameToClassInfo) { for (final MethodInfo mi : methodInfoList) { // Index method annotations addFieldOrMethodAnnotationInfo(mi.annotationInfo, /* isField = */ false, classNameToClassInfo); ...
[ "void", "addMethodInfo", "(", "final", "MethodInfoList", "methodInfoList", ",", "final", "Map", "<", "String", ",", "ClassInfo", ">", "classNameToClassInfo", ")", "{", "for", "(", "final", "MethodInfo", "mi", ":", "methodInfoList", ")", "{", "// Index method annot...
Add method info. @param methodInfoList the method info list @param classNameToClassInfo the map from class name to class info
[ "Add", "method", "info", "." ]
c8c8b2ca1eb76339f69193fdac33d735c864215c
https://github.com/classgraph/classgraph/blob/c8c8b2ca1eb76339f69193fdac33d735c864215c/src/main/java/io/github/classgraph/ClassInfo.java#L504-L532
62,897
classgraph/classgraph
src/main/java/io/github/classgraph/ClassInfo.java
ClassInfo.filterClassInfo
private static Set<ClassInfo> filterClassInfo(final Collection<ClassInfo> classes, final ScanSpec scanSpec, final boolean strictWhitelist, final ClassType... classTypes) { if (classes == null) { return Collections.<ClassInfo> emptySet(); } boolean includeAllTypes = classT...
java
private static Set<ClassInfo> filterClassInfo(final Collection<ClassInfo> classes, final ScanSpec scanSpec, final boolean strictWhitelist, final ClassType... classTypes) { if (classes == null) { return Collections.<ClassInfo> emptySet(); } boolean includeAllTypes = classT...
[ "private", "static", "Set", "<", "ClassInfo", ">", "filterClassInfo", "(", "final", "Collection", "<", "ClassInfo", ">", "classes", ",", "final", "ScanSpec", "scanSpec", ",", "final", "boolean", "strictWhitelist", ",", "final", "ClassType", "...", "classTypes", ...
Filter classes according to scan spec and class type. @param classes the classes @param scanSpec the scan spec @param strictWhitelist If true, exclude class if it is is external, blacklisted, or a system class. @param classTypes the class types @return the filtered classes.
[ "Filter", "classes", "according", "to", "scan", "spec", "and", "class", "type", "." ]
c8c8b2ca1eb76339f69193fdac33d735c864215c
https://github.com/classgraph/classgraph/blob/c8c8b2ca1eb76339f69193fdac33d735c864215c/src/main/java/io/github/classgraph/ClassInfo.java#L646-L697
62,898
classgraph/classgraph
src/main/java/io/github/classgraph/ClassInfo.java
ClassInfo.getAllClasses
static ClassInfoList getAllClasses(final Collection<ClassInfo> classes, final ScanSpec scanSpec) { return new ClassInfoList( ClassInfo.filterClassInfo(classes, scanSpec, /* strictWhitelist = */ true, ClassType.ALL), /* sortByName = */ true); }
java
static ClassInfoList getAllClasses(final Collection<ClassInfo> classes, final ScanSpec scanSpec) { return new ClassInfoList( ClassInfo.filterClassInfo(classes, scanSpec, /* strictWhitelist = */ true, ClassType.ALL), /* sortByName = */ true); }
[ "static", "ClassInfoList", "getAllClasses", "(", "final", "Collection", "<", "ClassInfo", ">", "classes", ",", "final", "ScanSpec", "scanSpec", ")", "{", "return", "new", "ClassInfoList", "(", "ClassInfo", ".", "filterClassInfo", "(", "classes", ",", "scanSpec", ...
Get all classes found during the scan. @param classes the classes @param scanSpec the scan spec @return A list of all classes found during the scan, or the empty list if none.
[ "Get", "all", "classes", "found", "during", "the", "scan", "." ]
c8c8b2ca1eb76339f69193fdac33d735c864215c
https://github.com/classgraph/classgraph/blob/c8c8b2ca1eb76339f69193fdac33d735c864215c/src/main/java/io/github/classgraph/ClassInfo.java#L825-L829
62,899
classgraph/classgraph
src/main/java/io/github/classgraph/ClassInfo.java
ClassInfo.getAllStandardClasses
static ClassInfoList getAllStandardClasses(final Collection<ClassInfo> classes, final ScanSpec scanSpec) { return new ClassInfoList(ClassInfo.filterClassInfo(classes, scanSpec, /* strictWhitelist = */ true, ClassType.STANDARD_CLASS), /* sortByName = */ true); }
java
static ClassInfoList getAllStandardClasses(final Collection<ClassInfo> classes, final ScanSpec scanSpec) { return new ClassInfoList(ClassInfo.filterClassInfo(classes, scanSpec, /* strictWhitelist = */ true, ClassType.STANDARD_CLASS), /* sortByName = */ true); }
[ "static", "ClassInfoList", "getAllStandardClasses", "(", "final", "Collection", "<", "ClassInfo", ">", "classes", ",", "final", "ScanSpec", "scanSpec", ")", "{", "return", "new", "ClassInfoList", "(", "ClassInfo", ".", "filterClassInfo", "(", "classes", ",", "scan...
Get all standard classes found during the scan. @param classes the classes @param scanSpec the scan spec @return A list of all standard classes found during the scan, or the empty list if none.
[ "Get", "all", "standard", "classes", "found", "during", "the", "scan", "." ]
c8c8b2ca1eb76339f69193fdac33d735c864215c
https://github.com/classgraph/classgraph/blob/c8c8b2ca1eb76339f69193fdac33d735c864215c/src/main/java/io/github/classgraph/ClassInfo.java#L840-L843