de.zeigermann.xpa.tokenParser
Class XMLEndToken

java.lang.Object
  |
  +--antlr.Token
        |
        +--antlr.CommonToken
              |
              +--de.zeigermann.xpa.tokenParser.XMLToken
                    |
                    +--de.zeigermann.xpa.tokenParser.XMLEndToken
All Implemented Interfaces:
Cloneable

public class XMLEndToken
extends XMLToken

This class stores XML end tags as ANTLR tokens.


Field Summary
 
Fields inherited from class antlr.CommonToken
col, line, text
 
Fields inherited from class antlr.Token
badToken, EOF_TYPE, INVALID_TYPE, MIN_USER_TYPE, NULL_TREE_LOOKAHEAD, SKIP
 
Constructor Summary
XMLEndToken(int type, String tag)
          Creates a new XML token representing an XML end tag.
 
Method Summary
 String toString()
          Gets a simple string representation of this token.
 
Methods inherited from class de.zeigermann.xpa.tokenParser.XMLToken
getFilename, setFilename
 
Methods inherited from class antlr.CommonToken
getColumn, getLine, getText, setColumn, setLine, setText
 
Methods inherited from class antlr.Token
getType, setType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

XMLEndToken

public XMLEndToken(int type,
                   String tag)
Creates a new XML token representing an XML end tag.

Parameters:
type - the type of the token, usually determined by Parser2XMLTokenStreamAdapter using XMLTokenTypeManager.getType(java.lang.String).
tag - name of this end tag
Method Detail

toString

public String toString()
Gets a simple string representation of this token. Not intended for writing back to XML.

Overrides:
toString in class XMLToken


Copyright 1999-2003 Oliver Zeigermann. All Rights Reserved.