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 class
private static final class
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final PropertyListParser.JJCalls[]
private int
private List
<int[]> private int[]
private int
private int
(package private) SimpleCharStream
private int
private int
private final int[]
private static int[]
private Token
private int[]
private static final PropertyListParser.LookaheadSuccess
Next token.private int
private boolean
private Token
Current token.Generated Token Manager.private boolean
Fields 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 List
Array()
final byte[]
Data()
final Date
Date()
final void
Disable tracing.final Object
Element()
final void
Enable 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 Token
Get the next Token.final Token
getToken
(int index) Get the specific Token.private boolean
jj_2_1
(int xla) private boolean
jj_3_1()
private boolean
private boolean
private boolean
private boolean
private boolean
private boolean
private boolean
private boolean
private boolean
private boolean
private boolean
private boolean
private boolean
private void
jj_add_error_token
(int kind, int pos) private Token
jj_consume_token
(int kind) private static void
private int
jj_ntk_f()
private void
private void
jj_save
(int index, int xla) private boolean
jj_scan_token
(int kind) parse()
protected Date
Parse a date formatted as invalid input: '<'*D2002-03-22 11:30:00 +0100>final ImmutableNode
Property()
void
ReInit
(InputStream stream) Reinitialise.void
ReInit
(InputStream stream, String encoding) Reinitialise.void
Reinitialise.void
Reinitialise.protected String
Remove the quotes at the beginning and at the end of the specified String.final String
String()
final boolean
Trace 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_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_String_267_5_15
private boolean jj_3R_String_267_5_15() -
jj_3R_Array_244_5_3
private boolean jj_3R_Array_244_5_3() -
jj_3_1
private boolean jj_3_1() -
jj_3R_Element_220_5_5
private boolean jj_3R_Element_220_5_5() -
jj_3R_String_264_5_14
private boolean jj_3R_String_264_5_14() -
jj_3R_String_264_5_11
private boolean jj_3R_String_264_5_11() -
jj_3R_Dictionary_171_5_10
private boolean jj_3R_Dictionary_171_5_10() -
jj_3R_Date_285_5_13
private boolean jj_3R_Date_285_5_13() -
jj_3R_Element_234_5_9
private boolean jj_3R_Element_234_5_9() -
jj_3R_Element_231_5_8
private boolean jj_3R_Element_231_5_8() -
jj_3R_Data_276_5_12
private boolean jj_3R_Data_276_5_12() -
jj_3R_Element_228_5_7
private boolean jj_3R_Element_228_5_7() -
jj_3R_Array_246_9_4
private boolean jj_3R_Array_246_9_4() -
jj_3R_Element_225_5_6
private boolean jj_3R_Element_225_5_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)
-