VariableExpression titleExpr = pf.createVariableExpression();
titleExpr.setVarName("$test");
subTestValidateExpressionTitles(titleExpr);
}
{ // -- literal list
LiteralList titleExpr = pf.createLiteralList();
titleExpr.getElements().add(this.createNameOrReference("a"));
titleExpr.getElements().add(this.createNameOrReference("b"));
subTestValidateExpressionTitles(titleExpr);
}
{ // -- hasharray access
AtExpression titleExpr = pf.createAtExpression();
titleExpr.setLeftExpr(createNameOrReference("Foo"));
titleExpr.getParameters().add(createNameOrReference("a"));
subTestValidateExpressionTitles(titleExpr);
}
{ // -- selector
SelectorExpression titleExpr = pf.createSelectorExpression();
SelectorEntry entry = pf.createSelectorEntry();
titleExpr.getParameters().add(entry);
SingleQuotedString slhs = pf.createSingleQuotedString();
slhs.setText("\'x\'");
LiteralName entrylhs = pf.createLiteralName();
entrylhs.setValue("a");
titleExpr.setLeftExpr(slhs);
entry.setLeftExpr(entrylhs);
entry.setRightExpr(pf.createLiteralBoolean());
subTestValidateExpressionTitles(titleExpr);
}
}