Package org.jboss.modules
Class ClassSpec
- java.lang.Object
-
- org.jboss.modules.ClassSpec
-
public final class ClassSpec extends java.lang.ObjectA 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 AssertionSettinggetAssertionSetting()Get the class assertion setting.java.nio.ByteBuffergetByteBuffer()Get the class byte buffer, if one is set.byte[]getBytes()Get the class file bytes, if they are set.java.security.CodeSourcegetCodeSource()Get the code source (should not benull).ClassSpecsetAssertionSetting(AssertionSetting assertionSetting)Set the class assertion setting.voidsetAssertionSetting$$bridge(AssertionSetting assertionSetting)ClassSpecsetByteBuffer(java.nio.ByteBuffer byteBuffer)Set the class byte buffer.ClassSpecsetBytes(byte[] bytes)Set the class file bytes.voidsetBytes$$bridge(byte[] bytes)ClassSpecsetCodeSource(java.security.CodeSource codeSource)Set the code source (should not benull).voidsetCodeSource$$bridge(java.security.CodeSource codeSource)
-
-
-
Method Detail
-
getBytes
public byte[] getBytes()
Get the class file bytes, if they are set.- Returns:
- the class file bytes, if they are set;
nullotherwise
-
setBytes
public ClassSpec setBytes(byte[] bytes)
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
public java.nio.ByteBuffer getByteBuffer()
Get the class byte buffer, if one is set.- Returns:
- the class byte buffer, if one is set;
nullotherwise
-
setByteBuffer
public ClassSpec setByteBuffer(java.nio.ByteBuffer byteBuffer)
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
public java.security.CodeSource getCodeSource()
Get the code source (should not benull).- Returns:
- the code source
-
setCodeSource
public ClassSpec setCodeSource(java.security.CodeSource codeSource)
Set the code source (should not benull).- Parameters:
codeSource- the code source- Returns:
- this class specification
-
setCodeSource$$bridge
public void setCodeSource$$bridge(java.security.CodeSource codeSource)
-
getAssertionSetting
public AssertionSetting getAssertionSetting()
Get the class assertion setting.- Returns:
- the assertion setting
-
setAssertionSetting
public ClassSpec setAssertionSetting(AssertionSetting assertionSetting)
Set the class assertion setting.- Parameters:
assertionSetting- the assertion setting- Returns:
- this class specification
-
setAssertionSetting$$bridge
public void setAssertionSetting$$bridge(AssertionSetting assertionSetting)
-
-