Class CodeAnchor

java.lang.Object
com.pnfsoftware.jeb.core.output.code.CodeAnchor
All Implemented Interfaces:
IAnchor

public class CodeAnchor extends Object implements IAnchor
Named anchors for code documents. Such anchors are created via CodeDocumentPart.registerAnchor(String). They are limited to a 32-bit addressing space.
  • Method Details

    • getIdentifier

      public long getIdentifier()
      Description copied from interface: IAnchor
      Get the anchor identifier. The identifier is a zero+ index number.
      Specified by:
      getIdentifier in interface IAnchor
      Returns:
      the identifier
    • getLineIndex

      public int getLineIndex()
      Description copied from interface: IAnchor
      Get the line index, within the document part, of the first line (the anchor line) of the anchored chunk.
      Specified by:
      getLineIndex in interface IAnchor
      Returns:
      the identifier
    • getName

      public String getName()
      Get the name of this anchor.
      Returns:
      the anchor name
    • toString

      public String toString()
      Overrides:
      toString in class Object