THPDFContentSyntaxNode Record

Represents one compact node of the token-preserving content stream syntax tree with linked children and lexeme spans

Declaration

THPDFContentSyntaxNode= record
  Kind: THPDFContentSyntaxNodeKind;
  ParentIndex: Integer;
  FirstChildIndex: Integer;
  LastChildIndex: Integer;
  NextSiblingIndex: Integer;
  ChildCount: Integer;
  FirstLexemeIndex: Integer;
  LastLexemeIndex: Integer;
  OperatorLexemeIndex: Integer;
  StartOfs: Integer;
  EndOfs: Integer;
end;

Unit

HPDFContentStream

Fields

FieldPurpose
KindNode class: csnkRoot, csnkOperation, csnkOperand, csnkArray, csnkDictionary, csnkProcedure, csnkInlineImage, or csnkMalformed
ParentIndexIndex of the parent node, -1 when no parent is set
FirstChildIndexIndex of the first child node, -1 when the node has no children
LastChildIndexIndex of the last child node
NextSiblingIndexIndex of the next sibling, -1 at the end of a child list
ChildCountNumber of direct child nodes
FirstLexemeIndexFirst lexeme covered by the node in the lexeme array
LastLexemeIndexLast lexeme covered by the node
OperatorLexemeIndexLexeme holding the operator of an operation node, -1 for other node kinds
StartOfsByte offset where the node's source span starts
EndOfsByte offset just past the node's source span

Usage notes

Related APIs