opendap.dap.Server
public class Operator extends java.lang.Object implements ExprParserConstants
Constructor and Description |
---|
Operator() |
public static boolean op(int oprtr, BaseType lop, BaseType rop) throws InvalidOperatorException, RegExpException, SBHException
oprtr
on the 2 passed BaseTypes if
appropriate.
Obviously some type don't compare logically, such as asking if
String is less than a Float. For these non sensical operations
and InvalidOperatorException
is thrown.oprtr
- The operatoration to perform as defined in
opendap.dap.parser.ExprParserConstants
lop
- A BaseType to be used as the left operand.rop
- A BaseType to be used as the right operand.InvalidOperatorException
RegExpException
SBHException
ExprParserConstants