public static boolean isValidTypeSignature(String sig,boolean allowVoid){
  int len=sig.length();
  return checkTypeSignature(sig,0,len,allowVoid) == len;
}

public static boolean isValidTypeSignature ( String sig , boolean allowVoid ) { int len = sig . length ( ) ; return checkTypeSignature ( sig , 0 , len , allowVoid ) == len ; }
returns true if the given type signature is valid , false if it is not .
