Code example for DateFormatSymbols

Methods: getShortWeekdays, getWeekdays

0
            @ParserContext("SYMBOLS") DateFormatSymbols symbols,
            @ParserContext("WEEKDAY") ExecutableElement[] weekday) throws NoSuchMethodException
    { 
        if (!grammar.hasNonterminal(name))
        { 
            addRules(grammar, name, symbols.getShortWeekdays(), symbols.getWeekdays(), weekday);
        } 
        rhs.add(name);
        return rhs;
    } 
    @Rule(left="rhs", value={"rhs", "ta"}) 
    protected List<String> ampm(
            List<String> rhs,
            String name,
            @ParserContext("GRAMMAR") Grammar grammar,
            @ParserContext("SYMBOLS") DateFormatSymbols symbols,
            @ParserContext("AMPM") ExecutableElement[] ampm) throws NoSuchMethodException
    { 
        if (!grammar.hasNonterminal(name))
        { 
            addRules(grammar, name, symbols.getAmPmStrings(), ampm);