Index
All Classes and Interfaces|All Packages|Constant Field Values
A
- addPackage(String, String) - Static method in class org.plumelib.reflection.Signatures
-
Given a package name and a class name, combine them to form a qualified class name.
- addToClasspath(String) - Static method in class org.plumelib.reflection.ReflectionPlume
-
Add the directory to the system classpath.
- ALTERNATE(String...) - Static method in class org.plumelib.reflection.SignatureRegexes
-
An ungrouped alternation.
- ANCHORED(String) - Static method in class org.plumelib.reflection.SignatureRegexes
-
Create a regex that must match the entire string.
- ANY(String) - Static method in class org.plumelib.reflection.SignatureRegexes
-
Create a regex matching zero or more of the given argument (Kleene star).
- arglistFromJvm(String) - Static method in class org.plumelib.reflection.Signatures
-
Convert an argument list from JVML format to Java format.
- arglistToJvm(String) - Static method in class org.plumelib.reflection.Signatures
-
Convert a fully-qualified argument list from Java format to JVML format.
- args_seen - Static variable in class org.plumelib.reflection.ReflectionPlume
-
Maps from a comma-delimited string of arg types, such as appears in a method signature, to an array of Class objects, one for each arg type.
- ARRAY - Static variable in class org.plumelib.reflection.SignatureRegexes
-
A regex that matches the nested-class part of a class name.
- arrayBracketsPattern - Static variable in class org.plumelib.reflection.Signatures
-
Matches the "[][][]" at the end of a Java array type.
- ArrayWithoutPackagePattern - Static variable in class org.plumelib.reflection.SignatureRegexes
-
A pattern that matches ArrayWithoutPackage strings.
- ArrayWithoutPackageRegex - Static variable in class org.plumelib.reflection.SignatureRegexes
-
A regex that matches ArrayWithoutPackage strings.
B
- BINARY_NAME - Static variable in class org.plumelib.reflection.SignatureRegexes
-
An unanchored regex that matches BinaryName strings.
- BinaryNameOrPrimitiveTypePattern - Static variable in class org.plumelib.reflection.SignatureRegexes
-
A pattern that matches BinaryNameOrPrimitiveType strings.
- BinaryNameOrPrimitiveTypeRegex - Static variable in class org.plumelib.reflection.SignatureRegexes
-
A regex that matches BinaryNameOrPrimitiveType strings.
- BinaryNamePattern - Static variable in class org.plumelib.reflection.SignatureRegexes
-
A pattern that matches BinaryName strings.
- BinaryNameRegex - Static variable in class org.plumelib.reflection.SignatureRegexes
-
A regex that matches BinaryName strings.
- binaryNameToClassGetName(String) - Static method in class org.plumelib.reflection.Signatures
-
Convert from a BinaryName to the format of
Class.getName()
. - binaryNameToFieldDescriptor(String) - Static method in class org.plumelib.reflection.Signatures
-
Convert a binary name to a field descriptor.
- binaryNameToFullyQualified(String) - Static method in class org.plumelib.reflection.Signatures
-
Converts a binary name to a fully-qualified name.
- BinaryNameWithoutPackagePattern - Static variable in class org.plumelib.reflection.SignatureRegexes
-
A pattern that matches BinaryNameWithoutPackage strings.
- BinaryNameWithoutPackageRegex - Static variable in class org.plumelib.reflection.SignatureRegexes
-
A regex that matches BinaryNameWithoutPackage strings.
C
- CLASS_GET_NAME_NONPRIMITIVE_NONARRAY - Static variable in class org.plumelib.reflection.SignatureRegexes
-
A regex that matches ClassGetName, for non-primitive, non-array types.
- classfilenameToBaseName(String) - Static method in class org.plumelib.reflection.Signatures
-
Given a filename ending with ".class", return the simple (unqualified) binary name of the class.
- classfilenameToBinaryName(String) - Static method in class org.plumelib.reflection.Signatures
-
Given a filename ending with ".class", return the binary name of the class.
- classForName(String) - Static method in class org.plumelib.reflection.ReflectionPlume
-
Like
Class.forName(String)
: given a string representing a non-array class, returns the Class. - ClassGetNamePattern - Static variable in class org.plumelib.reflection.SignatureRegexes
-
A pattern that matches ClassGetName strings.
- ClassGetNameRegex - Static variable in class org.plumelib.reflection.SignatureRegexes
-
A regex that matches ClassGetName strings.
- ClassGetSimpleNamePattern - Static variable in class org.plumelib.reflection.SignatureRegexes
-
A pattern that matches ClassGetSimpleName strings.
- ClassGetSimpleNameRegex - Static variable in class org.plumelib.reflection.SignatureRegexes
-
A regex that matches ClassGetSimpleName strings.
- classname - Variable in class org.plumelib.reflection.Signatures.ClassnameAndDimensions
-
The class name.
- ClassnameAndDimensions(String, int) - Constructor for class org.plumelib.reflection.Signatures.ClassnameAndDimensions
-
Create a new ClassnameAndDimensions.
- classpathToString() - Static method in class org.plumelib.reflection.ReflectionPlume
-
Returns the classpath as a multi-line string.
- classpathToStringJava8Only() - Static method in class org.plumelib.reflection.ReflectionPlume
-
Returns the classpath as a multi-line string.
D
- defineClassFromFile(String, String) - Static method in class org.plumelib.reflection.ReflectionPlume
-
Converts the bytes in a file into an instance of class Class, and resolves (links) the class.
- defineClassFromFile(String, String) - Method in class org.plumelib.reflection.ReflectionPlume.PromiscuousLoader
-
Converts the bytes in a file into an instance of class Class, and also resolves (links) the class.
- dimensions - Variable in class org.plumelib.reflection.Signatures.ClassnameAndDimensions
-
The number of array dimensions.
- dirSep - Static variable in class org.plumelib.reflection.Signatures
-
The file-system-specific directory separator.
- DOT_SEPARATED_IDENTIFIERS - Static variable in class org.plumelib.reflection.SignatureRegexes
-
An unanchored regex that matches DotSeparatedIdentifiers strings.
- DotSeparatedIdentifiersOrPrimitiveTypePattern - Static variable in class org.plumelib.reflection.SignatureRegexes
-
A pattern that matches DotSeparatedIdentifiersOrPrimitiveType strings.
- DotSeparatedIdentifiersOrPrimitiveTypeRegex - Static variable in class org.plumelib.reflection.SignatureRegexes
-
A regex that matches DotSeparatedIdentifiersOrPrimitiveType strings.
- DotSeparatedIdentifiersPattern - Static variable in class org.plumelib.reflection.SignatureRegexes
-
A pattern that matches DotSeparatedIdentifiers strings.
- DotSeparatedIdentifiersRegex - Static variable in class org.plumelib.reflection.SignatureRegexes
-
A regex that matches DotSeparatedIdentifiers strings.
F
- FD_PRIMITIVE - Static variable in class org.plumelib.reflection.SignatureRegexes
-
A regex that matches field descriptors for primitive types.
- fdArrayBracketsPattern - Static variable in class org.plumelib.reflection.Signatures
-
Matches the "[[[" prefix of a field descriptor for an array.
- FieldDescriptorForPrimitivePattern - Static variable in class org.plumelib.reflection.SignatureRegexes
-
A pattern that matches FieldDescriptorForPrimitive strings.
- FieldDescriptorForPrimitiveRegex - Static variable in class org.plumelib.reflection.SignatureRegexes
-
A regex that matches FieldDescriptorForPrimitive strings.
- FieldDescriptorPattern - Static variable in class org.plumelib.reflection.SignatureRegexes
-
A pattern that matches FieldDescriptor strings.
- FieldDescriptorRegex - Static variable in class org.plumelib.reflection.SignatureRegexes
-
A regex that matches FieldDescriptor strings.
- fieldDescriptorToBinaryName(String) - Static method in class org.plumelib.reflection.Signatures
-
Convert a field descriptor to a binary name.
- fieldDescriptorToClassGetName(String) - Static method in class org.plumelib.reflection.Signatures
-
Convert from a FieldDescriptor to the format of
Class.getName()
. - fieldDescriptorToPrimitive - Static variable in class org.plumelib.reflection.Signatures
-
A map from field descriptor (sach as "I") to Java primitive type (such as "int").
- FieldDescriptorWithoutPackagePattern - Static variable in class org.plumelib.reflection.SignatureRegexes
-
A pattern that matches FieldDescriptorWithoutPackage strings.
- FieldDescriptorWithoutPackageRegex - Static variable in class org.plumelib.reflection.SignatureRegexes
-
A regex that matches FieldDescriptorWithoutPackage strings.
- FqBinaryNamePattern - Static variable in class org.plumelib.reflection.SignatureRegexes
-
A pattern that matches FqBinaryName strings.
- FqBinaryNameRegex - Static variable in class org.plumelib.reflection.SignatureRegexes
-
A regex that matches FqBinaryName strings.
- FullyQualifiedNamePattern - Static variable in class org.plumelib.reflection.SignatureRegexes
-
A pattern that matches FullyQualifiedName strings.
- FullyQualifiedNameRegex - Static variable in class org.plumelib.reflection.SignatureRegexes
-
A regex that matches FullyQualifiedName strings.
- fullyQualifiedNameToSimpleName(String) - Static method in class org.plumelib.reflection.ReflectionPlume
-
Returns the simple unqualified class name that corresponds to the specified fully qualified name.
G
- getArrayElementType(String) - Static method in class org.plumelib.reflection.Signatures
-
Returns the element type for the given type name, which results from removing all the array brackets.
- getPrivateField(Object, String) - Static method in class org.plumelib.reflection.ReflectionPlume
-
Reads the given field, which may be private.
- GROUPED(String) - Static method in class org.plumelib.reflection.SignatureRegexes
-
Create a capturing group.
- GROUPED_ALTERNATE(String...) - Static method in class org.plumelib.reflection.SignatureRegexes
-
A grouped alternation.
I
- IDENTIFIER - Static variable in class org.plumelib.reflection.SignatureRegexes
-
A grouped regex that matches identifiers.
- IDENTIFIER_OR_PRIMITIVE_TYPE - Static variable in class org.plumelib.reflection.SignatureRegexes
-
An anchored regex that matches Identifier strings.
- IDENTIFIER_TOKEN - Static variable in class org.plumelib.reflection.SignatureRegexes
-
A regex that matches Java identifier tokens, as defined by the Java grammar.
- IdentifierOrPrimitiveTypePattern - Static variable in class org.plumelib.reflection.SignatureRegexes
-
A pattern that matches IdentifierOrPrimitiveType strings.
- IdentifierOrPrimitiveTypeRegex - Static variable in class org.plumelib.reflection.SignatureRegexes
-
A regex that matches IdentifierOrPrimitiveType strings.
- IdentifierPattern - Static variable in class org.plumelib.reflection.SignatureRegexes
-
A pattern that matches Identifier strings.
- IdentifierRegex - Static variable in class org.plumelib.reflection.SignatureRegexes
-
A regex that matches Identifier strings.
- INTERNAL_FORM - Static variable in class org.plumelib.reflection.SignatureRegexes
-
A regex that matches InternalForm strings.
- InternalFormPattern - Static variable in class org.plumelib.reflection.SignatureRegexes
-
A pattern that matches InternalForm strings.
- InternalFormRegex - Static variable in class org.plumelib.reflection.SignatureRegexes
-
A regex that matches InternalForm strings.
- internalFormToBinaryName(String) - Static method in class org.plumelib.reflection.Signatures
-
Given a class name in internal form, return it in as a binary name.
- internalFormToClassGetName(String) - Static method in class org.plumelib.reflection.Signatures
-
Given a class name in internal form, return it in ClassGetName form.
- internalFormToFullyQualified(String) - Static method in class org.plumelib.reflection.Signatures
-
Given a class name in internal form, return it in as a fully-qualified name.
- isArrayWithoutPackage(String) - Static method in class org.plumelib.reflection.Signatures
-
Returns true if the argument has the format of a ArrayWithoutPackage.
- isBinaryName(String) - Static method in class org.plumelib.reflection.Signatures
-
Returns true if the argument has the format of a BinaryName.
- isBinaryNameOrPrimitiveType(String) - Static method in class org.plumelib.reflection.Signatures
-
Returns true if the argument has the format of a BinaryNameOrPrimitiveType.
- isBinaryNameWithoutPackage(String) - Static method in class org.plumelib.reflection.Signatures
-
Returns true if the argument has the format of a BinaryNameWithoutPackage.
- isClassGetName(String) - Static method in class org.plumelib.reflection.Signatures
-
Returns true if the argument has the format of a ClassGetName.
- isClassGetSimpleName(String) - Static method in class org.plumelib.reflection.Signatures
-
Returns true if the argument has the format of a ClassGetSimpleName.
- isDotSeparatedIdentifiers(String) - Static method in class org.plumelib.reflection.Signatures
-
Returns true if the argument has the format of a DotSeparatedIdentifiers.
- isDotSeparatedIdentifiersOrPrimitiveType(String) - Static method in class org.plumelib.reflection.Signatures
-
Returns true if the argument has the format of a DotSeparatedIdentifiersOrPrimitiveType.
- isFieldDescriptor(String) - Static method in class org.plumelib.reflection.Signatures
-
Returns true if the argument has the format of a FieldDescriptor.
- isFieldDescriptorForPrimitive(String) - Static method in class org.plumelib.reflection.Signatures
-
Returns true if the argument has the format of a FieldDescriptorForPrimitive.
- isFieldDescriptorWithoutPackage(String) - Static method in class org.plumelib.reflection.Signatures
-
Returns true if the argument has the format of a FieldDescriptorWithoutPackage.
- isFqBinaryName(String) - Static method in class org.plumelib.reflection.Signatures
-
Returns true if the argument has the format of a FqBinaryName.
- isFullyQualifiedName(String) - Static method in class org.plumelib.reflection.Signatures
-
Returns true if the argument has the format of a FullyQualifiedName.
- isIdentifier(String) - Static method in class org.plumelib.reflection.Signatures
-
Returns true if the argument has the format of a Identifier.
- isIdentifierOrPrimitiveType(String) - Static method in class org.plumelib.reflection.Signatures
-
Returns true if the argument has the format of a IdentifierOrPrimitiveType.
- isInternalForm(String) - Static method in class org.plumelib.reflection.Signatures
-
Returns true if the argument has the format of a InternalForm.
- isPrimitiveType(String) - Static method in class org.plumelib.reflection.Signatures
-
Returns true if the argument has the format of a PrimitiveType.
- isSubtype(Class<?>, Class<?>) - Static method in class org.plumelib.reflection.ReflectionPlume
-
Return true iff sub is a subtype of sup.
K
- KEYWORD - Static variable in class org.plumelib.reflection.SignatureRegexes
-
An unanchored regex that matches keywords.
- KEYWORD_NON_PRIMITIVE_TYPE - Static variable in class org.plumelib.reflection.SignatureRegexes
-
An unanchored regex that matches keywords, except primitive types.
- KEYWORD_OR_LITERAL - Static variable in class org.plumelib.reflection.SignatureRegexes
-
A regex that matches identifier tokens that are not identifiers (keywords, boolean literals, and the null literal).
L
- leastUpperBound(Class<T>[]) - Static method in class org.plumelib.reflection.ReflectionPlume
-
Returns the least upper bound of all the given classes.
- leastUpperBound(Class<T>, Class<T>) - Static method in class org.plumelib.reflection.ReflectionPlume
-
Returns the least upper bound of the given classes.
- leastUpperBound(Object[]) - Static method in class org.plumelib.reflection.ReflectionPlume
-
Returns the least upper bound of the classes of the given objects.
- leastUpperBound(List<? extends Object>) - Static method in class org.plumelib.reflection.ReflectionPlume
-
Returns the least upper bound of the classes of the given objects.
M
- methodForName(String, String, Class<?>[]) - Static method in class org.plumelib.reflection.ReflectionPlume
-
Given a class name and a method name in that class, return the method.
- methodForName(String) - Static method in class org.plumelib.reflection.ReflectionPlume
-
Given a method signature, return the method.
N
- nameWithoutPackage(Class<?>) - Static method in class org.plumelib.reflection.ReflectionPlume
-
Returns the class name, including outer classes but without the package.
- NESTED - Static variable in class org.plumelib.reflection.SignatureRegexes
-
A regex that matches the nested-class part of a class name.
- NESTED_ONE - Static variable in class org.plumelib.reflection.SignatureRegexes
-
A regex that matches the nested-class part of a class name, for one nested class.
O
- org.plumelib.reflection - package org.plumelib.reflection
-
Utility libraries related to Java reflection.
P
- parseFqBinaryName(String) - Static method in class org.plumelib.reflection.Signatures.ClassnameAndDimensions
-
Constructs a new ClassnameAndDimensions by parsing a fully-qualified binary name.
- PRIMITIVE_TYPE - Static variable in class org.plumelib.reflection.SignatureRegexes
-
An unanchored regex that matches primitive types.
- primitiveClasses - Static variable in class org.plumelib.reflection.ReflectionPlume
- primitiveToFieldDescriptor - Static variable in class org.plumelib.reflection.Signatures
-
A map from Java primitive type name (such as "int") to field descriptor (such as "I").
- primitiveTypeNameToFieldDescriptor(String) - Static method in class org.plumelib.reflection.Signatures
-
Convert a primitive Java type name (e.g., "int", "double", etc.) to a field descriptor (e.g., "I", "D", etc.).
- PrimitiveTypePattern - Static variable in class org.plumelib.reflection.SignatureRegexes
-
A pattern that matches PrimitiveType strings.
- PrimitiveTypeRegex - Static variable in class org.plumelib.reflection.SignatureRegexes
-
A regex that matches PrimitiveType strings.
- PromiscuousLoader() - Constructor for class org.plumelib.reflection.ReflectionPlume.PromiscuousLoader
R
- ReflectionPlume - Class in org.plumelib.reflection
-
Utility functions related to reflection, Class, Method, ClassLoader, and classpath.
- ReflectionPlume() - Constructor for class org.plumelib.reflection.ReflectionPlume
-
This class is a collection of methods; it does not represent anything.
- ReflectionPlume.PromiscuousLoader - Class in org.plumelib.reflection
-
This static nested class has no purpose but to define defineClassFromFile.
S
- setFinalField(Object, String, Object) - Static method in class org.plumelib.reflection.ReflectionPlume
-
Sets the given field, which may be final and/or private.
- SignatureRegexes - Class in org.plumelib.reflection
-
This class defines regular expressions for types supported by the Signature String Checker.
- SignatureRegexes() - Constructor for class org.plumelib.reflection.SignatureRegexes
-
Do not instantiate this class.
- Signatures - Class in org.plumelib.reflection
-
Conversion utilities between Java and JVM string formats, for types and signatures.
- Signatures() - Constructor for class org.plumelib.reflection.Signatures
- Signatures.ClassnameAndDimensions - Class in org.plumelib.reflection
-
A representation of an array: A pair of class name and the number of array dimensions.
- SLASH_SEPARATED_IDENTIFIERS - Static variable in class org.plumelib.reflection.SignatureRegexes
-
An unanchored regex that matches slash-separated identifiers.
T
- thePromiscuousLoader - Static variable in class org.plumelib.reflection.ReflectionPlume
-
A ClassLoader that can call defineClassFromFile.
All Classes and Interfaces|All Packages|Constant Field Values