Class CodeAttribute

java.lang.Object
com.strobel.assembler.ir.attributes.SourceAttribute
com.strobel.assembler.ir.attributes.CodeAttribute

public final class CodeAttribute extends SourceAttribute
  • Field Details

    • _maxStack

      private final int _maxStack
    • _maxLocals

      private final int _maxLocals
    • _codeSize

      private final int _codeSize
    • _codeOffset

      private final int _codeOffset
    • _code

      private final Buffer _code
    • _exceptionTableEntriesView

      private final List<ExceptionTableEntry> _exceptionTableEntriesView
    • _attributesView

      private final List<SourceAttribute> _attributesView
  • Constructor Details

    • CodeAttribute

      public CodeAttribute(int size, int maxStack, int maxLocals, int codeOffset, int codeSize, Buffer buffer, ExceptionTableEntry[] exceptionTableEntries, SourceAttribute[] attributes)
    • CodeAttribute

      public CodeAttribute(int size, int codeOffset, int codeSize, int maxStack, int maxLocals, ExceptionTableEntry[] exceptionTableEntries, SourceAttribute[] attributes)
  • Method Details

    • getMaxStack

      public int getMaxStack()
    • getMaxLocals

      public int getMaxLocals()
    • getCodeSize

      public int getCodeSize()
    • hasCode

      public boolean hasCode()
    • getCode

      public Buffer getCode()
    • getExceptionTableEntries

      public List<ExceptionTableEntry> getExceptionTableEntries()
    • getAttributes

      public List<SourceAttribute> getAttributes()
    • getCodeOffset

      public int getCodeOffset()