Class CodeContext.Offset

  • Direct Known Subclasses:
    CodeContext.Inserter, CodeContext.LineNumberOffset
    Enclosing class:
    CodeContext

    public class CodeContext.Offset
    extends Object
    A class that represents an offset within a "Code" attribute.

    The concept of an "offset" is that if one writes into the middle of a "Code" attribute, all offsets behind the insertion point are automatically shifted.

    • Constructor Detail

      • Offset

        public Offset()
    • Method Detail

      • set

        public void set()
        Sets this "Offset" to the offset of the current inserter; inserts this "Offset" before the current inserter.
      • setOffset

        public void setOffset()
      • getStackMap

        public org.codehaus.janino.StackMap getStackMap()
      • setStackMap

        public void setStackMap​(org.codehaus.janino.StackMap stackMap)