Token Class Reference

Collaboration diagram for Token:

Collaboration graph
[legend]

List of all members.

Public Member Functions

List< Tag<?> > getTags ()
String getWord ()
boolean isTagged ()
void tag (Tag<?> newTag)
 Token (String word)
String toString ()
void untag (Class<?> tagClass)

Package Functions

public< T extends Tag > T getTag (Class< T > tagClass)
public< T extends Tag
<?> > List< T > 
getTags (Class< T > tagClass)

Private Attributes

List< Tag<?> > _tags
String _word


Constructor & Destructor Documentation

Token ( String  word  ) 


Member Function Documentation

public<T extends Tag> T getTag ( Class< T >  tagClass  )  [package]

Return the Tag that matches the given class

public<T extends Tag<?> > List<T> getTags ( Class< T >  tagClass  )  [package]

Return the Tag that matches the given class

List<Tag<?> > getTags (  ) 

String getWord (  ) 

boolean isTagged (  ) 

Return true if this token has any tags

void tag ( Tag<?>  newTag  ) 

Tag this token with the specified tag

String toString (  ) 

void untag ( Class<?>  tagClass  ) 

Remove all tags of the given class


Member Data Documentation

List<Tag<?> > _tags [private]

String _word [private]


The documentation for this class was generated from the following file:

Generated on Sat May 26 06:42:46 2012 for Project Wonder by  doxygen 1.5.8