/** * Answer the give method's signature in class file format. * @param methodBinding binding representing a method * @return a signature in class file format */ public static String extractGenericSignature(IMethodBinding methodBinding) { // Note that IMethodBinding.binding is not accessible, hence we need to recover the signature from the key: KeyToSignature parser = new KeyToSignature(methodBinding.getKey(), KeyToSignature.SIGNATURE, true); parser.parse(); return parser.toString(); }
/** * Answer the given types's signature in class file format. * @param type binding representing a type * @return a signature in class file format */ public static String extractGenericTypeSignature(ITypeBinding type) { KeyToSignature parser = new KeyToSignature(type.getKey(), KeyToSignature.SIGNATURE, true); parser.parse(); return parser.toString(); }
/** * Answer the given types's signature in class file format. * @param type binding representing a type * @return a signature in class file format */ public static String extractGenericTypeSignature(ITypeBinding type) { KeyToSignature parser = new KeyToSignature(type.getKey(), KeyToSignature.SIGNATURE, true); parser.parse(); return parser.toString(); }
/** * Answer the given types's signature in class file format. * @param type binding representing a type * @return a signature in class file format */ public static String extractGenericTypeSignature(ITypeBinding type) { KeyToSignature parser = new KeyToSignature(type.getKey(), KeyToSignature.SIGNATURE, true); parser.parse(); return parser.toString(); }
/** * Answer the give method's signature in class file format. * @param methodBinding binding representing a method * @return a signature in class file format */ public static String extractGenericSignature(IMethodBinding methodBinding) { // Note that IMethodBinding.binding is not accessible, hence we need to recover the signature from the key: KeyToSignature parser = new KeyToSignature(methodBinding.getKey(), KeyToSignature.SIGNATURE, true); parser.parse(); return parser.toString(); }
/** * Answer the give method's signature in class file format. * @param methodBinding binding representing a method * @return a signature in class file format */ public static String extractGenericSignature(IMethodBinding methodBinding) { // Note that IMethodBinding.binding is not accessible, hence we need to recover the signature from the key: KeyToSignature parser = new KeyToSignature(methodBinding.getKey(), KeyToSignature.SIGNATURE, true); parser.parse(); return parser.toString(); }