class LDAP::Request::FilterParser
- LDAP::Request::FilterParser
- Reference
- Object
Defined in:
ldap/request/filter_parser.crConstructors
Class Method Summary
Instance Method Summary
- #filter : Filter
-
#merge_branches(op, scanner)
Join ("&") and intersect ("|") operations are presented in branches.
-
#parse(scanner)
Parsing tries to parse a standalone expression first.
-
#parse_branches(scanner)
This method parses the branch text out into an array of filter objects.
-
#parse_filter_branch(scanner)
This parses a given expression inside of parentheses.
- #parse_paren_expression(scanner)
Constructor Detail
Class Method Detail
Instance Method Detail
Join ("&") and intersect ("|") operations are presented in branches. That is, the expression (&(test1)(test2) has two branches: test1 and test2. Each of these is parsed separately and then pushed into a branch array for filter merging using the parent operation.
This method calls #parse_branches to generate the branch list and then merges them into a single Filter tree by calling the provided operation.
Parsing tries to parse a standalone expression first. If that fails, it tries to parse a parenthesized expression.
This method parses the branch text out into an array of filter objects.