Examples of CPPClassType


Examples of org.eclipse.cdt.internal.core.dom.parser.cpp.CPPClassType

  boolean isMessage(IBinding binding) {
    if (!(binding instanceof CPPClassType)) {
      return false;
    }
    CPPClassType classType = (CPPClassType) binding;
    ICPPBase[] bases = classType.getBases();
    if (bases.length != 1) {
      return false;
    }
    IName name = bases[0].getBaseClassSpecifierName();
    if (!(name instanceof CPPASTQualifiedName)) {
View Full Code Here

Examples of org.eclipse.cdt.internal.core.dom.parser.cpp.CPPClassType

@SuppressWarnings("restriction")
class ClassMappingStrategy implements IBindingMappingStrategy<CPPClassType> {
  @Inject private IBindings bindings;

  @Override public CppToProtobufMapping createMappingFrom(IBinding binding) {
    CPPClassType classType = typeOfSupportedBinding().cast(binding);
    if (bindings.isMessage(classType)) {
      return new CppToProtobufMapping(bindings.qualifiedNameOf(classType), MESSAGE);
    }
    return null;
  }
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.