[Overview][Types][Classes][Procedures and functions][Index] Reference for unit 'Laz2_XPath' (#lazutils)

TXPathScanner

[Properties (by Name)] [Methods (by Name)] [Events (by Name)]

Implements a lexical scanner and parser using XPath syntax and semantics.

Declaration

Source position: laz2_xpath.pas line 329

type TXPathScanner = class

public

  constructor Create();

  

Constructor for the class instance.

  function NextToken;

  

Gets the next token in the XPath expression.

  function PeekToken;

  

Peeks at the token kind for the next lexical element.

  function SkipToken();

  

Skips the current token when it is not an error.

  property CurToken: TXPathToken; [r]

  

Current token kind in the lexical analysis.

  property CurTokenString: DOMString; [r]

  

Current token value in the lexical analysis.

end;

Inheritance

TXPathScanner

  

Implements a lexical scanner and parser using XPath syntax and semantics.

|

TObject

Description

TXPathScanner is a class which implements a lexical scanner/parser using the syntax and semantics defined in XPath (XML Path Language). TXPathScanner provides methods used to tokenize and parse the XPath Expression types defined in the specification, at:

XML Path Language (XPath) Version 1.0 W3C Recommendation 16 November 1999

TXPathScanner examines an XPath expression, and creates a parse tree representing the lexical and syntactic elements found in the expression. The parse tree consists of TXPathExprNode (and descendent) class instances which evaluate the XPath expressions and generate the result(s).

TXPathScanner is used in the implementation of the TXPathExpression class and the EvaluateXPathExpression routine.

See also

TXPathExprNode

  

Defines the base class used to evaluate XPath expressions.

TXPathExpression

  

Evaluates an XPath expression using the specified scanner and resolver.

EvaluateXPathExpression

  

Evaluates an XPath expression using the specified context node and optional namespace resolver.


Version 4.0 Generated 2025-05-03 Home