public abstract class ExprInfo extends Object
Constructor and Description |
---|
ExprInfo() |
Modifier and Type | Method and Description |
---|---|
protected void |
addPlan(FElem plan,
FElem el,
ExprInfo... expr)
Adds trees of the specified expressions to the root node.
|
protected void |
addPlan(FElem plan,
FElem el,
Object... exprs)
Adds trees of the specified expressions to the root node.
|
String |
description()
Returns a string description of the expression.
|
abstract void |
plan(FElem e)
Creates an expression tree.
|
protected FAttr |
planAttr(Object name,
Object value)
Creates a new attribute to be added to the expression tree.
|
protected FElem |
planElem(Object... atts)
Creates a new element node to be added to the expression tree.
|
String |
toErrorString()
Returns a string representation of the expression that can be embedded in error messages.
|
abstract String |
toString() |
public String description()
toString()
method,
arguments are not included in the output.public String toErrorString()
toString()
.public abstract void plan(FElem e)
e
- root elementprotected FElem planElem(Object... atts)
atts
- optional attribute names and valuesprotected void addPlan(FElem plan, FElem el, Object... exprs)
plan
- root nodeel
- new elementexprs
- expressionsprotected void addPlan(FElem plan, FElem el, ExprInfo... expr)
plan
- root nodeel
- new elementexpr
- expressionsCopyright © 2005–2015 BaseX Team. All rights reserved.