|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.ispsoft.jaxme.generator.javasource.JavaSource de.ispsoft.jaxme.generator.javasource.JavaInnerClass
Implements an inner class.
Constructor Summary | |
JavaInnerClass(java.lang.String pName)
Creates a new JavaInnerClass with default protection |
|
JavaInnerClass(java.lang.String pName,
java.lang.String pProtection)
Creates a new JavaInnerClass with the given protection. |
Method Summary | |
void |
addImport(java.lang.String s)
Throws an exception, as inner classes don't have import statements. |
boolean |
getStatic()
Returns whether this inner class is static. |
void |
setPackage(java.lang.String pPackage)
Throws an Exception, as inner classes don't have a package. |
void |
setStatic(boolean pStatic)
Sets whether this inner class is static. |
void |
setType(java.lang.String type)
Throws an exception, as inner classes must not be interfaces. |
java.lang.String |
toString()
Same as JavaSource.toString(), but indents lines by two characters. |
Methods inherited from class de.ispsoft.jaxme.generator.javasource.JavaSource |
addConstructor, addField, addImplements, addInnerClass, addMethod, addRawJavaSource, clearInnerClasses, clearRawJavaSources, getComment, getConstructors, getExtends, getFields, getImplements, getImport, getInnerClasses, getMethods, getName, getPackage, getProtection, getQName, getQuoted, getQuotedNoQuotes, getRawJavaSources, getType, isAbstract, setAbstract, setComment, setExtends, setName, setProtection |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public JavaInnerClass(java.lang.String pName)
pName
- The class or interface namepublic JavaInnerClass(java.lang.String pName, java.lang.String pProtection)
Creates a new JavaInnerClass with the given protection.
pName
- The class or interface namepProtection
- null, "public", "protected" or "private"Method Detail |
public void setPackage(java.lang.String pPackage)
Throws an Exception, as inner classes don't have a package.
setPackage
in class JavaSource
JavaSource.getPackage()
public void setType(java.lang.String type)
Throws an exception, as inner classes must not be interfaces.
setType
in class JavaSource
type
- "class" or "interface"JavaSource.getType()
public void addImport(java.lang.String s)
Throws an exception, as inner classes don't have import statements.
addImport
in class JavaSource
JavaSource.addImport(java.lang.String)
public java.lang.String toString()
Same as JavaSource.toString(), but indents lines by two characters.
toString
in class JavaSource
public boolean getStatic()
Returns whether this inner class is static.
getStatic
in class JavaSource
public void setStatic(boolean pStatic)
Sets whether this inner class is static.
setStatic
in class JavaSource
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |