public class Parser
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
APPROX |
static int |
APPROX_CRITERIA |
static java.lang.String |
ATTRIBUTECHARS0 |
static java.lang.String |
ATTRIBUTECHARS1 |
static int |
EOF |
static int |
EQUAL |
static int |
GREATER_EQUAL |
static int |
LESS_EQUAL |
static char |
LPAREN |
static int |
NOOP |
static int |
PRESENT |
static char |
RPAREN |
static int |
SIMPLE |
static char |
STAR |
static int |
SUBSTRING |
Modifier and Type | Method and Description |
---|---|
static boolean |
compare(java.lang.Object lhs,
java.lang.String rhs,
int operator)
Compare two operands in an expression with respect
to the following operators =, <=, >= and ~=
Example: value=100
|
java.lang.Object[] |
getProgram() |
void |
reset() |
void |
reset(LdapLexer l) |
void |
setDebug(java.io.PrintStream out) |
boolean |
start() |
public static final int EOF
public static final char LPAREN
public static final char RPAREN
public static final char STAR
public static final java.lang.String ATTRIBUTECHARS0
public static final java.lang.String ATTRIBUTECHARS1
public static final int SIMPLE
public static final int PRESENT
public static final int SUBSTRING
public static final int NOOP
public static final int EQUAL
public static final int GREATER_EQUAL
public static final int LESS_EQUAL
public static final int APPROX
public static final int APPROX_CRITERIA
public Parser()
public Parser(LdapLexer l)
public void reset()
public void reset(LdapLexer l)
public java.lang.Object[] getProgram()
public boolean start() throws ParseException, java.io.IOException
ParseException
java.io.IOException
public void setDebug(java.io.PrintStream out)
public static boolean compare(java.lang.Object lhs, java.lang.String rhs, int operator) throws EvaluationException
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.EvaluationException
- if it is not possible to do the comparison.