Package org.basex.query.expr
Class ExprInfo
- java.lang.Object
-
- org.basex.query.expr.ExprInfo
-
- Direct Known Subclasses:
Expr
,FTOpt
,Pragma
,StaticFuncs
,StaticScope
,Test
,Var
,Variables
public abstract class ExprInfo extends Object
Expression information, used for debugging and logging.- Author:
- BaseX Team 2005-22, BSD License, Christian Gruen
-
-
Constructor Summary
Constructors Constructor Description ExprInfo()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description String
description()
Returns a string description of the expression.InputInfo
info()
Returns the input info of an expression.String
toErrorString()
Returns a string representation of the expression that can be embedded in error messages.String
toString()
abstract void
toString(QueryString qs)
Creates a query string.abstract void
toXml(QueryPlan plan)
Creates a query plan.
-
-
-
Method Detail
-
description
public String description()
Returns a string description of the expression. This method is only called by error messages. Contrary to thetoString()
method, arguments are not included in the output.- Returns:
- result of check
-
info
public InputInfo info()
Returns the input info of an expression.- Returns:
- info or
null
-
toXml
public abstract void toXml(QueryPlan plan)
Creates a query plan.- Parameters:
plan
- expression plan
-
toString
public abstract void toString(QueryString qs)
Creates a query string.- Parameters:
qs
- query string builder
-
toErrorString
public String toErrorString()
Returns a string representation of the expression that can be embedded in error messages. Defaults totoString()
.- Returns:
- class name
-
-