Class InspectFunctions


public final class InspectFunctions extends StandardFunc
Function implementation.
Author:
BaseX Team 2005-21, BSD License, Christian Gruen
  • Constructor Details

    • InspectFunctions

      public InspectFunctions()
  • Method Details

    • value

      public Value value(QueryContext qc) throws QueryException
      Description copied from class: Expr
      Evaluates the expression and returns the resulting value. If this method is not implemented, Expr.item(QueryContext, InputInfo) must be implemented instead.
      Overrides:
      value in class ParseExpr
      Parameters:
      qc - query context
      Returns:
      value
      Throws:
      QueryException - query exception
    • opt

      protected Expr opt(CompileContext cc)
      Description copied from class: StandardFunc
      Performs function specific optimizations.
      Overrides:
      opt in class StandardFunc
      Parameters:
      cc - compilation context
      Returns:
      optimized or original expression
    • has

      public boolean has(Flag... flags)
      Description copied from class: Expr
      Indicates if an expression has one of the specified compiler properties. This method must only be called at compile time. It is invoked to test properties of sub-expressions. It returns true if at least flag matches an expression.
      Overrides:
      has in class StandardFunc
      Parameters:
      flags - flags to be checked
      Returns:
      result of check