1 17 package org.apache.ws.jaxme.js; 18 19 20 24 public class JavaInnerClass extends JavaSource { 25 32 JavaInnerClass(JavaSource pOuterClass, JavaQName pName, Protection pProtection) { 33 super(pOuterClass.getFactory(), pName, pProtection); 34 outerClass = pOuterClass; 35 } 36 37 JavaSource outerClass; 38 40 public JavaSource getOuterClass() { 41 return outerClass; 42 } 43 44 47 public void addImport(String s) { 48 throw new IllegalArgumentException ("Inner classes must not use the import statement"); 49 } 50 51 53 public boolean getStatic() { 54 return super.getStatic(); 55 } 56 57 59 public void setStatic(boolean pStatic) { 60 super.setStatic(pStatic); 61 } 62 63 65 public boolean isInnerClass() { 66 return true; 67 } 68 } 69 | Popular Tags |