Package org.jboss.modules
Class ClassSpec
- java.lang.Object
-
- org.jboss.modules.ClassSpec
-
public final class ClassSpec extends Object
A class definition specification.- Author:
- David M. Lloyd
-
-
Constructor Summary
Constructors Constructor Description ClassSpec()
Construct a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AssertionSetting
getAssertionSetting()
Get the class assertion setting.byte[]
getBytes()
Get the class file bytes.CodeSource
getCodeSource()
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
).
-
-
-
Method Detail
-
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
public CodeSource getCodeSource()
Get the code source (should not benull
).- Returns:
- the code source
-
setCodeSource
public void setCodeSource(CodeSource codeSource)
Set the code source (should not benull
).- Parameters:
codeSource
- the code source
-
getAssertionSetting
public AssertionSetting getAssertionSetting()
Get the class assertion setting.- Returns:
- the assertion setting
-
setAssertionSetting
public void setAssertionSetting(AssertionSetting assertionSetting)
Set the class assertion setting.- Parameters:
assertionSetting
- the assertion setting
-
-