code: public static FunctionSignature valueOf(String serial) {
  		int paramStart = serial.indexOf("(");
  		int paramEnd = serial.indexOf(")");
  		if (paramStart < 0 || paramEnd != serial.length() - 1)
  			throw new IllegalArgumentException("Malformed method signature: " + serial);
  
  		String function = serial.substring(0, paramStart).trim();
  
  		String arguments = serial.substring(paramStart + 1, paramEnd);
  		StringTokenizer tokenizer = new StringTokenizer(arguments, ", ");
  		String[] names = new String[tokenizer.countTokens()];
  		for (int i = 0; i < names.length; ++i)
  			 names[i] = tokenizer.nextToken();
  
  		return new FunctionSignature(function, names);
  	}
docs: Parses a signature.