| ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface OperationsParser
This is used by an OperationReader
to read expressions.
Method Summary | |
---|---|
boolean | isCloseParenthesis(char c) Returns true if this char indicated a close parenthesis such as ), ], } . |
boolean | isCloseParenthesis(java.lang.String word) Returns true if this word indicates a close parenthesis such as ), ], } or even END. |
boolean | isComma(char c) Returns true if the char acts like a partioner in a group. |
boolean | isComma(java.lang.String word) returns true if this word act as a partition in a group, for example you can have the word AND as a partition for this group. |
boolean | isFunction(java.lang.String word) Tests for Function name |
boolean | isNumber(char c) returns true if this char is a Number. |
boolean | isNumber(java.lang.String word) Tests for number String. |
boolean | isOpenParenthesis(char c) Returns true if this char is an open Parenthesis. such as (, [, { etc. |
boolean | isOpenParenthesis(java.lang.String word) Returns true if this String is an open Parenthesis. such as (, [, { or even Start, Begin etc. |
boolean | isOperand(char c) Returns true if this char is an Operand. |
boolean | isOperand(java.lang.String word) Tests for operand String. |
boolean | isParenthesis(char c, char c1) Returns true of these two chars indicate a pair of parenthesis such as () , [], {}, <> or any other char! |
boolean | isParenthesis(java.lang.String word, java.lang.String word1) Returns true if these two words indicate a block of code, like Start/End, Begin/Finish. |
boolean | isVariable(char c) Returns true if this Char is a Variable. |
boolean | isVariable(java.lang.String word) Tests for Variable name. |
Method Detail |
---|
boolean isOperand(char c)
c
- The charectar boolean isNumber(char c)
c
- The charectar boolean isVariable(char c)
c
- The charectar boolean isOperand(java.lang.String word)
word
- name. boolean isNumber(java.lang.String word)
word
- name. boolean isVariable(java.lang.String word)
word
- name. boolean isFunction(java.lang.String word)
word
- name. boolean isCloseParenthesis(java.lang.String word)
word
- The word to be evaluated. isParenthesis(String, String)
boolean isOpenParenthesis(java.lang.String word)
word
- the word to be evaluated. isParenthesis(String, String)
boolean isCloseParenthesis(char c)
c
- the char to be evaluated. isParenthesis(char, char)
boolean isOpenParenthesis(char c)
c
- the char to be evaluated. isParenthesis(char, char)
boolean isParenthesis(char c, char c1)
c
- The open parenthesisc1
- the close parenthesis. boolean isParenthesis(java.lang.String word, java.lang.String word1)
word
- The open parenthesis.word1
- the close parenthesis. boolean isComma(java.lang.String word)
{1 AND 5 AND 7}
word
- The word to be evaluated. boolean isComma(char c)
{ 1,3,5,6,7}
c
- the char to be evaluated.
| ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |