de.dante.extex.scanner.type.token
Interface CodeToken

All Superinterfaces:
Token
All Known Implementing Classes:
ActiveCharacterToken, ControlSequenceToken

public interface CodeToken
extends Token

The code token extends the Token with the ability to retrieve a namespace.

Version:
$Revision: 1.2 $
Author:
Gerd Neugebauer

Method Summary
 CodeToken cloneInDefaultNamespace()
          Create a new instance of the token where the namespace is the default namespace and the other attributes are the same as for the current token.
 CodeToken cloneInNamespace(java.lang.String namespace)
          Create a new instance of the token where the namespace is the given one and the other attributes are the same as for the current token.
 java.lang.String getName()
          Getter for the name.
 java.lang.String getNamespace()
          Getter for the namespace.
 
Methods inherited from interface de.dante.extex.scanner.type.token.Token
equals, equals, equals, equals, getCatcode, getChar, isa, toString, toText, toText, visit
 

Method Detail

cloneInDefaultNamespace

public CodeToken cloneInDefaultNamespace()
Create a new instance of the token where the namespace is the default namespace and the other attributes are the same as for the current token.

Returns:
the new token

cloneInNamespace

public CodeToken cloneInNamespace(java.lang.String namespace)
Create a new instance of the token where the namespace is the given one and the other attributes are the same as for the current token.

Parameters:
namespace - the namespace to use
Returns:
the new token

getName

public java.lang.String getName()
Getter for the name. The name is the string representation without the escape character in front.

Returns:
the name of the token

getNamespace

public java.lang.String getNamespace()
Getter for the namespace.

Returns:
the namespace