1 23 24 29 30 31 32 package com.sun.cli.jmx.support; 33 34 import java.lang.reflect.Array ; 35 import java.util.ArrayList ; 36 37 public interface ArgParser 38 { 39 public final static char DEFAULT_ESCAPE_CHAR = '\\'; 40 public final static char DEFAULT_ARG_DELIM = ','; 41 public final static char DEFAULT_ARRAY_LEFT = '{'; 42 public final static char DEFAULT_ARRAY_RIGHT = '}'; 43 44 public final static String DEFAULT_ESCAPABLE_CHARS_WITHIN_LITERAL_STRING = 45 DEFAULT_ESCAPE_CHAR + "n" + "r" + "t" + "\""; 46 47 public final static String DEFAULT_ESCAPABLE_CHARS = 49 DEFAULT_ESCAPABLE_CHARS_WITHIN_LITERAL_STRING + 50 ",(){}" + "\"" ; 51 52 53 60 public String [] ParseNames( String input ) 61 throws ArgParserException; 62 63 64 73 public ParseResult [] Parse( String input, boolean namedArgs ) 74 throws ArgParserException; 75 }; 76 | Popular Tags |