Package rubydragon.clojure
Class ClojureGhidraClassLoader
java.lang.Object
java.lang.ClassLoader
rubydragon.clojure.ClojureGhidraClassLoader
Custom classloader for Clojure scripts so that they don't have to be in the
classpath in order to be run.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfindResource
(String path) If the provided resource ends with ".clj", then the loader attempts to find it as a raw file, without using the classpath.Methods inherited from class java.lang.ClassLoader
clearAssertionStatus, getDefinedPackage, getDefinedPackages, getName, getParent, getPlatformClassLoader, getResource, getResourceAsStream, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, getUnnamedModule, isRegisteredAsParallelCapable, loadClass, resources, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus
-
Constructor Details
-
ClojureGhidraClassLoader
public ClojureGhidraClassLoader()
-
-
Method Details
-
findResource
If the provided resource ends with ".clj", then the loader attempts to find it as a raw file, without using the classpath. If the resource doesn't end with ".clj", then this classloader simply defers to its parent.- Parameters:
path
- The path to the resource. If this is a clojure script, it is expected to be a findable path.
-