Class ClassSpec

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

public final class ClassSpec extends Object
A class definition specification.
  • Field Details

    • bytes

      private byte[] bytes
    • codeSource

      private CodeSource codeSource
    • assertionSetting

      private AssertionSetting assertionSetting
  • Constructor Details

    • ClassSpec

      public ClassSpec()
      Construct a new instance.
  • Method Details

    • 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