1 29 30 package com.caucho.java.gen; 31 32 import com.caucho.bytecode.JClass; 33 import com.caucho.java.JavaWriter; 34 import com.caucho.java.LineMap; 35 import com.caucho.vfs.WriteStream; 36 37 import java.io.IOException ; 38 39 42 public class JavaWriterWrapper extends JavaWriter { 43 private JavaWriter _writer; 45 46 public JavaWriterWrapper(JavaWriter writer) 47 { 48 super(null); 49 50 _writer = writer; 51 } 52 53 56 public WriteStream getWriteStream() 57 { 58 return _writer.getWriteStream(); 59 } 60 61 64 public int getDestLine() 65 { 66 return _writer.getDestLine(); 67 } 68 69 72 public void setLineMap(LineMap lineMap) 73 { 74 _writer.setLineMap(lineMap); 75 } 76 77 80 public LineMap getLineMap() 81 { 82 return _writer.getLineMap(); 83 } 84 85 91 public void setLocation(String filename, int line) 92 throws IOException 93 { 94 _writer.setLocation(filename, line); 95 } 96 97 100 public int generateId() 101 { 102 return _writer.generateId(); 103 } 104 105 108 public void printJavaString(String s) 109 throws IOException 110 { 111 _writer.printJavaString(s); 112 } 113 114 117 public void printJavaChar(char ch) 118 throws IOException 119 { 120 _writer.printJavaChar(ch); 121 } 122 123 126 public void pushDepth() 127 throws IOException 128 { 129 _writer.pushDepth(); 130 } 131 132 135 public void popDepth() 136 throws IOException 137 { 138 _writer.popDepth(); 139 } 140 141 144 public void print(String s) 145 throws IOException 146 { 147 _writer.print(s); 148 } 149 150 153 public void print(char ch) 154 throws IOException 155 { 156 _writer.print(ch); 157 } 158 159 162 public void print(boolean b) 163 throws IOException 164 { 165 _writer.print(b); 166 } 167 168 171 public void print(int i) 172 throws IOException 173 { 174 _writer.print(i); 175 } 176 177 180 public void print(long l) 181 throws IOException 182 { 183 _writer.print(l); 184 } 185 186 189 public void print(Object o) 190 throws IOException 191 { 192 _writer.print(o); 193 } 194 195 198 public void println(String s) 199 throws IOException 200 { 201 _writer.println(s); 202 } 203 204 207 public void println(boolean v) 208 throws IOException 209 { 210 _writer.println(v); 211 } 212 213 216 public void println(char ch) 217 throws IOException 218 { 219 _writer.println(ch); 220 } 221 222 225 public void println(int v) 226 throws IOException 227 { 228 _writer.println(v); 229 } 230 231 234 public void println(long v) 235 throws IOException 236 { 237 _writer.println(v); 238 } 239 240 243 public void println(Object v) 244 throws IOException 245 { 246 _writer.println(v); 247 } 248 249 252 public void println() 253 throws IOException 254 { 255 _writer.println(); 256 } 257 258 261 public void printClass(Class cl) 262 throws IOException 263 { 264 _writer.printClass(cl); 265 } 266 267 273 public void printJavaTypeToObject(String value, Class javaType) 274 throws IOException 275 { 276 _writer.printJavaTypeToObject(value, javaType); 277 } 278 279 285 public void printJavaTypeToObject(String value, JClass javaType) 286 throws IOException 287 { 288 _writer.printJavaTypeToObject(value, javaType); 289 } 290 291 294 public void printIndent() 295 throws IOException 296 { 297 _writer.printIndent(); 298 } 299 300 303 public String errorMessage(String message) 304 { 305 return _writer.errorMessage(message); 306 } 307 } 308 | Popular Tags |