throw new Error("Missing return statement in function");
}
final public PropertyListConfiguration Dictionary() throws ParseException {
ImmutableNode.Builder builder = new ImmutableNode.Builder();
ImmutableNode child = null;
jj_consume_token(DICT_BEGIN);
label_1:
while (true) {
switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
case STRING:
case QUOTED_STRING:
;
break;
default:
jj_la1[0] = jj_gen;
break label_1;
}
child = Property();
if (child.getValue() instanceof HierarchicalConfiguration)
{
// prune & graft the nested configuration to the parent configuration
@SuppressWarnings("unchecked") // we created this configuration
HierarchicalConfiguration<ImmutableNode> conf =
(HierarchicalConfiguration<ImmutableNode>) child.getValue();
ImmutableNode root = conf.getNodeModel().getNodeHandler().getRootNode();
ImmutableNode.Builder childBuilder = new ImmutableNode.Builder();
childBuilder.name(child.getNodeName()).value(root.getValue())
.addChildren(root.getChildren());
builder.addChild(childBuilder.create());
}
else
{
builder.addChild(child);