Package io.quarkus.deployment.builditem
Class GeneratedClassBuildItem
java.lang.Object
io.quarkus.builder.item.BuildItem
io.quarkus.builder.item.MultiBuildItem
io.quarkus.deployment.builditem.GeneratedClassBuildItem
public final class GeneratedClassBuildItem
extends io.quarkus.builder.item.MultiBuildItem
A build item representing a Java class file generated during the build process.
This is a MultiBuildItem. Each instance holds information about a single generated class:
- Whether it's considered an application class (
isApplicationClass()). - The class name in binary format (e.g.,
com.example.MyClass) viabinaryName(). - The class name in internal format (e.g.,
com/example/MyClass) viainternalName(). - The raw bytecode of the class via
getClassData(). - Optional source file information for debugging via
getSource().
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionGeneratedClassBuildItem(boolean applicationClass, String name, byte[] classData) GeneratedClassBuildItem(boolean applicationClass, String name, byte[] classData, String source) -
Method Summary
Modifier and TypeMethodDescriptionReturns the binary name of the class, which is delimited by.characters.byte[]getName()Deprecated, for removal: This API element is subject to removal in a future version.This method may return the binary name, the internal name, or a hybrid thereof and should not be used.Returns the internal name of the class, which is delimited by/characters.booleantoString()
-
Field Details
-
Constructor Details
-
GeneratedClassBuildItem
-
GeneratedClassBuildItem
-
-
Method Details
-
isApplicationClass
public boolean isApplicationClass() -
getName
Deprecated, for removal: This API element is subject to removal in a future version.This method may return the binary name, the internal name, or a hybrid thereof and should not be used. UsebinaryName()orinternalName()instead.Returns a name for this class.- Returns:
- a name for this class
-
binaryName
Returns the binary name of the class, which is delimited by.characters.- Returns:
- the binary name of the class, which is delimited by
.characters
-
internalName
Returns the internal name of the class, which is delimited by/characters.- Returns:
- the internal name of the class, which is delimited by
/characters
-
getClassData
public byte[] getClassData() -
getSource
-
toString
-