nu.validator.htmlparser.test
Class TokenizerTester

java.lang.Object
  extended by nu.validator.htmlparser.test.TokenizerTester

public class TokenizerTester
extends Object


Field Summary
private static com.sdicons.json.model.JSONString CDATA
           
private static com.sdicons.json.model.JSONString PCDATA
           
private static com.sdicons.json.model.JSONString PLAINTEXT
           
private static com.sdicons.json.model.JSONString RCDATA
           
private  com.sdicons.json.model.JSONArray tests
           
private  JSONArrayTokenHandler tokenHandler
           
private  Tokenizer tokenizer
           
private  Writer writer
           
 
Constructor Summary
private TokenizerTester(InputStream stream)
           
 
Method Summary
private static boolean jsonDeepEquals(com.sdicons.json.model.JSONValue one, com.sdicons.json.model.JSONValue other)
           
static void main(String[] args)
           
private  void runTest(com.sdicons.json.model.JSONObject test)
           
private  void runTestInner(String inputString, com.sdicons.json.model.JSONArray expectedTokens, String description, ContentModelFlag contentModelFlag, String contentModelElement)
           
private  void runTests()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PLAINTEXT

private static com.sdicons.json.model.JSONString PLAINTEXT

PCDATA

private static com.sdicons.json.model.JSONString PCDATA

RCDATA

private static com.sdicons.json.model.JSONString RCDATA

CDATA

private static com.sdicons.json.model.JSONString CDATA

tests

private com.sdicons.json.model.JSONArray tests

tokenHandler

private final JSONArrayTokenHandler tokenHandler

tokenizer

private final Tokenizer tokenizer

writer

private final Writer writer
Constructor Detail

TokenizerTester

private TokenizerTester(InputStream stream)
                 throws antlr.TokenStreamException,
                        antlr.RecognitionException,
                        UnsupportedEncodingException
Throws:
antlr.TokenStreamException
antlr.RecognitionException
UnsupportedEncodingException
Method Detail

jsonDeepEquals

private static boolean jsonDeepEquals(com.sdicons.json.model.JSONValue one,
                                      com.sdicons.json.model.JSONValue other)

runTests

private void runTests()
               throws SAXException,
                      IOException
Throws:
SAXException
IOException

runTest

private void runTest(com.sdicons.json.model.JSONObject test)
              throws SAXException,
                     IOException
Throws:
SAXException
IOException

runTestInner

private void runTestInner(String inputString,
                          com.sdicons.json.model.JSONArray expectedTokens,
                          String description,
                          ContentModelFlag contentModelFlag,
                          String contentModelElement)
                   throws SAXException,
                          IOException
Parameters:
contentModelElement -
contentModelFlag -
test -
Throws:
SAXException
IOException

main

public static void main(String[] args)
                 throws antlr.TokenStreamException,
                        antlr.RecognitionException,
                        SAXException,
                        IOException
Parameters:
args -
Throws:
antlr.RecognitionException
antlr.TokenStreamException
IOException
SAXException