org.jboss.modules
Class ClassSpec

java.lang.Object
  extended by org.jboss.modules.ClassSpec

public final class ClassSpec
extends Object

A class definition specification.

Author:
David M. Lloyd

Constructor Summary
ClassSpec()
          Construct a new instance.
 
Method Summary
 AssertionSetting getAssertionSetting()
          Get the class assertion setting.
 byte[] getBytes()
          Get the class file bytes.
 CodeSource getCodeSource()
          Get the code source (should not be null).
 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 be null).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClassSpec

public ClassSpec()
Construct a new instance.

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 be null).

Returns:
the code source

setCodeSource

public void setCodeSource(CodeSource codeSource)
Set the code source (should not be null).

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


Copyright © 2011. All Rights Reserved.