public class mtGrammar extends Object implements mtGrammarConstants
| Modifier and Type | Field and Description |
|---|---|
Token |
jj_nt
Next token.
|
Token |
token
Current token.
|
mtGrammarTokenManager |
token_source
Generated Token Manager.
|
CASE, COLON, COMMA, DEFAULT, DESCRIPTION, EOF, FILE, IGNOREERRORS, INIT, INT, LAST, PROPERTIES, RUNTIME, SINGLE_LINE_COMMENT, SINGLE_LINE_COMMENT2, SINGLE_LINE_SQLCOMMENT, STRING, THREADS, tokenImage, WEIGHT, WORD| Constructor and Description |
|---|
mtGrammar(InputStream stream)
Constructor with InputStream.
|
mtGrammar(InputStream stream,
String encoding)
Constructor with InputStream and supplied encoding
|
mtGrammar(mtGrammarTokenManager tm)
Constructor with generated Token Manager.
|
mtGrammar(Reader stream)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
caseInfo(mtTestCase testCase) |
Vector |
cases() |
String |
description() |
void |
disable_tracing()
Disable tracing.
|
void |
enable_tracing()
Enable tracing.
|
ParseException |
generateParseException()
Generate ParseException.
|
void |
getError(Hashtable errorList) |
Token |
getNextToken()
Get the next Token.
|
Token |
getToken(int index)
Get the specific Token.
|
mtTestSuite |
grammarStatement() |
Hashtable |
ignoreErrors() |
Vector |
init() |
void |
initCase(Vector testCases) |
Vector |
last() |
void |
lastCase(Vector testCases) |
int |
numThreads() |
String |
propFile() |
void |
ReInit(InputStream stream)
Reinitialise.
|
void |
ReInit(InputStream stream,
String encoding)
Reinitialise.
|
void |
ReInit(mtGrammarTokenManager tm)
Reinitialise.
|
void |
ReInit(Reader stream)
Reinitialise.
|
mtTime |
runTime() |
String |
scriptFile() |
void |
testCase(Vector testCases) |
mtTime |
time() |
int |
weight() |
String |
word_or_int() |
public mtGrammarTokenManager token_source
public Token token
public Token jj_nt
public mtGrammar(InputStream stream)
public mtGrammar(InputStream stream, String encoding)
public mtGrammar(Reader stream)
public mtGrammar(mtGrammarTokenManager tm)
public final mtTestSuite grammarStatement() throws ParseException
ParseExceptionpublic final int numThreads()
throws ParseException
ParseExceptionpublic final mtTime runTime() throws ParseException
ParseExceptionpublic final Vector cases() throws ParseException
ParseExceptionpublic final void testCase(Vector testCases) throws ParseException
ParseExceptionpublic final Vector init() throws ParseException
ParseExceptionpublic final void initCase(Vector testCases) throws ParseException
ParseExceptionpublic final Vector last() throws ParseException
ParseExceptionpublic final void lastCase(Vector testCases) throws ParseException
ParseExceptionpublic final void caseInfo(mtTestCase testCase) throws ParseException
ParseExceptionpublic final String scriptFile() throws ParseException
ParseExceptionpublic final String propFile() throws ParseException
ParseExceptionpublic final int weight()
throws ParseException
ParseExceptionpublic final String description() throws ParseException
ParseExceptionpublic final Hashtable ignoreErrors() throws ParseException
ParseExceptionpublic final void getError(Hashtable errorList) throws ParseException
ParseExceptionpublic final String word_or_int() throws ParseException
ParseExceptionpublic final mtTime time() throws ParseException
ParseExceptionpublic void ReInit(InputStream stream)
public void ReInit(InputStream stream, String encoding)
public void ReInit(Reader stream)
public void ReInit(mtGrammarTokenManager tm)
public final Token getNextToken()
public final Token getToken(int index)
public ParseException generateParseException()
public final void enable_tracing()
public final void disable_tracing()
Copyright © 2010-2015 Pivotal Software, Inc. All rights reserved.