Class DbText

  • Direct Known Subclasses:
    DbAttribute

    public class DbText
    extends StandardFunc
    Function implementation.
    Author:
    BaseX Team 2005-23, BSD License, Christian Gruen
    • Constructor Detail

      • DbText

        public DbText()
    • Method Detail

      • iter

        public Iter iter​(QueryContext qc)
                  throws QueryException
        Description copied from class: Expr
        Evaluates the expression and returns an iterator on the resulting items. The implementation of this method is optional.
        Overrides:
        iter in class ParseExpr
        Parameters:
        qc - query context
        Returns:
        iterator
        Throws:
        QueryException - query exception
      • toName

        protected final String toName​(Expr expr,
                                      boolean empty,
                                      QueryContext qc)
                               throws QueryException
        Evaluates an expression to a database name.
        Parameters:
        expr - expression
        empty - allow empty name
        qc - query context
        Returns:
        database name (empty string for general data)
        Throws:
        QueryException - query exception
      • accept

        public boolean accept​(ASTVisitor visitor)
        Description copied from class: Expr
        Traverses this expression, notifying the visitor of declared and used variables, and checking the tree for other recursive properties.
        Overrides:
        accept in class Arr
        Parameters:
        visitor - visitor
        Returns:
        if the walk should be continued