public BasicTest(String pName) {
super(pName);
}
public JavaSource getSource(JavaSource.Protection pProtection) {
JavaSourceFactory factory = new JavaSourceFactory();
JavaSource js;
JavaConstructor jcon;
JavaMethod jm;
JavaField jf;
LocalJavaField lfj;
if (pProtection == null) {
js = factory.newJavaSource(JavaQNameImpl.getInstance(PACKAGE_NAME, CLASS_NAME));
js.newJavaInnerClass("Bof");
jf = js.newJavaField("someField", int.class);
jcon = js.newJavaConstructor();
jm = js.newJavaMethod("test", void.class);
lfj = jm.newJavaField(String.class, "localTest");
} else {
js = factory.newJavaSource(JavaQNameImpl.getInstance(PACKAGE_NAME, CLASS_NAME), pProtection);
js.newJavaInnerClass("Bof", pProtection);
jf = js.newJavaField("someField", int.class, pProtection);
jcon = js.newJavaConstructor(pProtection);
jm = js.newJavaMethod("test", void.class, pProtection);
lfj = jm.newJavaField(String.class, "localTest");