| 1 | /* |
| 2 | * $Id: CniPointerTypePrinter.java,v 1.1.1.2 2004/05/25 20:23:30 hastings Exp $ |
| 3 | * |
| 4 | * (c) Copyright, Moebius Solutions, Inc., 2004 |
| 5 | * |
| 6 | * All Rights Reserved |
| 7 | * |
| 8 | * This material may be reproduced by or for the U. S. Government |
| 9 | * pursuant to the copyright license under the clause at |
| 10 | * DFARS 252.227-7014 (OCT 2001). |
| 11 | */ |
| 12 | |
| 13 | package com.moesol.generator.printer; |
| 14 | |
| 15 | import java.io.*; |
| 16 | |
| 17 | /** |
| 18 | * Print types out in a manner suitable for interfacing with Cni, |
| 19 | * including return types and parameters. |
| 20 | */ |
| 21 | public class CniPointerTypePrinter extends CniTypePrinter { |
| 22 | protected CniPointerTypePrinter() { } |
| 23 | private static CniPointerTypePrinter instance = new CniPointerTypePrinter(); |
| 24 | public static JniTypePrinter getInstance() { |
| 25 | return instance; |
| 26 | } |
| 27 | |
| 28 | protected void objectCxxType(Writer out, Class type) throws IOException { |
| 29 | super.objectCxxType(out, type); |
| 30 | out.write(" *"); |
| 31 | } |
| 32 | } |