public static int optionLength ( String option ) { if ( matchOption ( option , "qualify" , true ) || matchOption ( option , "qualifyGenerics" , true ) || matchOption ( option , "hideGenerics" , true ) || matchOption ( option , "horizontal" , true ) || matchOption ( option , "all" ) || matchOption ( option , "attributes" , true ) || matchOption ( option , "enumconstants" , true ) || matchOption ( option , "operations" , true ) || matchOption ( option , "enumerations" , true ) || matchOption ( option , "constructors" , true ) || matchOption ( option , "visibility" , true ) || matchOption ( option , "types" , true ) || matchOption ( option , "autosize" , true ) || matchOption ( option , "commentname" , true ) || matchOption ( option , "nodefontabstractitalic" , true ) || matchOption ( option , "postfixpackage" , true ) || matchOption ( option , "noguillemot" , true ) || matchOption ( option , "views" , true ) || matchOption ( option , "inferrel" , true ) || matchOption ( option , "useimports" , true ) || matchOption ( option , "collapsible" , true ) || matchOption ( option , "inferdep" , true ) || matchOption ( option , "inferdepinpackage" , true ) || matchOption ( option , "hideprivateinner" , true ) || matchOption ( option , "compact" , true ) ) return 1 ; else if ( matchOption ( option , "nodefillcolor" ) || matchOption ( option , "nodefontcolor" ) || matchOption ( option , "nodefontsize" ) || matchOption ( option , "nodefontname" ) || matchOption ( option , "nodefontclasssize" ) || matchOption ( option , "nodefontclassname" ) || matchOption ( option , "nodefonttagsize" ) || matchOption ( option , "nodefonttagname" ) || matchOption ( option , "nodefontpackagesize" ) || matchOption ( option , "nodefontpackagename" ) || matchOption ( option , "edgefontcolor" ) || matchOption ( option , "edgecolor" ) || matchOption ( option , "edgefontsize" ) || matchOption ( option , "edgefontname" ) || matchOption ( option , "shape" ) || matchOption ( option , "output" ) || matchOption ( option , "outputencoding" ) || matchOption ( option , "bgcolor" ) || matchOption ( option , "hide" ) || matchOption ( option , "include" ) || matchOption ( option , "apidocroot" ) || matchOption ( option , "apidocmap" ) || matchOption ( option , "d" ) || matchOption ( option , "view" ) || matchOption ( option , "inferreltype" ) || matchOption ( option , "inferdepvis" ) || matchOption ( option , "collpackages" ) || matchOption ( option , "nodesep" ) || matchOption ( option , "ranksep" ) || matchOption ( option , "dotexecutable" ) || matchOption ( option , "link" ) ) return 2 ; else if ( matchOption ( option , "contextPattern" ) || matchOption ( option , "linkoffline" ) ) return 3 ; else return 0 ; }
Return the number of arguments associated with the specified option . The return value includes the actual option . Will return 0 if the option is not supported .