Package org.basex.query
Class QueryPlan
java.lang.Object
org.basex.query.QueryPlan
Query plan builder.
- Author:
- BaseX Team 2005-21, BSD License, Christian Gruen
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds children to the specified element.voidAdds children to the specified element.voidaddAttribute(FElem elem, Object name, Object value) Adds an attribute to the specified element if the specified value is notnull.voidaddElement(FElem elem, FElem child) Adds a child element to the specified element.attachVariable(FElem elem, Var var, boolean type) Attaches variable information to the specified element.Creates a new element node to be added to the query plan.Creates a new element node to be added to the query plan.root()Returns the root node.
-
Constructor Details
-
QueryPlan
public QueryPlan(boolean compiled, boolean updating, boolean full) Constructor.- Parameters:
compiled- compiled flagupdating- updating flagfull- include comprehensive information
-
-
Method Details
-
root
Returns the root node.- Returns:
- root node
-
add
Adds children to the specified element.- Parameters:
elem- new elementchildren- expressions to be added (nullreferences will be ignored)
-
add
Adds children to the specified element.- Parameters:
elem- new elementchildren- expressions (nullreferences will be ignored)
-
create
Creates a new element node to be added to the query plan.- Parameters:
expr- calling expressionatts- attribute names and values- Returns:
- element
-
create
Creates a new element node to be added to the query plan.- Parameters:
name- name of elementvar- variable to attach (can benull)- Returns:
- element
-
addAttribute
Adds an attribute to the specified element if the specified value is notnull.- Parameters:
elem- element to which the attribute will be addedname- namevalue- value ornull
-
addElement
Adds a child element to the specified element.- Parameters:
elem- element to which the attribute will be addedchild- child element
-
attachVariable
Attaches variable information to the specified element.- Parameters:
elem- element to which attributes will be addedvar- variable (can benull)type- include type information- Returns:
- specified element
-