Class UtilReplicate


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

    • UtilReplicate

      public UtilReplicate()
  • 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
    • 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
    • opt

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

      public Expr simplifyFor(CompileContext.Simplify mode, CompileContext cc) throws QueryException
      Description copied from class: Expr
      This function is called at compile time for expressions whose operands might be simplified.
      Overrides:
      simplifyFor in class Expr
      Parameters:
      mode - mode of simplification
      cc - compilation context
      Returns:
      simplified or original expression
      Throws:
      QueryException - query exception
      See Also:
    • singleEval

      public boolean singleEval()
      Indicates if the input argument will be evaluated at most once.
      Returns:
      result of check
    • once

      public boolean once()
      Indicates if the input argument will be evaluated exactly once.
      Returns:
      result of check, false if unknown at compile time