Index

A B C D E G H I J L M N O P R S T U V W 
All Classes and Interfaces|All Packages|Constant Field Values

A

addFromDirectory(Path) - Method in class net.uptheinter.interceptify.util.JarFiles
Adds all jar files found directly in the path that you provide.
In other words, it doesn't recurse.
Does nothing if you don't pass a valid directory.
after() - Element in annotation interface net.uptheinter.interceptify.annotations.OverwriteConstructor
 
agentmain(String, Instrumentation) - Static method in class net.uptheinter.interceptify.EntryPoint
Placeholder function for future runtime Java Agent registration.
AutoCloser<T> - Class in net.uptheinter.interceptify.util
This is a generic type for facilitating a try-with-resources on any operation where something should be done at the end of the scope.
What that happens to be can either just be a pair of function calls or an actual object; it depends on the constructor you use.
AutoCloser(Runnable, Runnable) - Constructor for class net.uptheinter.interceptify.util.AutoCloser
 
AutoCloser(T, Runnable) - Constructor for class net.uptheinter.interceptify.util.AutoCloser
 
AutoCloser(T, Consumer<T>) - Constructor for class net.uptheinter.interceptify.util.AutoCloser
 

B

before() - Element in annotation interface net.uptheinter.interceptify.annotations.OverwriteConstructor
 
Boxed<T> - Class in net.uptheinter.interceptify.util
This is a generic class for composing operations over a type.
Boxed(T) - Constructor for class net.uptheinter.interceptify.util.Boxed
 

C

CENATT - Static variable in class net.uptheinter.interceptify.util.JarEntryEx
 
CENATX - Static variable in class net.uptheinter.interceptify.util.JarEntryEx
 
CENCOM - Static variable in class net.uptheinter.interceptify.util.JarEntryEx
 
CENCRC - Static variable in class net.uptheinter.interceptify.util.JarEntryEx
 
CENDSK - Static variable in class net.uptheinter.interceptify.util.JarEntryEx
 
CENEXT - Static variable in class net.uptheinter.interceptify.util.JarEntryEx
 
CENFLG - Static variable in class net.uptheinter.interceptify.util.JarEntryEx
 
CENHDR - Static variable in class net.uptheinter.interceptify.util.JarEntryEx
 
CENHOW - Static variable in class net.uptheinter.interceptify.util.JarEntryEx
 
CENLEN - Static variable in class net.uptheinter.interceptify.util.JarEntryEx
 
CENNAM - Static variable in class net.uptheinter.interceptify.util.JarEntryEx
 
CENOFF - Static variable in class net.uptheinter.interceptify.util.JarEntryEx
 
CENSIG - Static variable in class net.uptheinter.interceptify.util.JarEntryEx
 
CENSIZ - Static variable in class net.uptheinter.interceptify.util.JarEntryEx
 
CENTIM - Static variable in class net.uptheinter.interceptify.util.JarEntryEx
 
CENVEM - Static variable in class net.uptheinter.interceptify.util.JarEntryEx
 
CENVER - Static variable in class net.uptheinter.interceptify.util.JarEntryEx
 
close() - Method in class net.uptheinter.interceptify.util.AutoCloser
Invokes the closer.

D

DebugError(Throwable) - Static method in class net.uptheinter.interceptify.util.Util
Prints an exception's message and stack trace to stderr.

E

ENDCOM - Static variable in class net.uptheinter.interceptify.util.JarEntryEx
 
ENDHDR - Static variable in class net.uptheinter.interceptify.util.JarEntryEx
 
ENDOFF - Static variable in class net.uptheinter.interceptify.util.JarEntryEx
 
ENDSIG - Static variable in class net.uptheinter.interceptify.util.JarEntryEx
 
ENDSIZ - Static variable in class net.uptheinter.interceptify.util.JarEntryEx
 
ENDSUB - Static variable in class net.uptheinter.interceptify.util.JarEntryEx
 
ENDTOT - Static variable in class net.uptheinter.interceptify.util.JarEntryEx
 
entryPoint(StartupConfig, String[]) - Static method in class net.uptheinter.interceptify.EntryPoint
This is the entrypoint to Interceptify.
EntryPoint - Class in net.uptheinter.interceptify
This is the entrypoint for setting up interception.
equals(Object) - Method in class net.uptheinter.interceptify.util.JarFileEx
Compares this instance to another.
EXTCRC - Static variable in class net.uptheinter.interceptify.util.JarEntryEx
 
EXTHDR - Static variable in class net.uptheinter.interceptify.util.JarEntryEx
 
EXTLEN - Static variable in class net.uptheinter.interceptify.util.JarEntryEx
 
EXTSIG - Static variable in class net.uptheinter.interceptify.util.JarEntryEx
 
EXTSIZ - Static variable in class net.uptheinter.interceptify.util.JarEntryEx
 

G

get() - Method in class net.uptheinter.interceptify.util.AutoCloser
 
get() - Method in class net.uptheinter.interceptify.util.Boxed
Intended for finalising operations when you no longer need to use run()
getClasses() - Method in class net.uptheinter.interceptify.util.JarFileEx
Returns a list of all entries in this Jar file that are considered to be Java classes.
Basically, every file ending in .class
getClassName() - Method in class net.uptheinter.interceptify.util.JarEntryEx
Obtains a fully-qualified class name for this entry.
E.g.
getClasspaths() - Method in interface net.uptheinter.interceptify.interfaces.StartupConfig
This should return a List of URLs to be included in a "fake" classpath.
getFile() - Method in class net.uptheinter.interceptify.util.JarFileEx
 
getJarFilesToInject() - Method in interface net.uptheinter.interceptify.interfaces.StartupConfig
This should return a JarFiles object that you have populated with whatever Jar files you wish to be processed for injection and interception.
getRealMain() - Method in interface net.uptheinter.interceptify.interfaces.StartupConfig
This function should return the entrypoint to execute after all interception and class modification has completed.

H

hashCode() - Method in class net.uptheinter.interceptify.util.JarFileEx
Obtains the hashCode from the File this instance is referencing.

I

init(StartupConfig) - Static method in class net.uptheinter.interceptify.internal.RuntimeHook
This function kicks everything off, but you should use EntryPoint - this class may be changed arbitrarily in future releases.
InterceptClass - Annotation Interface in net.uptheinter.interceptify.annotations
A class annotated with this will be processed for interception.
iterator() - Method in class net.uptheinter.interceptify.util.JarFiles
 

J

JarEntryEx - Class in net.uptheinter.interceptify.util
Essentially the same as JarFile with a few extra functions for convenience.
JarEntryEx(String) - Constructor for class net.uptheinter.interceptify.util.JarEntryEx
Constructs an entry with a string for the name
JarEntryEx(JarEntry) - Constructor for class net.uptheinter.interceptify.util.JarEntryEx
Constructs an instance from an existing JarEntry.
JarEntryEx(ZipEntry) - Constructor for class net.uptheinter.interceptify.util.JarEntryEx
Constructs an entry from an existing ZipEntry
JarFileEx - Class in net.uptheinter.interceptify.util
Essentially the same as JarFile with a few extra convenience functions.
JarFileEx(File) - Constructor for class net.uptheinter.interceptify.util.JarFileEx
 
JarFiles - Class in net.uptheinter.interceptify.util
Represents a collection of Jar files, de-duplicated.
JarFiles() - Constructor for class net.uptheinter.interceptify.util.JarFiles
 

L

LOCCRC - Static variable in class net.uptheinter.interceptify.util.JarEntryEx
 
LOCEXT - Static variable in class net.uptheinter.interceptify.util.JarEntryEx
 
LOCFLG - Static variable in class net.uptheinter.interceptify.util.JarEntryEx
 
LOCHDR - Static variable in class net.uptheinter.interceptify.util.JarEntryEx
 
LOCHOW - Static variable in class net.uptheinter.interceptify.util.JarEntryEx
 
LOCLEN - Static variable in class net.uptheinter.interceptify.util.JarEntryEx
 
LOCNAM - Static variable in class net.uptheinter.interceptify.util.JarEntryEx
 
LOCSIG - Static variable in class net.uptheinter.interceptify.util.JarEntryEx
 
LOCSIZ - Static variable in class net.uptheinter.interceptify.util.JarEntryEx
 
LOCTIM - Static variable in class net.uptheinter.interceptify.util.JarEntryEx
 
LOCVER - Static variable in class net.uptheinter.interceptify.util.JarEntryEx
 

M

makePublic() - Method in interface net.uptheinter.interceptify.interfaces.StartupConfig
This function should return a set of fully-qualified class names that will have their fields and methods made public.

N

net.uptheinter.interceptify - package net.uptheinter.interceptify
Interceptify provides a convenient means of performing runtime class interception.
net.uptheinter.interceptify.annotations - package net.uptheinter.interceptify.annotations
This package contains the annotations that you should apply to your own classes and methods for runtime interception.
net.uptheinter.interceptify.interfaces - package net.uptheinter.interceptify.interfaces
This package contains interfaces you should implement and pass to EntryPoint.entryPoint
net.uptheinter.interceptify.internal - package net.uptheinter.interceptify.internal
Everything under this package is considered internal to Interceptify.
net.uptheinter.interceptify.util - package net.uptheinter.interceptify.util
This package contains an assortment of convenience functions which are primarily intended for the benefit of Interceptify - however, they are considered public and consequently will honour semantic versioning.

O

OverwriteConstructor - Annotation Interface in net.uptheinter.interceptify.annotations
Annotates a static method to indicate it will be intercepting a constructor of the target class.
OverwriteMethod - Annotation Interface in net.uptheinter.interceptify.annotations
Annotates a static method to indicate it will be intercepting a method in a target.

P

premain(String, Instrumentation) - Static method in class net.uptheinter.interceptify.EntryPoint
This function should be called by the JVM by setting this class up as a Java Agent.
premain(String, Instrumentation) - Static method in class net.uptheinter.interceptify.internal.RuntimeHook
This function should be called by the JVM, however, you could also ostensibly call it from your own Java Agent - though since multiple Java Agents can be registered, such a scenario is unsupported.

R

run(UnaryOperator<T>) - Method in class net.uptheinter.interceptify.util.Boxed
 
RuntimeHook - Class in net.uptheinter.interceptify.internal
This is the primary point at which intercepting logic kicks off.

S

set(T) - Method in class net.uptheinter.interceptify.util.Boxed
If, for some reason you need to overwrite the type that is currently boxed, use this.
shouldMakePublic(String) - Method in interface net.uptheinter.interceptify.interfaces.StartupConfig
This function should return true if, after examining the string parameter, you wish to have that particular class made public.
StartupConfig - Interface in net.uptheinter.interceptify.interfaces
This interface must be implemented by your application hook.
stream() - Method in class net.uptheinter.interceptify.util.JarFiles
 

T

toURL(Path) - Static method in class net.uptheinter.interceptify.util.Util
This is a convenience function for trying to convert a Path to a URI.
Prints to stderr if an exception is thrown.

U

Util - Class in net.uptheinter.interceptify.util
General utility class with a few modestly useful functions.

V

value() - Element in annotation interface net.uptheinter.interceptify.annotations.InterceptClass
 
value() - Element in annotation interface net.uptheinter.interceptify.annotations.OverwriteMethod
 

W

walk(Path, int) - Static method in class net.uptheinter.interceptify.util.Util
It's Files.walk(java.nio.file.Path, int, java.nio.file.FileVisitOption...), but it catches exceptions and logs them.
A B C D E G H I J L M N O P R S T U V W 
All Classes and Interfaces|All Packages|Constant Field Values