Skip navigation links
A B C D E F G I J L M N O P R S T U 

A

addEnumInstance(Class<T>, T) - Static method in class net.lenni0451.reflect.Enums
Add a enum value to an enum class
addToSystemClassPath(URL) - Static method in class net.lenni0451.reflect.ClassLoaders
Add a URL to the system classpath
Agents - Class in net.lenni0451.reflect
 
Agents() - Constructor for class net.lenni0451.reflect.Agents
 

B

by(Class<?>...) - Method in class net.lenni0451.reflect.stream.constructor.ConstructorStream
Get the ConstructorWrapper instance of the constructor with the given parameter types
by(int) - Method in class net.lenni0451.reflect.stream.constructor.ConstructorStream
Get the ConstructorWrapper instance of the constructor with the given index
by(String) - Method in class net.lenni0451.reflect.stream.field.FieldStream
Get the FieldWrapper instance of the field with the given name
by(int) - Method in class net.lenni0451.reflect.stream.field.FieldStream
Get the FieldWrapper instance of the field with the given index
by(String) - Method in class net.lenni0451.reflect.stream.method.MethodStream
Get the MethodWrapper instance of the method with the given name
by(Class<?>...) - Method in class net.lenni0451.reflect.stream.method.MethodStream
Get the MethodWrapper instance of the method with the given parameter types
by(String, Class<?>...) - Method in class net.lenni0451.reflect.stream.method.MethodStream
Get the MethodWrapper instance of the method with the given name and parameter types
by(int) - Method in class net.lenni0451.reflect.stream.method.MethodStream
Get the MethodWrapper instance of the method with the given index

C

Classes - Class in net.lenni0451.reflect
 
Classes() - Constructor for class net.lenni0451.reflect.Classes
 
ClassLoaders - Class in net.lenni0451.reflect
 
ClassLoaders() - Constructor for class net.lenni0451.reflect.ClassLoaders
 
clazz() - Method in class net.lenni0451.reflect.stream.RStream
Get the Class of the RStream instance
clearReflectionFilter() - Static method in class net.lenni0451.reflect.JavaBypass
Clear the reflection filter maps
Constructors - Class in net.lenni0451.reflect
 
Constructors() - Constructor for class net.lenni0451.reflect.Constructors
 
constructors() - Method in class net.lenni0451.reflect.stream.RStream
Get the ConstructorStream of the class
ConstructorStream - Class in net.lenni0451.reflect.stream.constructor
An easy-to-use stream to filter out the constructors you want to access
ConstructorStream(RStream) - Constructor for class net.lenni0451.reflect.stream.constructor.ConstructorStream
 
ConstructorWrapper - Class in net.lenni0451.reflect.stream.constructor
Wrap a Constructor for easy access
ConstructorWrapper(ConstructorStream, Constructor<?>) - Constructor for class net.lenni0451.reflect.stream.constructor.ConstructorWrapper
 
copy(Object, Object, Field) - Static method in class net.lenni0451.reflect.Fields
Copy the value of a field
This is a wrapper method for the above methods automatically selecting the correct one based on the field type
copy(Object) - Method in class net.lenni0451.reflect.stream.field.FieldWrapper
Copy the value of the Field to the given target
copy(Object, Object) - Method in class net.lenni0451.reflect.stream.field.FieldWrapper
Copy the value of the Field to the given target with the given owner
copyBoolean(Object, Object, Field) - Static method in class net.lenni0451.reflect.Fields
 
copyByte(Object, Object, Field) - Static method in class net.lenni0451.reflect.Fields
 
copyChar(Object, Object, Field) - Static method in class net.lenni0451.reflect.Fields
 
copyDouble(Object, Object, Field) - Static method in class net.lenni0451.reflect.Fields
 
copyFloat(Object, Object, Field) - Static method in class net.lenni0451.reflect.Fields
 
copyInt(Object, Object, Field) - Static method in class net.lenni0451.reflect.Fields
 
copyLong(Object, Object, Field) - Static method in class net.lenni0451.reflect.Fields
 
copyModule(Class<?>, Class<?>) - Static method in class net.lenni0451.reflect.Modules
Copy the module from one class to another
This bypasses all reflection restrictions in place
copyObject(Object, Object, Field) - Static method in class net.lenni0451.reflect.Fields
 
copyShort(Object, Object, Field) - Static method in class net.lenni0451.reflect.Fields
 
createDummyAgent(Class<?>) - Static method in class net.lenni0451.reflect.Agents
Create a temp empty dummy agent jar for a given class
createDummyAgent(File, String) - Static method in class net.lenni0451.reflect.Agents
Create an empty dummy agent jar for a given class

D

defineAnonymousClass(Class<?>, byte[]) - Static method in class net.lenni0451.reflect.ClassLoaders
Define an anonymous class
This is java version independent but in java 17+ the parent class is unused
defineClass(ClassLoader, String, byte[]) - Static method in class net.lenni0451.reflect.ClassLoaders
Define a class using the given class loader
defineClass(ClassLoader, String, byte[], ProtectionDomain) - Static method in class net.lenni0451.reflect.ClassLoaders
Define a class using the given class loader
defineClass(ClassLoader, String, byte[], int, int, ProtectionDomain) - Static method in class net.lenni0451.reflect.ClassLoaders
Define a class using the given class loader

E

Enums - Class in net.lenni0451.reflect
 
Enums() - Constructor for class net.lenni0451.reflect.Enums
 

F

Fields - Class in net.lenni0451.reflect
 
Fields() - Constructor for class net.lenni0451.reflect.Fields
 
fields() - Method in class net.lenni0451.reflect.stream.RStream
Get the FieldStream of the class
FieldStream - Class in net.lenni0451.reflect.stream.field
An easy-to-use stream to filter out the fields you want to access
FieldStream(RStream) - Constructor for class net.lenni0451.reflect.stream.field.FieldStream
 
FieldWrapper - Class in net.lenni0451.reflect.stream.field
Wrap a Field for easy access
FieldWrapper(FieldStream, Field) - Constructor for class net.lenni0451.reflect.stream.field.FieldWrapper
 
filter(Predicate<ConstructorWrapper>) - Method in class net.lenni0451.reflect.stream.constructor.ConstructorStream
Filter the constructors by the given predicate
filter(Class<?>...) - Method in class net.lenni0451.reflect.stream.constructor.ConstructorStream
Filter the constructors by the given parameter types
filter(boolean) - Method in class net.lenni0451.reflect.stream.constructor.ConstructorStream
Filter out all static/non-static constructors
filter(Predicate<FieldWrapper>) - Method in class net.lenni0451.reflect.stream.field.FieldStream
Filter the fields by the given predicate
filter(Class<?>) - Method in class net.lenni0451.reflect.stream.field.FieldStream
Filter out all fields whose type is not the given Class
filter(boolean) - Method in class net.lenni0451.reflect.stream.field.FieldStream
Filter out all static/non-static fields
filter(Predicate<MethodWrapper>) - Method in class net.lenni0451.reflect.stream.method.MethodStream
Filter the methods by the given predicate
filter(String) - Method in class net.lenni0451.reflect.stream.method.MethodStream
Filter the methods by the given name
filter(Class<?>...) - Method in class net.lenni0451.reflect.stream.method.MethodStream
Filter the methods by the given parameter types
filter(boolean) - Method in class net.lenni0451.reflect.stream.method.MethodStream
Filter out all static/non-static methods
forEach(Consumer<ConstructorWrapper>) - Method in class net.lenni0451.reflect.stream.constructor.ConstructorStream
Loop through all ConstructorWrapper instances
forEach(Consumer<FieldWrapper>) - Method in class net.lenni0451.reflect.stream.field.FieldStream
Loop through all FieldWrapper instances
forEach(Consumer<MethodWrapper>) - Method in class net.lenni0451.reflect.stream.method.MethodStream
Loop through all MethodWrapper instances
forName(String) - Static method in class net.lenni0451.reflect.Classes
Get a class by its name
Basically a wrapper for Class.forName(String) but without direct exceptions
forName(ClassLoader, String) - Static method in class net.lenni0451.reflect.Classes
Get a class by its name from a given class loader
forName(ClassLoader, String, boolean) - Static method in class net.lenni0451.reflect.Classes
Get a class by its name from a given class loader
Basically a wrapper for Class.forName(String, boolean, ClassLoader) but without direct exceptions

G

get(Object, Field) - Static method in class net.lenni0451.reflect.Fields
Get the value of a field
This is a wrapper method for the above methods automatically selecting the correct one based on the field type
get() - Method in class net.lenni0451.reflect.stream.field.FieldWrapper
Get the value of the Field
get(Object) - Method in class net.lenni0451.reflect.stream.field.FieldWrapper
Get the value of the Field with the given owner
get() - Method in class net.lenni0451.reflect.stream.utils.Lazy
 
getBoolean(Object, Field) - Static method in class net.lenni0451.reflect.Fields
 
getByte(Object, Field) - Static method in class net.lenni0451.reflect.Fields
 
getChar(Object, Field) - Static method in class net.lenni0451.reflect.Fields
 
getDeclaredClass(Class<?>, String) - Static method in class net.lenni0451.reflect.Classes
Get a declared class by its name
getDeclaredClasses(Class<?>) - Static method in class net.lenni0451.reflect.Classes
Get all declared classes of a class
getDeclaredConstructor(Class<T>, Class<?>...) - Static method in class net.lenni0451.reflect.Constructors
Get a declared constructor of a class by its parameter types
getDeclaredConstructors(Class<T>) - Static method in class net.lenni0451.reflect.Constructors
Get all declared constructors of a class
getDeclaredField(Class<?>, String) - Static method in class net.lenni0451.reflect.Fields
Get a declared field of a class by name
getDeclaredFields(Class<?>) - Static method in class net.lenni0451.reflect.Fields
Get all declared fields of a class
getDeclaredMethod(Class<?>, String, Class<?>...) - Static method in class net.lenni0451.reflect.Methods
Get a declared method of a class by its name and parameter types
getDeclaredMethods(Class<?>) - Static method in class net.lenni0451.reflect.Methods
Get all declared methods of a class
getDouble(Object, Field) - Static method in class net.lenni0451.reflect.Fields
 
getFloat(Object, Field) - Static method in class net.lenni0451.reflect.Fields
 
getInstrumentation() - Static method in class net.lenni0451.reflect.Agents
Get an instrumentation instance by loading an agent
The loaded agent stores the instrumentation instance in a static field which is accessed by reflection
This solves many problems which can occur with class loaders
getInt(Object, Field) - Static method in class net.lenni0451.reflect.Fields
 
getLong(Object, Field) - Static method in class net.lenni0451.reflect.Fields
 
getObject(Object, Field) - Static method in class net.lenni0451.reflect.Fields
 
getShort(Object, Field) - Static method in class net.lenni0451.reflect.Fields
 
getSystemClassPath() - Static method in class net.lenni0451.reflect.ClassLoaders
Get all URLs of the system classpath
getTrustedLookup() - Static method in class net.lenni0451.reflect.JavaBypass
Get the trusted lookup instance
getUnsafe() - Static method in class net.lenni0451.reflect.JavaBypass
Get the unsafe instance

I

instance(Object, Field) - Static method in class net.lenni0451.reflect.Fields
Get the instance used for getting and setting the value of the field
Only exists to make the below code smaller
instance() - Method in class net.lenni0451.reflect.stream.RStream
Get the instance of the RStream instance
invoke(Constructor<T>, Object...) - Static method in class net.lenni0451.reflect.Constructors
Invoke a constructor without any checks
invoke(Object, Method, Object...) - Static method in class net.lenni0451.reflect.Methods
Invoke a method without any checks
invoke() - Method in class net.lenni0451.reflect.stream.method.MethodWrapper
Invoke the Method without any args
invokeArgs(Object...) - Method in class net.lenni0451.reflect.stream.method.MethodWrapper
Invoke the Method with the given arguments
invokeInstance(Object, Object...) - Method in class net.lenni0451.reflect.stream.method.MethodWrapper
Invoke the Method with the give arguments and instance
isAbstract() - Method in class net.lenni0451.reflect.stream.general.ModifierWrapper
Get if the modifier contains the abstract modifier
Targets: Method
isFinal() - Method in class net.lenni0451.reflect.stream.general.ModifierWrapper
Get if the modifier contains the final modifier
Targets: Field, Method
isNative() - Method in class net.lenni0451.reflect.stream.general.ModifierWrapper
Get if the modifier contains the native modifier
Targets: Method
isPrivate() - Method in class net.lenni0451.reflect.stream.general.ModifierWrapper
Get if the modifier contains the private modifier
Targets: Field, Method, Constructor
isProtected() - Method in class net.lenni0451.reflect.stream.general.ModifierWrapper
Get if the modifier contains the protected modifier
Targets: Field, Method, Constructor
isPublic() - Method in class net.lenni0451.reflect.stream.general.ModifierWrapper
Get if the modifier contains the public modifier
Targets: Field, Method, Constructor
isStatic() - Method in class net.lenni0451.reflect.stream.general.ModifierWrapper
Get if the modifier contains the static modifier
Targets: Field, Method
isStrict() - Method in class net.lenni0451.reflect.stream.general.ModifierWrapper
Get if the modifier contains the strict modifier
Targets: Method
isSynchronized() - Method in class net.lenni0451.reflect.stream.general.ModifierWrapper
Get if the modifier contains the synchronized modifier
Targets: Method
isTransient() - Method in class net.lenni0451.reflect.stream.general.ModifierWrapper
Get if the modifier contains the transient modifier
Targets: Field
isVolatile() - Method in class net.lenni0451.reflect.stream.general.ModifierWrapper
Get if the modifier contains the volatile modifier
Targets: Field
iterator() - Method in class net.lenni0451.reflect.stream.constructor.ConstructorStream
Get an iterator of the ConstructorWrapper instances
iterator() - Method in class net.lenni0451.reflect.stream.field.FieldStream
Get an iterator of the FieldWrapper instances
iterator() - Method in class net.lenni0451.reflect.stream.method.MethodStream
Get an iterator of the MethodWrapper instances

J

JavaBypass - Class in net.lenni0451.reflect
 
JavaBypass() - Constructor for class net.lenni0451.reflect.JavaBypass
 
jstream() - Method in class net.lenni0451.reflect.stream.constructor.ConstructorStream
Get the java stream of the ConstructorWrapper instances
jstream() - Method in class net.lenni0451.reflect.stream.field.FieldStream
Get the java stream of the FieldWrapper instances
jstream() - Method in class net.lenni0451.reflect.stream.method.MethodStream
Get the java stream of the MethodWrapper instances

L

Lazy<T> - Class in net.lenni0451.reflect.stream.utils
 
Lazy(Supplier<T>) - Constructor for class net.lenni0451.reflect.stream.utils.Lazy
 
load(File) - Static method in class net.lenni0451.reflect.Agents
Load an agent from a jar during runtime
loadInternal(Class<?>) - Static method in class net.lenni0451.reflect.Agents
Create a dummy agent jar for the given class and load it

M

Methods - Class in net.lenni0451.reflect
 
Methods() - Constructor for class net.lenni0451.reflect.Methods
 
methods() - Method in class net.lenni0451.reflect.stream.RStream
Get the MethodStream of the class
MethodStream - Class in net.lenni0451.reflect.stream.method
An easy-to-use stream to filter out the methods you want to access
MethodStream(RStream) - Constructor for class net.lenni0451.reflect.stream.method.MethodStream
 
MethodWrapper - Class in net.lenni0451.reflect.stream.method
Wrap a Method for easy access
MethodWrapper(MethodStream, Method) - Constructor for class net.lenni0451.reflect.stream.method.MethodWrapper
 
modifier() - Method in class net.lenni0451.reflect.stream.constructor.ConstructorWrapper
Get the ModifierWrapper of the Constructor
modifier() - Method in class net.lenni0451.reflect.stream.field.FieldWrapper
Get the ModifierWrapper of the field
modifier() - Method in class net.lenni0451.reflect.stream.method.MethodWrapper
Get the ModifierWrapper of the Method
ModifierWrapper - Class in net.lenni0451.reflect.stream.general
A wrapper for Field/Method/Constructor modifier for easier usage.
ModifierWrapper(int) - Constructor for class net.lenni0451.reflect.stream.general.ModifierWrapper
 
Modules - Class in net.lenni0451.reflect
 
Modules() - Constructor for class net.lenni0451.reflect.Modules
 

N

name() - Method in class net.lenni0451.reflect.stream.field.FieldWrapper
Get the name of the Field
name() - Method in class net.lenni0451.reflect.stream.method.MethodWrapper
Get the name of the Method
net.lenni0451.reflect - package net.lenni0451.reflect
 
net.lenni0451.reflect.stream - package net.lenni0451.reflect.stream
 
net.lenni0451.reflect.stream.constructor - package net.lenni0451.reflect.stream.constructor
 
net.lenni0451.reflect.stream.field - package net.lenni0451.reflect.stream.field
 
net.lenni0451.reflect.stream.general - package net.lenni0451.reflect.stream.general
 
net.lenni0451.reflect.stream.method - package net.lenni0451.reflect.stream.method
 
net.lenni0451.reflect.stream.utils - package net.lenni0451.reflect.stream.utils
 
newInstance(Class<T>, String, int, Class<?>[], Object[]) - Static method in class net.lenni0451.reflect.Enums
Create a new enum instance during runtime
newInstance(Object...) - Method in class net.lenni0451.reflect.stream.constructor.ConstructorWrapper
Invoke the Constructor with the given arguments

O

of(Class<?>) - Static method in class net.lenni0451.reflect.stream.RStream
Get a RStream instance of the given class
of(Class<?>, Object) - Static method in class net.lenni0451.reflect.stream.RStream
Get a RStream instance of the given class and instance
of(String) - Static method in class net.lenni0451.reflect.stream.RStream
Get the RStream instance of the given class by name
of(String, Object) - Static method in class net.lenni0451.reflect.stream.RStream
Get the RStream instance of the given class by name and instance
of(Object) - Static method in class net.lenni0451.reflect.stream.RStream
Get the RStream instance of the given instance
offset(Field) - Static method in class net.lenni0451.reflect.Fields
Get the offset of a field
openModule(Class<?>) - Static method in class net.lenni0451.reflect.Modules
Open a module of a class to everyone
This allows the usage of jdk internal classes which are normally protected by restricted module access
owner() - Method in class net.lenni0451.reflect.stream.constructor.ConstructorWrapper
Get the owner Class of the Constructor
owner() - Method in class net.lenni0451.reflect.stream.field.FieldWrapper
Get the owner Class of the Field
owner() - Method in class net.lenni0451.reflect.stream.method.MethodWrapper
Get the owner Class of the Method

P

parameterTypes() - Method in class net.lenni0451.reflect.stream.constructor.ConstructorWrapper
Get the parameter types of the Constructor
parameterTypes() - Method in class net.lenni0451.reflect.stream.method.MethodWrapper
Get the parameter types of the Method
parent() - Method in class net.lenni0451.reflect.stream.constructor.ConstructorStream
Get the parent RStream instance
parent() - Method in class net.lenni0451.reflect.stream.constructor.ConstructorWrapper
Get the parent ConstructorStream
parent() - Method in class net.lenni0451.reflect.stream.field.FieldStream
Get the parent RStream instance
parent() - Method in class net.lenni0451.reflect.stream.field.FieldWrapper
Get the parent FieldStream
parent() - Method in class net.lenni0451.reflect.stream.method.MethodStream
Get the parent RStream instance
parent() - Method in class net.lenni0451.reflect.stream.method.MethodWrapper
Get the parent MethodStream

R

raw() - Method in class net.lenni0451.reflect.stream.constructor.ConstructorWrapper
Get the raw Constructor
raw() - Method in class net.lenni0451.reflect.stream.field.FieldWrapper
Get the raw Field
raw() - Method in class net.lenni0451.reflect.stream.general.ModifierWrapper
Get the raw modifier int
raw() - Method in class net.lenni0451.reflect.stream.method.MethodWrapper
Get the raw Method
returnType() - Method in class net.lenni0451.reflect.stream.method.MethodWrapper
Get the return type of the Method
RStream - Class in net.lenni0451.reflect.stream
 

S

set(Object, Field, T) - Static method in class net.lenni0451.reflect.Fields
Set the value of a field
This is a wrapper method for the above methods automatically selecting the correct one based on the field type
set(Object) - Method in class net.lenni0451.reflect.stream.field.FieldWrapper
Set the value of the Field
set(Object, Object) - Method in class net.lenni0451.reflect.stream.field.FieldWrapper
Set the value of the Field with the given owner
setBoolean(Object, Field, boolean) - Static method in class net.lenni0451.reflect.Fields
 
setByte(Object, Field, byte) - Static method in class net.lenni0451.reflect.Fields
 
setChar(Object, Field, char) - Static method in class net.lenni0451.reflect.Fields
 
setDouble(Object, Field, double) - Static method in class net.lenni0451.reflect.Fields
 
setFloat(Object, Field, float) - Static method in class net.lenni0451.reflect.Fields
 
setInt(Object, Field, int) - Static method in class net.lenni0451.reflect.Fields
 
setLong(Object, Field, long) - Static method in class net.lenni0451.reflect.Fields
 
setObject(Object, Field, Object) - Static method in class net.lenni0451.reflect.Fields
 
setShort(Object, Field, short) - Static method in class net.lenni0451.reflect.Fields
 
size() - Method in class net.lenni0451.reflect.stream.constructor.ConstructorStream
Get the amount of constructors in this stream
size() - Method in class net.lenni0451.reflect.stream.field.FieldStream
Get the amount of fields in this stream
size() - Method in class net.lenni0451.reflect.stream.method.MethodStream
Get the amount of methods in this stream

T

TRUSTED_LOOKUP - Static variable in class net.lenni0451.reflect.JavaBypass
 
type() - Method in class net.lenni0451.reflect.stream.field.FieldWrapper
Get the type of the Field

U

UNSAFE - Static variable in class net.lenni0451.reflect.JavaBypass
 
A B C D E F G I J L M N O P R S T U 
Skip navigation links