trassare.com

com.trassare.calculator.engine
Class Token.IDENTIFIER

java.lang.Object
  extended by com.trassare.calculator.engine.Token
      extended by com.trassare.calculator.engine.Token.IDENTIFIER
Enclosing class:
Token

public static final class Token.IDENTIFIER
extends Token

Token matching regular expression [A-Z]+ in input.
This token is used for variable names in the input expression. Note that variable names can only be expressed using capital letters.

Version:
10 September 2006
Author:
Samuel T Trassare

Nested Class Summary
 
Nested classes/interfaces inherited from class com.trassare.calculator.engine.Token
Token.ERROR, Token.IDENTIFIER, Token.NUMBER
 
Field Summary
 
Fields inherited from class com.trassare.calculator.engine.Token
ACOS, ASIN, ASSIGN, ATAN, COS, EOL, ERROR, IDENTIFIER, LN, LPAREN, MINUS, NUMBER, OVER, PLUS, POW, RECALL, RPAREN, SIN, STORE, TAN, TIMES
 
Constructor Summary
Token.IDENTIFIER(String inStringValue)
          Construct the identifier token with an explicit value.
 
Method Summary
 String toString()
          The string representation of this token.
 
Methods inherited from class com.trassare.calculator.engine.Token
equals, hashCode, stringValue
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Token.IDENTIFIER

public Token.IDENTIFIER(String inStringValue)
Construct the identifier token with an explicit value.

Parameters:
inStringValue - the number value.
Method Detail

toString

public String toString()
The string representation of this token.

Overrides:
toString in class Object
Returns:
the string representation of this token.

trassare.com