org.codehaus.jparsec
Class Tokens.Fragment

java.lang.Object
  extended by org.codehaus.jparsec.Tokens.Fragment
Enclosing class:
Tokens

public static final class Tokens.Fragment
extends Object

Represents a fragment tagged according to its semantics.


Constructor Summary
Tokens.Fragment(String text, Object tag)
           
 
Method Summary
 boolean equals(Object obj)
           
 int hashCode()
           
 Object tag()
          Returns the tag of the token value.
 String text()
          Returns the text of the token value.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Tokens.Fragment

public Tokens.Fragment(String text,
                       Object tag)
Method Detail

text

public String text()
Returns the text of the token value.


tag

public Object tag()
Returns the tag of the token value.


equals

public boolean equals(Object obj)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2014. All rights reserved.