/** * Gets a type from a {@link ArgumentStack}. * * @param context the context * @param text the text annotation * @param modifiers a list of modifiers * @return the requested type * @throws ParameterException on error */ @BindingMatch(classifier = Text.class, type = String.class, behavior = BindingBehavior.CONSUMES, consumedCount = -1, provideModifiers = true) public String getText(ArgumentStack context, Text text, Annotation[] modifiers) throws ParameterException { String v = context.remaining(); validate(v, modifiers); return v; }