org.apache.commons.configuration.plist
Class PropertyListParser
java.lang.Object
org.apache.commons.configuration.plist.PropertyListParser
- All Implemented Interfaces:
- PropertyListParserConstants
class PropertyListParser
- extends java.lang.Object
- implements PropertyListParserConstants
JavaCC based parser for the PropertyList format.
- Version:
- $Revision: 590474 $, $Date: 2007-10-30 22:35:11 +0100 (Di, 30 Okt 2007) $
- Author:
- Emmanuel Bourg
Fields inherited from interface org.apache.commons.configuration.plist.PropertyListParserConstants |
ARRAY_BEGIN, ARRAY_END, ARRAY_SEPARATOR, DATA, DATA_END, DATA_START, DATE, DATE_START, DEFAULT, DICT_BEGIN, DICT_END, DICT_SEPARATOR, EOF, EQUAL, ESCAPED_QUOTE, HEXA, LETTER, QUOTE, QUOTED_STRING, STRING, tokenImage, WHITE |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
token_source
public PropertyListParserTokenManager token_source
jj_input_stream
SimpleCharStream jj_input_stream
token
public Token token
jj_nt
public Token jj_nt
jj_ntk
private int jj_ntk
jj_scanpos
private Token jj_scanpos
jj_lastpos
private Token jj_lastpos
jj_la
private int jj_la
lookingAhead
public boolean lookingAhead
jj_semLA
private boolean jj_semLA
jj_gen
private int jj_gen
jj_la1
private final int[] jj_la1
jj_la1_0
private static int[] jj_la1_0
jj_2_rtns
private final PropertyListParser.JJCalls[] jj_2_rtns
jj_rescan
private boolean jj_rescan
jj_gc
private int jj_gc
jj_ls
private final PropertyListParser.LookaheadSuccess jj_ls
jj_expentries
private java.util.Vector jj_expentries
jj_expentry
private int[] jj_expentry
jj_kind
private int jj_kind
jj_lasttokens
private int[] jj_lasttokens
jj_endpos
private int jj_endpos
PropertyListParser
public PropertyListParser(java.io.InputStream stream)
PropertyListParser
public PropertyListParser(java.io.Reader stream)
PropertyListParser
public PropertyListParser(PropertyListParserTokenManager tm)
removeQuotes
protected java.lang.String removeQuotes(java.lang.String s)
- Remove the quotes at the beginning and at the end of the specified String.
unescapeQuotes
protected java.lang.String unescapeQuotes(java.lang.String s)
filterData
protected byte[] filterData(java.lang.String s)
throws ParseException
- Remove the white spaces and the data delimiters from the specified
string and parse it as a byte array.
- Throws:
ParseException
parseDate
protected java.util.Date parseDate(java.lang.String s)
throws ParseException
- Parse a date formatted as <*D2002-03-22 11:30:00 +0100>
- Throws:
ParseException
parse
public final PropertyListConfiguration parse()
throws ParseException
- Throws:
ParseException
Dictionary
public final PropertyListConfiguration Dictionary()
throws ParseException
- Throws:
ParseException
Property
public final HierarchicalConfiguration.Node Property()
throws ParseException
- Throws:
ParseException
Element
public final java.lang.Object Element()
throws ParseException
- Throws:
ParseException
Array
public final java.util.List Array()
throws ParseException
- Throws:
ParseException
String
public final java.lang.String String()
throws ParseException
- Throws:
ParseException
Data
public final byte[] Data()
throws ParseException
- Throws:
ParseException
Date
public final java.util.Date Date()
throws ParseException
- Throws:
ParseException
jj_2_1
private final boolean jj_2_1(int xla)
jj_3R_14
private final boolean jj_3R_14()
jj_3R_11
private final boolean jj_3R_11()
jj_3R_13
private final boolean jj_3R_13()
jj_3R_10
private final boolean jj_3R_10()
jj_3R_9
private final boolean jj_3R_9()
jj_3R_8
private final boolean jj_3R_8()
jj_3R_12
private final boolean jj_3R_12()
jj_3R_7
private final boolean jj_3R_7()
jj_3R_4
private final boolean jj_3R_4()
jj_3R_6
private final boolean jj_3R_6()
jj_3R_15
private final boolean jj_3R_15()
jj_3R_3
private final boolean jj_3R_3()
jj_3_1
private final boolean jj_3_1()
jj_3R_5
private final boolean jj_3R_5()
jj_la1_0
private static void jj_la1_0()
ReInit
public void ReInit(java.io.InputStream stream)
ReInit
public void ReInit(java.io.Reader stream)
ReInit
public void ReInit(PropertyListParserTokenManager tm)
jj_consume_token
private final Token jj_consume_token(int kind)
throws ParseException
- Throws:
ParseException
jj_scan_token
private final boolean jj_scan_token(int kind)
getNextToken
public final Token getNextToken()
getToken
public final Token getToken(int index)
jj_ntk
private final int jj_ntk()
jj_add_error_token
private void jj_add_error_token(int kind,
int pos)
generateParseException
public ParseException generateParseException()
enable_tracing
public final void enable_tracing()
disable_tracing
public final void disable_tracing()
jj_rescan_token
private final void jj_rescan_token()
jj_save
private final void jj_save(int index,
int xla)