org.basex.index.query
Class StringToken

java.lang.Object
  extended by org.basex.index.query.StringToken
All Implemented Interfaces:
IndexToken

public final class StringToken
extends java.lang.Object
implements IndexToken

This class defines access to index text tokens.

Author:
BaseX Team 2005-12, BSD License, Christian Gruen

Constructor Summary
StringToken(IndexType it, byte[] tok)
          Constructor.
 
Method Summary
 byte[] get()
          Returns the current token.
 IndexType type()
          Returns the index type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StringToken

public StringToken(IndexType it,
                   byte[] tok)
Constructor.

Parameters:
it - index type
tok - token
Method Detail

type

public IndexType type()
Description copied from interface: IndexToken
Returns the index type.

Specified by:
type in interface IndexToken
Returns:
type

get

public byte[] get()
Description copied from interface: IndexToken
Returns the current token.

Specified by:
get in interface IndexToken
Returns:
token