goog.ds.Expr |
opt_expr
: string=
The string expression.
|
Gets the last part of the expression.
Returns: ?string
Last part of the expression.
|
code » | |||||
Gets the parent expression of this expression, or null if this is top level
Returns: goog.ds.Expr
The parent.
|
code » | |||||
Evaluate an expression on a data node, and return the first matching node
Recursively walks through child nodes to evaluate
Arguments:
Returns: goog.ds.DataNode
Matching nodes, or null if doesn't exist.
|
code » | |||||
Evaluate an expression on a data node, and return matching nodes
Recursively walks through child nodes to evaluate
Arguments:
Returns: goog.ds.DataNodeList
Matching nodes.
|
code » | |||||
Evaluate an expression on a data node, and return the first matching node
Recursively walks through child nodes to evaluate
Arguments:
Returns: goog.ds.DataNode | goog.ds.DataNodeList
Matching node or nodes,
depending on value of opt_selectOne.
|
code » | |||||
Gets the parent expression of this expression, or null if this is top level
Returns: goog.ds.Expr
The parent.
|
code » | |||||
Get the source data path for the expression
Returns: string
The path.
|
code » | |||||
![]()
Evaluate an expression on a data node, and return a value
Recursively walks through child nodes to evaluate
TODO(user) Support other expression functions
Arguments:
Returns: *
Value of the node, or null if doesn't exist.
|
code » | |||||
![]()
Set the source expression text & parse
Arguments:
|
code » |
![]()
Whether the expression can be null.
|
Code » | |
![]()
The function used by this expression
|
Code » | |
![]()
Does this expression select all DOM-style attribute nodes (starts with '@')
|
Code » | |
![]()
Does this expression select all DOM-style child nodes (element and text)
|
Code » | |
![]()
Does this expression select all DOM-style element child nodes
|
Code » | |
![]()
Whether the expression evaluates to current node
|
Code » | |
![]()
Whether the expression is just an attribute
|
Code » | |
![]()
The last path in the expression
|
Code » | |
Cached value for the next expression.
|
Code » | |
Cached value for the parent expression.
|
Code » | |
![]()
The parsed paths in the expression
|
Code » | |
![]()
The root node path in the expression
|
Code » | |
![]()
Number of paths in the expression
|
Code » |
Create an expression from a string, can use cached values
Arguments:
Returns: goog.ds.Expr
The expression object.
|
code » | |||||
Create an expression from a string, can use cached values
Uses hints from related expressions to help in creation
Arguments:
Returns: goog.ds.Expr
The expression object.
|
code » |
For DOM interop - all DOM attribute nodes
Attribute nodes have dataName starting with "@"
|
Code » | |
For DOM interop - all DOM child nodes (text + element).
Text nodes have dataName #text
|
Code » | |
For DOM interop - all DOM element child nodes
|
Code » | |
Get the count of nodes matching an expression
|
Code » | |
The current node
|
Code » | |
Get the dataName of a node
|
Code » | |
Get the position of the "current" node in the current node list
This will only apply for datasources that support the concept of a current
node (none exist yet). This is similar to XPath position() and concept of
current node
|
Code » | |
![]()
Cache of pre-parsed expressions
|
Code » |
![]()
Commonly used strings in expressions.
Constants:
|
Code » |