nu.validator.htmlparser.test
Class TokenizerTester
java.lang.Object
nu.validator.htmlparser.test.TokenizerTester
public class TokenizerTester
- extends Object
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 |
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
TokenizerTester
private TokenizerTester(InputStream stream)
throws antlr.TokenStreamException,
antlr.RecognitionException,
UnsupportedEncodingException
- Throws:
antlr.TokenStreamException
antlr.RecognitionException
UnsupportedEncodingException
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