Package org.basex.query.func
Class FuncDefinition
- java.lang.Object
-
- org.basex.query.func.FuncDefinition
-
public final class FuncDefinition extends Object
Definition of a built-in function.- Author:
- BaseX Team 2005-24, BSD License, Christian Gruen
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StandardFunc
get(InputInfo info, Expr... args)
Creates a new function instance.boolean
has(Flag flag)
Indicates if an expression has the specified compiler property.byte[]
local()
Returns the local name of the function.static int[]
minMax(String desc)
Computes the minimum and maximum number of parameters by analyzing the description string.String
toString()
byte[]
uri()
Returns the namespace URI of this function.boolean
variadic()
Indicates if this is a variadic function.
-
-
-
Field Detail
-
seqType
public final SeqType seqType
Result type.
-
-
Method Detail
-
minMax
public static int[] minMax(String desc)
Computes the minimum and maximum number of parameters by analyzing the description string.- Parameters:
desc
- description- Returns:
- min/max values
-
uri
public byte[] uri()
Returns the namespace URI of this function.- Returns:
- function
-
has
public boolean has(Flag flag)
Indicates if an expression has the specified compiler property.- Parameters:
flag
- flag- Returns:
- result of check
- See Also:
Expr.has(Flag...)
-
local
public byte[] local()
Returns the local name of the function.- Returns:
- name
-
variadic
public boolean variadic()
Indicates if this is a variadic function.- Returns:
- result of check
-
get
public StandardFunc get(InputInfo info, Expr... args)
Creates a new function instance.- Parameters:
info
- input info (can benull
)args
- function arguments- Returns:
- function
-
-