public class

CodeAnchor

extends Object
implements IAnchor
java.lang.Object
   ↳ com.pnfsoftware.jeb.core.output.code.CodeAnchor

Class Overview

Named anchors for code documents. Such anchors are created via registerAnchor(String).

Note: this class uses integers internally, even though getIdenfier() returns a long. Therefore, code documents are limited to 2B LoC.

Summary

Public Methods
long getIdentifier()
Get the anchor identifier.
int getLineIndex()
Get the line index, within the document part, of the first line (the anchor line) of the anchored chunk.
String getName()
Get the name of this anchor.
String toString()
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.pnfsoftware.jeb.core.output.text.IAnchor

Public Methods

public long getIdentifier ()

Get the anchor identifier. The identifier is a zero+ index number.

Returns
  • the identifier

public int getLineIndex ()

Get the line index, within the document part, of the first line (the anchor line) of the anchored chunk.

Returns
  • the identifier

public String getName ()

Get the name of this anchor.

Returns
  • the anchor name

public String toString ()