X-Git-Url: http://git.megacz.com/?p=sbp.git;a=blobdiff_plain;f=src%2Fedu%2Fberkeley%2Fsbp%2FInput.java;h=bf0d50deb2e02f14ec73b0e88d1f9e1f6d0b3604;hp=13c45d49de0476210819bc76befe901ce5c7e653;hb=449c39e0dafd7c736bfcd8d56bbd08b7a99e25a4;hpb=dcf8aafe73cbd899d8aebd2ef92df5a75a2c2b69 diff --git a/src/edu/berkeley/sbp/Input.java b/src/edu/berkeley/sbp/Input.java index 13c45d4..bf0d50d 100644 --- a/src/edu/berkeley/sbp/Input.java +++ b/src/edu/berkeley/sbp/Input.java @@ -22,12 +22,13 @@ public interface Input { /** * Optional: If possible, this method will return a - * <60 char long rendering of the input region (for example, if - * the input is a region of characters, it would be those - * characters, possibly with ellipses in the middle to truncate - * the length) -- otherwise, returns null. + * rendering of the input region (for example, if the input is a + * region of characters, it would be those characters) -- + * otherwise, returns null. In any case, the string returned + * will be no more than maxLength characters long; + * typically ellipses will be inserted to perform truncation. */ - public abstract String showRegion(Region r); + public abstract String showRegion(Region r, int maxLength); /** a location (position) in the input stream -- between tokens */ public static interface Location extends Comparable {