org.apache.felix.framework.util.ldap
Class Parser
java.lang.Object
org.apache.felix.framework.util.ldap.Parser
public class Parser
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EOF
public static final int EOF
- See Also:
- Constant Field Values
LPAREN
public static final char LPAREN
- See Also:
- Constant Field Values
RPAREN
public static final char RPAREN
- See Also:
- Constant Field Values
STAR
public static final char STAR
- See Also:
- Constant Field Values
SIMPLE
public static final int SIMPLE
- See Also:
- Constant Field Values
PRESENT
public static final int PRESENT
- See Also:
- Constant Field Values
SUBSTRING
public static final int SUBSTRING
- See Also:
- Constant Field Values
NOOP
public static final int NOOP
- See Also:
- Constant Field Values
EQUAL
public static final int EQUAL
- See Also:
- Constant Field Values
GREATER_EQUAL
public static final int GREATER_EQUAL
- See Also:
- Constant Field Values
LESS_EQUAL
public static final int LESS_EQUAL
- See Also:
- Constant Field Values
APPROX
public static final int APPROX
- See Also:
- Constant Field Values
APPROX_CRITERIA
public static final int APPROX_CRITERIA
- See Also:
- Constant Field Values
Parser
public Parser()
Parser
public Parser(LdapLexer l)
reset
public void reset()
reset
public void reset(LdapLexer l)
getProgram
public Object[] getProgram()
start
public boolean start()
throws ParseException,
IOException
- Throws:
ParseException
IOException
setDebug
public void setDebug(PrintStream out)
compare
public static boolean compare(Object lhs,
String rhs,
int operator)
throws EvaluationException
- Compare two operands in an expression with respect
to the following operators =, <=, >= and ~=
Example: value=100
- Parameters:
lhs
- an object that implements comparable or an array of
objects that implement comparable.rhs
- a string representing the right operand.operator
- an integer that represents the operator.
- Returns:
- true or false according to the evaluation.
- Throws:
EvaluationException
- if it is not possible to do the comparison.
Copyright © 2006-2011 Apache Software Foundation. All Rights Reserved.