Package org.basex.query.func.inspect
Class Inspect
java.lang.Object
org.basex.query.func.inspect.Inspect
Abstract inspector class.
- Author:
- BaseX Team 2005-21, BSD License, Christian Gruen
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final byte[]Documentation: description tag.static final byte[]Documentation: param tag.static final byte[]Documentation: return tag.static final byte[][]Supported documentation tags. -
Method Summary
Modifier and TypeMethodDescriptionstatic voidParses a string as XML and adds the resulting nodes to the specified parent.static byte[]doc(TokenObjMap<TokenList> doc, byte[] name) Returns a value for the specified parameter ornull.protected abstract FElemCreates a new element.protected abstract FElemCreates an element.abstract FElemParses a module and returns an inspection element.
-
Field Details
-
DOC_TAGS
public static final byte[][] DOC_TAGSSupported documentation tags. -
DOC_DESCRIPTION
public static final byte[] DOC_DESCRIPTIONDocumentation: description tag. -
DOC_PARAM
public static final byte[] DOC_PARAMDocumentation: param tag. -
DOC_RETURN
public static final byte[] DOC_RETURNDocumentation: return tag.
-
-
Method Details
-
parse
Parses a module and returns an inspection element.- Parameters:
io- input reference- Returns:
- inspection element
- Throws:
QueryException- query exception
-
elem
Creates a new element.- Parameters:
name- element nameparent- parent element- Returns:
- element
-
elem
Creates an element.- Parameters:
name- name of elementparent- parent element- Returns:
- element node
-
add
Parses a string as XML and adds the resulting nodes to the specified parent.- Parameters:
value- string to parseelem- element
-
doc
Returns a value for the specified parameter ornull.- Parameters:
doc- documentationname- parameter name- Returns:
- documentation of specified variable or
null
-