Examples of ICPPFunctionType


Examples of org.eclipse.cdt.core.dom.ast.cpp.ICPPFunctionType

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) {
      return null;
    }
    return new CppToProtobufMapping(bindings.qualifiedNameOf(method), MESSAGE_FIELD);
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.