Class PropertyListParser
java.lang.Object
org.apache.commons.configuration2.plist.PropertyListParser
- All Implemented Interfaces:
PropertyListParserConstants
JavaCC based parser for the PropertyList format.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static final classprivate static final class -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final PropertyListParser.JJCalls[]private intprivate List<int[]> private int[]private intprivate int(package private) SimpleCharStreamprivate intprivate intprivate final int[]private static int[]private Tokenprivate int[]private final PropertyListParser.LookaheadSuccessNext token.private intprivate booleanprivate TokenCurrent token.Generated Token Manager.private booleanprivate intFields inherited from interface org.apache.commons.configuration2.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, IN_COMMENT, IN_SINGLE_LINE_COMMENT, LETTER, QUOTE, QUOTED_STRING, SINGLE_LINE_COMMENT, STRING, tokenImage, WHITE -
Constructor Summary
ConstructorsConstructorDescriptionPropertyListParser(InputStream stream) Constructor with InputStream.PropertyListParser(InputStream stream, String encoding) Constructor with InputStream and supplied encodingPropertyListParser(Reader stream) Constructor.Constructor with generated Token Manager. -
Method Summary
Modifier and TypeMethodDescriptionfinal ListArray()final byte[]Data()final DateDate()final voidDisable tracing.final ObjectElement()final voidEnable tracing.protected byte[]filterData(String s) Remove the white spaces and the data delimiters from the specified string and parse it as a byte array.Generate ParseException.final TokenGet the next Token.final TokengetToken(int index) Get the specific Token.private booleanjj_2_1(int xla) private booleanjj_3_1()private booleanjj_3R_10()private booleanjj_3R_11()private booleanjj_3R_12()private booleanjj_3R_13()private booleanjj_3R_14()private booleanjj_3R_15()private booleanjj_3R_3()private booleanjj_3R_4()private booleanjj_3R_5()private booleanjj_3R_6()private booleanjj_3R_7()private booleanjj_3R_8()private booleanjj_3R_9()private voidjj_add_error_token(int kind, int pos) private Tokenjj_consume_token(int kind) private static voidprivate intjj_ntk_f()private voidprivate voidjj_save(int index, int xla) private booleanjj_scan_token(int kind) parse()protected DateParse a date formatted as invalid input: '<'*D2002-03-22 11:30:00 +0100>final ImmutableNodeProperty()voidReInit(InputStream stream) Reinitialise.voidReInit(InputStream stream, String encoding) Reinitialise.voidReinitialise.voidReinitialise.protected StringRemove the quotes at the beginning and at the end of the specified String.final StringString()final booleanTrace enabled.protected String
-
Field Details
-
token_source
Generated Token Manager. -
jj_input_stream
SimpleCharStream jj_input_stream -
token
Current token. -
jj_nt
Next token. -
jj_ntk
private int jj_ntk -
jj_scanpos
-
jj_lastpos
-
jj_la
private int jj_la -
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
-
jj_rescan
private boolean jj_rescan -
jj_gc
private int jj_gc -
jj_ls
-
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 -
trace_indent
private int trace_indent -
trace_enabled
private boolean trace_enabled
-
-
Constructor Details
-
PropertyListParser
Constructor with InputStream. -
PropertyListParser
Constructor with InputStream and supplied encoding -
PropertyListParser
Constructor. -
PropertyListParser
Constructor with generated Token Manager.
-
-
Method Details
-
removeQuotes
Remove the quotes at the beginning and at the end of the specified String. -
unescapeQuotes
-
filterData
Remove the white spaces and the data delimiters from the specified string and parse it as a byte array.- Throws:
ParseException
-
parseDate
Parse a date formatted as invalid input: '<'*D2002-03-22 11:30:00 +0100>- Throws:
ParseException
-
parse
- Throws:
ParseException
-
Dictionary
- Throws:
ParseException
-
Property
- Throws:
ParseException
-
Element
- Throws:
ParseException
-
Array
- Throws:
ParseException
-
String
- Throws:
ParseException
-
Data
- Throws:
ParseException
-
Date
- Throws:
ParseException
-
jj_2_1
private boolean jj_2_1(int xla) -
jj_3R_15
private boolean jj_3R_15() -
jj_3R_3
private boolean jj_3R_3() -
jj_3_1
private boolean jj_3_1() -
jj_3R_5
private boolean jj_3R_5() -
jj_3R_14
private boolean jj_3R_14() -
jj_3R_11
private boolean jj_3R_11() -
jj_3R_10
private boolean jj_3R_10() -
jj_3R_13
private boolean jj_3R_13() -
jj_3R_9
private boolean jj_3R_9() -
jj_3R_8
private boolean jj_3R_8() -
jj_3R_12
private boolean jj_3R_12() -
jj_3R_7
private boolean jj_3R_7() -
jj_3R_4
private boolean jj_3R_4() -
jj_3R_6
private boolean jj_3R_6() -
jj_la1_init_0
private static void jj_la1_init_0() -
ReInit
Reinitialise. -
ReInit
Reinitialise. -
ReInit
Reinitialise. -
ReInit
Reinitialise. -
jj_consume_token
- Throws:
ParseException
-
jj_scan_token
private boolean jj_scan_token(int kind) -
getNextToken
Get the next Token. -
getToken
Get the specific Token. -
jj_ntk_f
private int jj_ntk_f() -
jj_add_error_token
private void jj_add_error_token(int kind, int pos) -
generateParseException
Generate ParseException. -
trace_enabled
public final boolean trace_enabled()Trace enabled. -
enable_tracing
public final void enable_tracing()Enable tracing. -
disable_tracing
public final void disable_tracing()Disable tracing. -
jj_rescan_token
private void jj_rescan_token() -
jj_save
private void jj_save(int index, int xla)
-