public class ListParser extends Object implements ListParserConstants
| Modifier and Type | Field and Description |
|---|---|
(package private) boolean |
begin |
(package private) int |
curDepth |
(package private) SimpleCharStream |
jj_input_stream |
Token |
jj_nt
Next token.
|
(package private) LinkedList<Character> |
stack |
Token |
token
Current token.
|
ListParserTokenManager |
token_source
Generated Token Manager.
|
BOL, BUL, DEFAULT, END, EOF, OL, OTHER, tokenImage, UL| Constructor and Description |
|---|
ListParser(InputStream stream)
Constructor with InputStream.
|
ListParser(InputStream stream,
String encoding)
Constructor with InputStream and supplied encoding
|
ListParser(ListParserTokenManager tm)
Constructor with generated Token Manager.
|
ListParser(Reader stream)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
(package private) void |
close(StringBuilder buf) |
void |
disable_tracing()
Disable tracing.
|
void |
enable_tracing()
Enable tracing.
|
(package private) void |
endLists(StringBuilder buf) |
ParseException |
generateParseException()
Generate ParseException.
|
(package private) int |
getDepth(Token t) |
Token |
getNextToken()
Get the next Token.
|
Token |
getToken(int index)
Get the specific Token.
|
(package private) char |
getType(Token t,
int depth) |
(package private) void |
handleList(StringBuilder buf,
Token t) |
static void |
main(String[] argv) |
(package private) void |
open(StringBuilder buf,
char type) |
void |
ReInit(InputStream stream)
Reinitialise.
|
void |
ReInit(InputStream stream,
String encoding)
Reinitialise.
|
void |
ReInit(ListParserTokenManager tm)
Reinitialise.
|
void |
ReInit(Reader stream)
Reinitialise.
|
void |
start(StringBuilder buf) |
(package private) static String |
transform(String inString) |
int curDepth
boolean begin
LinkedList<Character> stack
public ListParserTokenManager token_source
SimpleCharStream jj_input_stream
public Token token
public Token jj_nt
public ListParser(InputStream stream)
public ListParser(InputStream stream, String encoding)
public ListParser(Reader stream)
public ListParser(ListParserTokenManager tm)
int getDepth(Token t)
char getType(Token t, int depth)
void open(StringBuilder buf, char type)
void close(StringBuilder buf)
void handleList(StringBuilder buf, Token t)
void endLists(StringBuilder buf)
public static void main(String[] argv) throws ParseException, InterruptedException
ParseExceptionInterruptedExceptionpublic final void start(StringBuilder buf) throws ParseException
ParseExceptionpublic void ReInit(InputStream stream)
public void ReInit(InputStream stream, String encoding)
public void ReInit(Reader stream)
public void ReInit(ListParserTokenManager tm)
public final Token getNextToken()
public final Token getToken(int index)
public ParseException generateParseException()
public final void enable_tracing()
public final void disable_tracing()
MMBase 1.9-SNAPSHOT - ${javadoctimestamp}