| Modifier and Type | Field and Description |
|---|---|
| private final List | _predicates
Array of predicates in '(e)[p1]...[pn]'. |
| private Expression | _primary
Primary expression of this filter. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected Expression | |
| public void | setParser(Parser parser)
Overrides com. Set this node's parser. |
| public String | toString()
Implements abstract com. Returns a string representation of the object. |
| public void | translate(ClassGenerator classGen, MethodGenerator methodGen)
Overrides com. Translate a filter expression by pushing the appropriate iterator onto the stack. |
| private void | |
| public void | translatePredicates(ClassGenerator classGen, MethodGenerator methodGen, int predicateIndex)
Translate a sequence of predicates. |
| public Type | typeCheck(SymbolTable stable)
Overrides com. Type check a FilterParentPath. |
| _predicates | back to summary |
|---|---|
| private final List<Expression> _predicates Array of predicates in '(e)[p1]...[pn]'. | |
| _primary | back to summary |
|---|---|
| private Expression _primary Primary expression of this filter. I.e., 'e' in '(e)[p1]...[pn]'. | |
| FilterExpr | back to summary |
|---|---|
| public FilterExpr(Expression primary, List<Expression> predicates) | |
| getExpr | back to summary |
|---|---|
| protected Expression getExpr() | |
| setParser | back to summary |
|---|---|
| public void setParser(Parser parser) Overrides com. Doc from com. Set this node's parser. The parser (the XSLT parser) gives this syntax tree node access to the symbol table and XPath parser. | |
| toString | back to summary |
|---|---|
| public String toString() Implements abstract com. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |
| translate | back to summary |
|---|---|
| public void translate(ClassGenerator classGen, MethodGenerator methodGen) Overrides com. Translate a filter expression by pushing the appropriate iterator onto the stack. | |
| translateFilterExpr | back to summary |
|---|---|
| private void translateFilterExpr(ClassGenerator classGen, MethodGenerator methodGen, int predicateIndex) | |
| translatePredicates | back to summary |
|---|---|
| public void translatePredicates(ClassGenerator classGen, MethodGenerator methodGen, int predicateIndex) Translate a sequence of predicates. Each predicate is translated
by constructing an instance of | |
| typeCheck | back to summary |
|---|---|
| public Type typeCheck(SymbolTable stable) throws TypeCheckError Overrides com. Type check a FilterParentPath. If the filter is not a node-set add a cast to node-set only if it is of reference type. This type coercion is needed for expressions like $x where $x is a parameter reference. All optimizations are turned off before type checking underlying predicates. | |