/** * Retrieves the {@link Lexical} object of the production if this is a lexical token. * Should not be called on other types of productions. * @return the Lexical object */ public Lexical getLexical() { assert isLexical(); return (Lexical) items.get(0); }