Package org.eclipse.cdt.core.dom.ast.cpp

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


    final List<IASTInitializerClause> initializerClauses = new ArrayList<IASTInitializerClause>();
    for (final Object argumentObject : classInstanceCreation.arguments()) {
      final ExpressionInfo argument = new ExpressionInfo((Expression) argumentObject, typeDeclaration, compilationUnitInfo);
      initializerClauses.add(argument.getExpression());
    }
    final ICPPASTConstructorInitializer constructorInitializer = f.newConstructorInitializer(initializerClauses.toArray(new IASTInitializerClause[initializerClauses.size()]));

    return f.newNewExpression(null, constructorInitializer, f.newTypeId(typeInfo.getDeclSpecifier(), declarator));
  }
View Full Code Here

TOP

Related Classes of org.eclipse.cdt.core.dom.ast.cpp.ICPPASTConstructorInitializer

Copyright © 2018 www.massapicom. 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.