Package org.jboss.modules
Class ClassSpec
- java.lang.Object
-
- org.jboss.modules.ClassSpec
-
public final class ClassSpec extends java.lang.ObjectA class definition specification.
-
-
Field Summary
Fields Modifier and Type Field Description private AssertionSettingassertionSettingprivate byte[]bytesprivate java.security.CodeSourcecodeSource
-
Constructor Summary
Constructors Constructor Description ClassSpec()Construct a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AssertionSettinggetAssertionSetting()Get the class assertion setting.byte[]getBytes()Get the class file bytes.java.security.CodeSourcegetCodeSource()Get the code source (should not benull).voidsetAssertionSetting(AssertionSetting assertionSetting)Set the class assertion setting.voidsetBytes(byte[] bytes)Set the class file bytes.voidsetCodeSource(java.security.CodeSource codeSource)Set the code source (should not benull).
-
-
-
Field Detail
-
bytes
private byte[] bytes
-
codeSource
private java.security.CodeSource codeSource
-
assertionSetting
private AssertionSetting assertionSetting
-
-
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 java.security.CodeSource getCodeSource()
Get the code source (should not benull).- Returns:
- the code source
-
setCodeSource
public void setCodeSource(java.security.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
-
-