hussam.math.operations.parser
Interface OperationsParser

All Known Implementing Classes:
MyParser

public interface OperationsParser

This is used by an OperationReader to read expressions.


Method Summary
 booleanisFunction(java.lang.String word)
          Tests for Function name
 booleanisNumber(char c)
          returns true if this char is a Number.
 booleanisNumber(java.lang.String word)
          Tests for number String.
 booleanisOperand(char c)
          Returns true if this char is an Operand.
 booleanisOperand(java.lang.String word)
          Tests for operand String.
 booleanisVariable(char c)
          Returns true if this Char is a Variable.
 booleanisVariable(java.lang.String word)
          Tests for Variable name.
 

Method Detail

isOperand

boolean isOperand(char c)
Returns true if this char is an Operand.

Parameters:
c - The charectar
Returns:
True if the char is an Operand.

isNumber

boolean isNumber(char c)
returns true if this char is a Number.

Parameters:
c - The charectar
Returns:
True if the char is a number.

isVariable

boolean isVariable(char c)
Returns true if this Char is a Variable.

Parameters:
c - The charectar
Returns:
True if the char is a Variable name.

isOperand

boolean isOperand(java.lang.String word)
Tests for operand String.

Parameters:
word - name.
Returns:
True if the String is an Operand.

isNumber

boolean isNumber(java.lang.String word)
Tests for number String.

Parameters:
word - name.
Returns:
True if the String is a Number.

isVariable

boolean isVariable(java.lang.String word)
Tests for Variable name.

Parameters:
word - name.
Returns:
True if the String is Variable Name.

isFunction

boolean isFunction(java.lang.String word)
Tests for Function name

Parameters:
word - name.
Returns:
True if the String is a Function name.