code: private void parseMethodSpec(String methodSpec)
     {
        methodName = null;
        methodInterface = null;
        methodSig = null;
  
        if (methodSpec != null)
        {
           StringTokenizer tokenizer = new StringTokenizer(methodSpec, ",", true);
           // Method name
           if (tokenizer.hasMoreTokens())
           {
              methodName = tokenizer.nextToken();
              if (methodName.equals(","))
                 methodName = null;
           }
           // Method interface
           if (tokenizer.hasMoreTokens())
           {
              methodInterface = tokenizer.nextToken();
              if (methodName != null && methodInterface.equals(","))
                 methodInterface = tokenizer.nextToken();
              if (methodInterface.equals(","))
              {
                 methodInterface = null;
                 methodSig = "";
              }
           }
           // Method args
           if (tokenizer.hasMoreTokens())
           {
              if (methodInterface != null)
                 tokenizer.nextToken();
              StringBuffer tmp = new StringBuffer();
              while (tokenizer.hasMoreTokens())
              {
                 tmp.append(tokenizer.nextToken());
              }
              methodSig = tmp.toString();
           }
        }
     }
docs: <p>
  Parse the methodSpec string into methodName, methodInterface and methodSig.
  </p>
  
  <p>
  The syntax of the methodSpec parameter is defined as follows:
  </p>
  
  <pre>
  methodNameSpec ::= methodName | emptyString
  
  methodInterfaceName ::= String
  
  methodInterfaceSpec ::= methodInterfaceName | emptyString
  
  typeName ::= typeName | typeName []
  
  methodParams ::= typeName | methodParams comma typeName
  
  methodParamsSpec ::= emptyString | methodParams
  
  methodSpec ::= null | methodNameSpec | methodNameSpec comma methodInterfaceName | methodNameSpec comma
  methodInterfaceSpec comma methodParamsSpec
  </pre>
  
  @param methodSpec
  - the string matching the format above