@SuppressWarnings("restriction")
class MethodMappingStrategy implements IBindingMappingStrategy<CPPMethod> {
@Inject private IBindings bindings;
@Override public CppToProtobufMapping createMappingFrom(IBinding binding) {
CPPMethod method = typeOfSupportedBinding().cast(binding);
ICPPFunctionType type = method.getType();
if (!type.isConst()) {
return null;
}
IType[] types = type.getParameterTypes();
if (types != null && types.length > 0) {