|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectopendap.dap.Server.Operator
public class Operator
This class contains the code for performing relative operations (RelOps) on BaseTypes. It contains one heavily overloaded method that is smart enough to figure out which actual BaseType were passed in and perform (if appropriate) the RelOp comparison on the 2 types.
Field Summary |
---|
Fields inherited from interface opendap.dap.parser.ExprParserConstants |
---|
AMPERSAND, COLON, COMMA, DEFAULT, EOF, EQUAL, GREATER, GREATER_EQL, LBRACE, LBRACKET, LESS, LESS_EQL, LPAREN, NOT_EQUAL, RBRACE, RBRACKET, REGEXP, RPAREN, SEPARATOR, tokenImage, WORD |
Constructor Summary | |
---|---|
Operator()
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Operator()
Method Detail |
---|
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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |