info.monitorenter.unicode.decoder.html
Class HtmlEntityDecoder

java.lang.Object
  extended byantlr.Parser
      extended byantlr.LLkParser
          extended byinfo.monitorenter.unicode.decoder.html.HtmlEntityDecoder
All Implemented Interfaces:
HtmlEntityDecoderTokenTypes

public class HtmlEntityDecoder
extends antlr.LLkParser
implements HtmlEntityDecoderTokenTypes


Field Summary
static String[] _tokenNames
           
static antlr.collections.impl.BitSet _tokenSet_0
           
 
Fields inherited from class antlr.Parser
astFactory, inputState, returnAST, tokenNames, tokenTypeToASTClassMap, traceDepth
 
Fields inherited from interface info.monitorenter.unicode.decoder.html.HtmlEntityDecoderTokenTypes
AACUTE, AACUTE_LC, ACIRC, ACIRC_LC, ACUTE, AELIG, AELIG_LC, AGRAVE, AGRAVE_LC, ALEFSYM, ALPHA, ALPHA_LC, AMP, AND, ANG, ARING, ARING_LC, ASYMP, ATILDE, ATILDE_LC, AUML, AUML_LC, BDQUO, BETA, BETA_LC, BRVBAR, BULL, CAP, CCEDIL, CCEDIL_LC, CEDIL, CENT, CHI, CHI_LC, CIRC, CLUBS, CONG, COPY, CRARR, CUP, CURREN, DAGGER, DAGGER_LC, DARR, DARR_D, DEG, DELTA, DELTA_LC, DIAMS, DIGIT, DIVIDE, EACUTE, EACUTE_LC, ECIRC, ECIRC_LC, EGRAVE, EGRAVE_LC, EMPTY, EMSP, ENSP, EOF, EPSILON, EPSILON_LC, EQUIV, ETA, ETA_LC, ETH, ETH_LC, EUML, EUML_LC, EURO, EXIST, FORALL, FRAC12, FRAC14, FRAC34, FRASL, GAMMA, GAMMA_LC, GE, GT, HARR, HARR_D, HEARTS, HELLIP, HEXDIGIT, IACUTE, IACUTE_LC, ICIRC, ICIRC_LC, IEXCL, IGRAVE, IGRAVE_LC, IMAGE, INFIN, INT, IOTA, IOTA_LC, IQUEST, ISIN, IUML, IUML_LC, KAPPA, KAPPA_LC, LAMBDA, LAMBDA_LC, LANG, LAQUO, LARR, LARR_D, LCEIL, LDQUO, LE, LFLOOR, LOWAST, LOZ, LRM, LSAQUO, LSQUO, LT, MACR, MDASH, MICRO, MIDDOT, MINUS, MU, MU_LC, NABLA, NBSP, NCR_D, NCR_H, NDASH, NE, NI, NOT, NOTIN, NSUB, NTILDE, NTILDE_LC, NU, NU_LC, NULL_TREE_LOOKAHEAD, OACUTE, OACUTE_LC, OCIRC, OCIRC_LC, OELIG, OELIG_LC, OGRAVE, OGRAVE_LC, OLINE, OMEGA, OMEGA_LC, OMICRON, OMICRON_LC, OPLUS, OR, ORDF, ORDM, OSLASH, OSLASH_LC, OTILDE, OTILDE_LC, OTIMES, OUML, OUML_LC, PARA, PART, PERMIL, PERP, PHI, PHI_LC, PI, PI_LC, PIV, PLUSMN, POUND, PRIME, PRIME_LC, PROD, PROP, PSI, PSI_LC, QUOT, RADIC, RANG, RAQUO, RARR, RARR_D, RCEIL, RDQUO, REAL, REG, RFLOOR, RHO, RHO_LC, RLM, RSAQUO, RSQUO, SBQUO, SCARON, SCARON_LC, SDOT, SECT, SHY, SIGMA, SIGMA_LC, SIGMAF_LC, SIM, SPADES, SUB, SUBE, SUM, SUP, SUP1, SUP2, SUP3, SUPE, SZLIG, TAU, TAU_LC, THERE4, THETA, THETA_LC, THETASYM, THINSP, THORN, THORN_LC, TILDE, TIMES, TRADE, UACUTE, UACUTE_LC, UARR, UARR_D, UCIRC, UCIRC_LC, UGRAVE, UGRAVE_LC, UML, UPSIH, UPSILON, UPSILON_LC, UUML, UUML_LC, WEIERP, WORD, XI, XI_LC, YACUTE, YACUTE_LC, YEN, YUML, YUML_LC, ZETA, ZETA_LC, ZWJ, ZWNJ
 
Constructor Summary
  HtmlEntityDecoder(antlr.ParserSharedInputState state)
           
  HtmlEntityDecoder(antlr.TokenBuffer tokenBuf)
           
protected HtmlEntityDecoder(antlr.TokenBuffer tokenBuf, int k)
           
  HtmlEntityDecoder(antlr.TokenStream lexer)
           
protected HtmlEntityDecoder(antlr.TokenStream lexer, int k)
           
 
Method Summary
 antlr.Token decodeNext()
          Decodes the next Token with the decoded text.
 boolean isPotentialRemainingEntity()
          Decodes the given html input by replacing the character entity references (named and numeric) by the unicode character codes.
 
Methods inherited from class antlr.LLkParser
consume, LA, LT, traceIn, traceOut
 
Methods inherited from class antlr.Parser
addMessageListener, addParserListener, addParserMatchListener, addParserTokenListener, addSemanticPredicateListener, addSyntacticPredicateListener, addTraceListener, consumeUntil, consumeUntil, defaultDebuggingSetup, getAST, getASTFactory, getFilename, getInputState, getTokenName, getTokenNames, getTokenTypeToASTClassMap, isDebugMode, mark, match, match, matchNot, panic, removeMessageListener, removeParserListener, removeParserMatchListener, removeParserTokenListener, removeSemanticPredicateListener, removeSyntacticPredicateListener, removeTraceListener, reportError, reportError, reportWarning, rewind, setASTFactory, setASTNodeClass, setASTNodeType, setDebugMode, setFilename, setIgnoreInvalidDebugCalls, setInputState, setTokenBuffer, traceIndent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_tokenNames

public static final String[] _tokenNames

_tokenSet_0

public static final antlr.collections.impl.BitSet _tokenSet_0
Constructor Detail

HtmlEntityDecoder

protected HtmlEntityDecoder(antlr.TokenBuffer tokenBuf,
                            int k)

HtmlEntityDecoder

public HtmlEntityDecoder(antlr.TokenBuffer tokenBuf)

HtmlEntityDecoder

protected HtmlEntityDecoder(antlr.TokenStream lexer,
                            int k)

HtmlEntityDecoder

public HtmlEntityDecoder(antlr.TokenStream lexer)

HtmlEntityDecoder

public HtmlEntityDecoder(antlr.ParserSharedInputState state)
Method Detail

isPotentialRemainingEntity

public boolean isPotentialRemainingEntity()
Decodes the given html input by replacing the character entity references (named and numeric) by the unicode character codes.

The result is written to the output stream. If & was found true is returned because the decoded output then could contain a new character entity reference.

Returns:
true if & was found thus the result could contain a new character entity reference.

decodeNext

public final antlr.Token decodeNext()
                             throws antlr.RecognitionException,
                                    antlr.TokenStreamException,
                                    IOException
Decodes the next Token with the decoded text.

Returns:
the next Token with the decoded text.
Throws:
antlr.RecognitionException
antlr.TokenStreamException
IOException


Copyleft ㊢ 2003-2004 MPL 1.1, All Rights Footloose.