1 23 24 29 30 package com.sun.jdo.spi.persistence.utility.generator; 31 32 import java.io.IOException ; 33 import java.lang.reflect.Modifier ; 34 35 52 public interface JavaClassWriter 53 { 54 65 public void setClassDeclaration (int modifiers, String className, 66 String [] comments) throws IOException ; 67 68 73 public void setSuperclass (String name) throws IOException ; 74 75 79 public void addInterface (String name) throws IOException ; 80 81 96 public void addField (String name, int modifiers, String type, 97 String initialValue, String [] comments) throws IOException ; 98 99 110 public void addInitializer (boolean isStatic, String [] body, 111 String [] comments) throws IOException ; 112 113 132 public void addConstructor (String name, int modifiers, 133 String [] parameterNames, String [] parameterTypes, String [] exceptions, 134 String [] body, String [] comments) throws IOException ; 135 136 155 public void addMethod (String name, int modifiers, String returnType, 156 String [] parameterNames, String [] parameterTypes, String [] exceptions, 157 String [] body, String [] comments) throws IOException ; 158 159 163 public void addClass (JavaClassWriter classWriter) throws IOException ; 164 } 165 | Popular Tags |