public class Operator extends java.lang.Object implements ExprParserConstants
AMPERSAND, COLON, COMMA, DEFAULT, EOF, EQUAL, FLOATCONST, FUNCTION, GREATER, GREATER_EQL, INTCONST, LBRACE, LBRACKET, LESS, LESS_EQL, LPAREN, NOT_EQUAL, operatorImage, RBRACE, RBRACKET, REGEXP, RPAREN, SEPARATOR, STRINGCONST, tokenImage, VAR, WORD| Constructor and Description |
|---|
Operator() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
op(int oprtr,
BaseType lop,
BaseType rop)
Performs the Relatove Operation (RelOp) indicated by the
parameter
oprtr on the 2 passed BaseTypes if
appropriate. |
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.servers.parsers.ExprParserConstantslop - A BaseType to be used as the left operand.rop - A BaseType to be used as the right operand.InvalidOperatorExceptionRegExpExceptionSBHExceptionExprParserConstants