Package org.burningwave.core.classes
Class JavaClass
java.lang.Object
io.github.toolfactory.jvm.util.JavaClass
org.burningwave.core.classes.JavaClass
- All Implemented Interfaces:
AutoCloseable,Closeable,Identifiable
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from class io.github.toolfactory.jvm.util.JavaClass
interfaceNames, modifiers, name, packageName, simpleName, superClassName -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()static JavaClassstatic JavaClasscreate(ByteBuffer byteCode) static <T,E extends Throwable>
TextractByUsing(ByteBuffer byteCode, ThrowingFunction<JavaClass, T, E> javaClassConsumer) protected ByteBuffergetPath()protected voidsetByteCode0(ByteBuffer byteCode) storeToClassPath(String classPathFolder) byte[]toString()static voiduse(ByteBuffer byteCode, Consumer<JavaClass> javaClassConsumer) Methods inherited from class io.github.toolfactory.jvm.util.JavaClass
create, getInterfaceNames, getName, getPackageName, getSimpleName, getSuperClassName, isAbstract, isAnnotation, isEnum, isFinal, isInterface, isPublicMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.burningwave.core.Closeable
closeResources, closeResources, createCloseResoucesTask, createCloseResoucesTaskMethods inherited from interface org.burningwave.core.Identifiable
getId, getOperationId
-
Constructor Details
-
JavaClass
-
JavaClass
-
-
Method Details
-
create
-
create
-
use
-
extractByUsing
public static <T,E extends Throwable> T extractByUsing(ByteBuffer byteCode, ThrowingFunction<JavaClass, T, throws EE> javaClassConsumer) - Throws:
E
-
getByteCode0
-
setByteCode0
-
getPackagePath
-
getClassFileName
-
getPath
-
getByteCode
-
toByteArray
public byte[] toByteArray() -
storeToClassPath
-
duplicate
-
toString
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-