Skip navigation links
A C E F G I J L N O R S V W 

A

assignToField(Object, String, Object) - Static method in class org.bbottema.javareflection.JReflect
Assigns a value to a field id on the given object o.
autobox(Class<?>) - Static method in class org.bbottema.javareflection.JReflect
Emulates Java's Autoboxing feature; tries to convert a type to its (un)wrapped counter version.

C

capitalize(String) - Static method in class org.bbottema.javareflection.commonslang25.StringUtils
Capitalizes a String changing the first letter to title case as per Character.toTitleCase(char).
collectCompatibleTypes(Class<?>) - Static method in class org.bbottema.javareflection.ValueConverter
Determines to which types the specified value (its type) can be converted to.
collectFields(Class<?>, Class<?>, EnumSet<FieldUtils.Visibility>, EnumSet<FieldUtils.BeanRestriction>) - Static method in class org.bbottema.javareflection.FieldUtils
Returns a pool of Field wrappers including optional relevant setter/getter methods, collected from the given class tested against the given visibility and Bean restriction requirements.
collectMethods(Object, boolean) - Static method in class org.bbottema.javareflection.JReflect
Returns a list of names that represent the methods on an Object
collectProperties(Object) - Static method in class org.bbottema.javareflection.JReflect
Returns a list of names that represent the fields on an Object.
collectTypes(Object[]) - Static method in class org.bbottema.javareflection.JReflect
Creates a new array of class objects harvested from an array of objects.
convert(Object[], Class<?>[], boolean) - Static method in class org.bbottema.javareflection.ValueConverter
Converts a list of values to their converted form, as indicated by the specified targetTypes.
convert(Object, Class<?>) - Static method in class org.bbottema.javareflection.ValueConverter
Converts a single value into a target output datatype.
convert(Number, Class<?>) - Static method in class org.bbottema.javareflection.ValueConverter
Attempts to convert a Number to the target datatype.
convert(Boolean, Class<?>) - Static method in class org.bbottema.javareflection.ValueConverter
Attempts to convert a Boolean to the target datatype.
convert(Character, Class<?>) - Static method in class org.bbottema.javareflection.ValueConverter
Attempts to convert a Character to the target datatype.
convert(String, Class<?>) - Static method in class org.bbottema.javareflection.ValueConverter
Attempts to convert a String to the target datatype.
convertEnum(String, Class<? extends Enum<?>>) - Static method in class org.bbottema.javareflection.ValueConverter
Attempts to convert a String to an Enum instance, by mapping to the enum's name using Enum.valueOf(Class, String).
convertNumber(String, Class<? extends Number>) - Static method in class org.bbottema.javareflection.ValueConverter
Attempts to convert a String to the specified Number type.

E

ExternalClassLoader - Class in org.bbottema.javareflection
A toolkit that can read and compile .java sourcefiles on the fly in runtime.
ExternalClassLoader() - Constructor for class org.bbottema.javareflection.ExternalClassLoader
Constructor which initializes all properties.
ExternalClassLoader.CompileException - Exception in org.bbottema.javareflection
Parameterized exception used when Java's runtime compiler fails to compile a Java source file.

F

FieldUtils - Class in org.bbottema.javareflection
A Field shorthand utility class mainly used to collect fields from classes meeting certain restrictions/requirements.
FieldUtils.BeanRestriction - Enum in org.bbottema.javareflection
Indicates whether a field needs a Bean setter or getter, exactly none or any combination thereof.
FieldUtils.Visibility - Enum in org.bbottema.javareflection
Determines what visibility modifiers a field is allowed to have in FieldUtils.collectFields(Class, Class, EnumSet, EnumSet).
FieldWrapper - Class in org.bbottema.javareflection
A wrapper class that keeps a property (Field) and its setter/getter method(s) in one place.
FieldWrapper(Field, Method, Method) - Constructor for class org.bbottema.javareflection.FieldWrapper
Initializes the wrapper with field, getter and setter, all optional.
findClass(String) - Method in class org.bbottema.javareflection.ExternalClassLoader
Loads a classfile from file in the following order: looks for the java source and if available, checks whether it needs to be compiled if no .java or .class file found, try to find it in the VM If the class ultimately wasn't found a ClassNotFoundException is being thrown.
findCompatibleConstructor(Class<T>, EnumSet<JReflect.LookupMode>, Class<?>...) - Static method in class org.bbottema.javareflection.JReflect
Tries to find a Constructor of a given type, with a given typelist, where types do not match due to formal types simple types.
findCompatibleMethod(Class<?>, String, EnumSet<JReflect.LookupMode>, Class<?>...) - Static method in class org.bbottema.javareflection.JReflect
Same as getConstructor(), except for getting a Method of a classtype, using the name to indicate which method should be located.
findSimpleCompatibleMethod(Class<?>, String, Class<?>...) - Static method in class org.bbottema.javareflection.JReflect
Delegates to JReflect.findCompatibleMethod(Class, String, EnumSet, Class...), using strict lookupmode (no autoboxing, casting etc.) and optional signature parameters.

G

getBasepath() - Method in class org.bbottema.javareflection.ExternalClassLoader
 
getException() - Method in class org.bbottema.javareflection.ExternalClassLoader
 
getField() - Method in class org.bbottema.javareflection.FieldWrapper
 
getGetter() - Method in class org.bbottema.javareflection.FieldWrapper
 
getMethod(Class<?>, String, Class<?>...) - Static method in class org.bbottema.javareflection.JReflect
Searches a specific class object for a Method using java reflect using a specific signature.
getSetter() - Method in class org.bbottema.javareflection.FieldWrapper
 

I

IncompatibleTypeException(String, Exception) - Constructor for exception org.bbottema.javareflection.ValueConverter.IncompatibleTypeException
 
IncompatibleTypeException(Object, String, String) - Constructor for exception org.bbottema.javareflection.ValueConverter.IncompatibleTypeException
 
IncompatibleTypeException(Object, String, String, Exception) - Constructor for exception org.bbottema.javareflection.ValueConverter.IncompatibleTypeException
 
invokeCompatibleConstructor(Class<T>, Object...) - Static method in class org.bbottema.javareflection.JReflect
invokeCompatibleMethod(Object, Class<?>, String, Object...) - Static method in class org.bbottema.javareflection.JReflect
Locates a method on an Object using serveral searchmodes for optimization.
invokeConstructor(Class<T>, Class<?>[], Object[]) - Static method in class org.bbottema.javareflection.JReflect
Locates and invokes a Constructor, using a customized typelist.
isCommonType(Class<?>) - Static method in class org.bbottema.javareflection.ValueConverter
 
isNumber(String) - Static method in class org.bbottema.javareflection.commonslang25.NumberUtils
Checks whether the String a valid Java number.
isPackage(String) - Static method in class org.bbottema.javareflection.JReflect
Validates whether a string represents a valid package.
isPrimitiveNumber(Class<?>) - Static method in class org.bbottema.javareflection.ValueConverter
Returns whether a Class is a primitive number.

J

JReflect - Class in org.bbottema.javareflection
This class utilizes functionality of the Java class java.lang.reflect.
JReflect.LookupMode - Enum in org.bbottema.javareflection
Defines lookup modes for matching Java methods and constructors.

L

loadClass(String) - Method in class org.bbottema.javareflection.ExternalClassLoader
Loads a class from the classes cache if available.
locateClass(String, boolean, ExternalClassLoader) - Static method in class org.bbottema.javareflection.JReflect
Delegates to JReflect.locateClass(String, ExternalClassLoader), using default cache.
locateClass(String, boolean, ExternalClassLoader, boolean) - Static method in class org.bbottema.javareflection.JReflect
Searches the JVM and optionally all of its packages
locateClass(String, ExternalClassLoader) - Static method in class org.bbottema.javareflection.JReflect
This function dynamically tries to locate a class.

N

newInstanceSimple(Class<T>) - Static method in class org.bbottema.javareflection.JReflect
Simply calls Class.newInstance() and hides the exception handling boilerplate code.
NumberUtils - Class in org.bbottema.javareflection.commonslang25
 

O

org.bbottema.javareflection - package org.bbottema.javareflection
 
org.bbottema.javareflection.commonslang25 - package org.bbottema.javareflection.commonslang25
 

R

replaceInArray(T[], int, T) - Static method in class org.bbottema.javareflection.JReflect
Shortcut helper method that replaces an item in an array and returns the array itself.
resetCaches() - Static method in class org.bbottema.javareflection.JReflect
 

S

setBasepath(String) - Method in class org.bbottema.javareflection.ExternalClassLoader
Sets the base path this classloader will look for classes in.
solveField(Object, String) - Static method in class org.bbottema.javareflection.JReflect
Returns a field from the given object that goes by the name of fieldName.
StringUtils - Class in org.bbottema.javareflection.commonslang25
 

V

ValueConverter - Class in org.bbottema.javareflection
This reflection utility class predicts (and converts) which types a specified value can be converted into.
ValueConverter.IncompatibleTypeException - Exception in org.bbottema.javareflection
This exception can be thrown in any of the conversion methods of ValueConverter, to indicate a value could not be converted into the target datatype.
valueOf(String) - Static method in enum org.bbottema.javareflection.FieldUtils.BeanRestriction
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum org.bbottema.javareflection.FieldUtils.Visibility
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum org.bbottema.javareflection.JReflect.LookupMode
Returns the enum constant of this type with the specified name.
values() - Static method in enum org.bbottema.javareflection.FieldUtils.BeanRestriction
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum org.bbottema.javareflection.FieldUtils.Visibility
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum org.bbottema.javareflection.JReflect.LookupMode
Returns an array containing the constants of this enum type, in the order they are declared.

W

widestNumberClass(Number...) - Static method in class org.bbottema.javareflection.JReflect
Returns the smallest class that can hold all of the specified numbers.
A C E F G I J L N O R S V W 
Skip navigation links

Copyright © 2018. All rights reserved.