Package org.jboss.modules
Class ClassSpec
java.lang.Object
org.jboss.modules.ClassSpec
A class definition specification.
- Author:
- David M. Lloyd
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the class assertion setting.Get the class byte buffer, if one is set.byte[]
getBytes()
Get the class file bytes, if they are set.Get the code source (should not benull
).setAssertionSetting
(AssertionSetting assertionSetting) Set the class assertion setting.void
setAssertionSetting$$bridge
(AssertionSetting assertionSetting) setByteBuffer
(ByteBuffer byteBuffer) Set the class byte buffer.setBytes
(byte[] bytes) Set the class file bytes.void
setBytes$$bridge
(byte[] bytes) setCodeSource
(CodeSource codeSource) Set the code source (should not benull
).void
setCodeSource$$bridge
(CodeSource codeSource)
-
Constructor Details
-
ClassSpec
public ClassSpec()Construct a new instance.
-
-
Method Details
-
getBytes
public byte[] getBytes()Get the class file bytes, if they are set.- Returns:
- the class file bytes, if they are set;
null
otherwise
-
setBytes
Set the class file bytes. Calling this method will clear any previously setByteBuffer
.- Parameters:
bytes
- the class file bytes- Returns:
- this class specification
-
setBytes$$bridge
public void setBytes$$bridge(byte[] bytes) -
getByteBuffer
Get the class byte buffer, if one is set.- Returns:
- the class byte buffer, if one is set;
null
otherwise
-
setByteBuffer
Set the class byte buffer. Calling this method will clear any previously set classbyte[]
.- Parameters:
byteBuffer
- the class byte buffer- Returns:
- this class specification
-
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- Returns:
- this class specification
-
setCodeSource$$bridge
-
getAssertionSetting
Get the class assertion setting.- Returns:
- the assertion setting
-
setAssertionSetting
Set the class assertion setting.- Parameters:
assertionSetting
- the assertion setting- Returns:
- this class specification
-
setAssertionSetting$$bridge
-