public class Parser extends Object implements ParserConstants
Contributed by Jeff Martin
| Modifier and Type | Field and Description |
|---|---|
Token |
jj_nt |
boolean |
lookingAhead |
Token |
token |
ParserTokenManager |
token_source |
DEFAULT, EOF, FLOAT, INT, QUOTED_STRING, STRING, tokenImage, WithinComment, WithinQuotedString| Constructor and Description |
|---|
Parser() |
Parser(File f,
PlistDataStructureFactory factory) |
Parser(InputStream stream) |
Parser(InputStream in,
PlistDataStructureFactory factory) |
Parser(ParserTokenManager tm) |
Parser(PlistDataStructureFactory factory) |
Parser(Reader stream) |
Parser(String filename,
PlistDataStructureFactory factory) |
| Modifier and Type | Method and Description |
|---|---|
Collection |
collection(String parentKeyPath) |
void |
disable_tracing() |
void |
enable_tracing() |
ParseException |
generateParseException() |
Token |
getNextToken() |
Token |
getToken(int index) |
void |
keyValuePair(String parentKeyPath,
Map map) |
Object |
leaf() |
Map |
map(String parentKeyPath) |
Object |
object(String parentKeyPath) |
Object |
propertyList() |
void |
ReInit(InputStream stream) |
void |
ReInit(ParserTokenManager tm) |
void |
ReInit(Reader stream) |
public ParserTokenManager token_source
public Token token
public Token jj_nt
public boolean lookingAhead
public Parser()
public Parser(PlistDataStructureFactory factory)
public Parser(String filename, PlistDataStructureFactory factory) throws FileNotFoundException
FileNotFoundExceptionpublic Parser(File f, PlistDataStructureFactory factory) throws FileNotFoundException
FileNotFoundExceptionpublic Parser(InputStream in, PlistDataStructureFactory factory)
public Parser(InputStream stream)
public Parser(Reader stream)
public Parser(ParserTokenManager tm)
public Object propertyList()
public final Object object(String parentKeyPath) throws ParseException
ParseExceptionpublic final Object leaf() throws ParseException
ParseExceptionpublic final Map map(String parentKeyPath) throws ParseException
ParseExceptionpublic final void keyValuePair(String parentKeyPath, Map map) throws ParseException
ParseExceptionpublic final Collection collection(String parentKeyPath) throws ParseException
ParseExceptionpublic void ReInit(InputStream stream)
public void ReInit(Reader stream)
public void ReInit(ParserTokenManager 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 © 2001–2016 Apache Cayenne. All rights reserved.