Top Description Fields Constructors Methods
org.jboss.modules

public final Class ClassSpec

extends Object
Class Inheritance
Imports
java.nio.ByteBuffer, java.security.CodeSource

A class definition specification.
Author
David M. Lloyd

Field Summary

Modifier and TypeField and Description
private AssertionSetting
private ByteBuffer
private byte[]
private CodeSource

Constructor Summary

AccessConstructor and Description
public
ClassSpec()

Construct a new instance.

Method Summary

Modifier and TypeMethod and Description
public AssertionSetting

Returns:

the assertion setting
getAssertionSetting
()

Get the class assertion setting.

public ByteBuffer

Returns:

the class byte buffer, if one is set; null otherwise
getByteBuffer
()

Get the class byte buffer, if one is set.

public byte[]

Returns:

the class file bytes, if they are set; null otherwise
getBytes
()

Get the class file bytes, if they are set.

public CodeSource

Returns:

the code source
getCodeSource
()

Get the code source (should not be null).

public ClassSpec

Returns:

this class specification
setAssertionSetting
(final AssertionSetting
the assertion setting
assertionSetting
)

Set the class assertion setting.

public void
public ClassSpec

Returns:

this class specification
setByteBuffer
(final ByteBuffer
the class byte buffer
byteBuffer
)

Set the class byte buffer.

public ClassSpec

Returns:

this class specification
setBytes
(final byte[]
the class file bytes
bytes
)

Set the class file bytes.

public void
setBytes$$bridge(final byte[] bytes)

public ClassSpec

Returns:

this class specification
setCodeSource
(final CodeSource
the code source
codeSource
)

Set the code source (should not be null).

public void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

assertionSettingback to summary
private AssertionSetting assertionSetting
byteBufferback to summary
private ByteBuffer byteBuffer
bytesback to summary
private byte[] bytes
codeSourceback to summary
private CodeSource codeSource

Constructor Detail

ClassSpecback to summary
public ClassSpec()

Construct a new instance.

Method Detail

getAssertionSettingback to summary
public AssertionSetting getAssertionSetting()

Get the class assertion setting.

Returns:AssertionSetting

the assertion setting

getByteBufferback to summary
public ByteBuffer getByteBuffer()

Get the class byte buffer, if one is set.

Returns:ByteBuffer

the class byte buffer, if one is set; null otherwise

getBytesback to summary
public byte[] getBytes()

Get the class file bytes, if they are set.

Returns:byte[]

the class file bytes, if they are set; null otherwise

getCodeSourceback to summary
public CodeSource getCodeSource()

Get the code source (should not be null).

Returns:CodeSource

the code source

setAssertionSettingback to summary
public ClassSpec setAssertionSetting(final AssertionSetting assertionSetting)

Set the class assertion setting.

Parameters
assertionSetting:AssertionSetting

the assertion setting

Returns:ClassSpec

this class specification

setAssertionSetting$$bridgeback to summary
public void setAssertionSetting$$bridge(final AssertionSetting assertionSetting)
setByteBufferback to summary
public ClassSpec setByteBuffer(final ByteBuffer byteBuffer)

Set the class byte buffer. Calling this method will clear any previously set class byte[].

Parameters
byteBuffer:ByteBuffer

the class byte buffer

Returns:ClassSpec

this class specification

setBytesback to summary
public ClassSpec setBytes(final byte[] bytes)

Set the class file bytes. Calling this method will clear any previously set ByteBuffer.

Parameters
bytes:byte[]

the class file bytes

Returns:ClassSpec

this class specification

setBytes$$bridgeback to summary
public void setBytes$$bridge(final byte[] bytes)
setCodeSourceback to summary
public ClassSpec setCodeSource(final CodeSource codeSource)

Set the code source (should not be null).

Parameters
codeSource:CodeSource

the code source

Returns:ClassSpec

this class specification

setCodeSource$$bridgeback to summary
public void setCodeSource$$bridge(final CodeSource codeSource)