Package org.burningwave.core.classes
Class JavaClass
java.lang.Object
org.burningwave.core.classes.JavaClass
- All Implemented Interfaces:
AutoCloseable,Closeable,Identifiable
public class JavaClass extends Object implements Closeable
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static classJavaClass.Criteria -
Method Summary
Modifier and Type Method Description voidclose()static JavaClasscreate(Class<?> cls)static JavaClasscreate(ByteBuffer byteCode)JavaClassduplicate()static <T, E extends Throwable>
TextractByUsing(ByteBuffer byteCode, ThrowingFunction<JavaClass,T,E> javaClassConsumer)ByteBuffergetByteCode()StringgetClassFileName()StringgetName()StringgetPackageName()StringgetPackagePath()StringgetPath()StringgetSimpleName()FileSystemItemstoreToClassPath(String classPathFolder)byte[]toByteArray()StringtoString()static voiduse(ByteBuffer byteCode, Consumer<JavaClass> javaClassConsumer)Methods 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
-
Method Details
-
create
-
create
-
use
-
extractByUsing
public static <T, E extends Throwable> T extractByUsing(ByteBuffer byteCode, ThrowingFunction<JavaClass,T,E> javaClassConsumer) throws E extends Throwable- Throws:
E extends Throwable
-
getPackageName
-
getSimpleName
-
getPackagePath
-
getClassFileName
-
getPath
-
getName
-
getByteCode
-
toByteArray
public byte[] toByteArray() -
storeToClassPath
-
duplicate
-
toString
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-