Package org.jboss.modules
Class ClassSpec
java.lang.Object
org.jboss.modules.ClassSpec
A class definition specification.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the class assertion setting.byte[]
getBytes()
Get the class file bytes.Get the code source (should not benull
).void
setAssertionSetting
(AssertionSetting assertionSetting) Set the class assertion setting.void
setBytes
(byte[] bytes) Set the class file bytes.void
setCodeSource
(CodeSource codeSource) Set the code source (should not benull
).
-
Field Details
-
bytes
private byte[] bytes -
codeSource
-
assertionSetting
-
-
Constructor Details
-
ClassSpec
public ClassSpec()Construct a new instance.
-
-
Method Details
-
getBytes
public byte[] getBytes()Get the class file bytes.- Returns:
- the class file bytes
-
setBytes
public void setBytes(byte[] bytes) Set the class file bytes.- Parameters:
bytes
- the class file bytes
-
getCodeSource
Get the code source (should not benull
).- Returns:
- the code source
-
setCodeSource
Set the code source (should not benull
).- Parameters:
codeSource
- the code source
-
getAssertionSetting
Get the class assertion setting.- Returns:
- the assertion setting
-
setAssertionSetting
Set the class assertion setting.- Parameters:
assertionSetting
- the assertion setting
-