Main Page | Packages | Class Hierarchy | Class List | File List | Class Members

xmlexpr.Token Class Reference

Collaboration diagram for xmlexpr.Token:

Collaboration graph
[legend]
List of all members.

Detailed Description

Token.

Token objects are returned by the Scanner getToken() method. They are used by ParseExpToXML to build an XML string from an expression.

Author:
Ian Kaplan, iank@bearcave.com, Jul 12, 2004


Public Member Functions

 Token (TokenType ty)
TokenType getType ()
void setString (String s)
String getString ()
String toString ()

Private Attributes

TokenType mType = null
String mString = null


Constructor & Destructor Documentation

xmlexpr.Token.Token TokenType  ty  ) 
 

00028 { mType = ty; }


Member Function Documentation

String xmlexpr.Token.getString  ) 
 

00032 { return mString; }

TokenType xmlexpr.Token.getType  ) 
 

00029 { return mType; }

void xmlexpr.Token.setString String  s  ) 
 

00031 { mString = s; }

String xmlexpr.Token.toString  ) 
 

00035 { 00036 String str = null; 00037 if (mType == TokenType.IDENT || mType == TokenType.INT) { 00038 str = mString; 00039 } 00040 else { 00041 if (mType != null) { 00042 str = mType.toString(); 00043 } 00044 } 00045 return str; 00046 } // toString


Member Data Documentation

String xmlexpr.Token.mString = null [private]
 

TokenType xmlexpr.Token.mType = null [private]
 


The documentation for this class was generated from the following file:
Generated on Sat Aug 28 13:09:43 2004 for XmlExpr by doxygen 1.3.8