public class JavaInnerClass extends JavaSource
Implements an inner class.
JavaSource.Protection, JavaSource.Type
CLASS, DEFAULT_PROTECTION, INTERFACE, PRIVATE, PROTECTED, PUBLIC
NOTHING
Modifier and Type | Method and Description |
---|---|
void |
addImport(java.lang.String s)
Throws an exception, as inner classes don't have import
statements.
|
JavaSource |
getOuterClass()
Returns the outer JavaSource instance.
|
boolean |
getStatic()
Returns whether this inner class is static.
|
boolean |
isInnerClass()
Returns, whether this is an inner class.
|
void |
setStatic(boolean pStatic)
Sets whether this inner class is static.
|
addExtends, addExtends, addImplements, addImplements, addImport, addImport, addInnerClass, addRawJavaSource, asString, clearExtends, clearImplements, clearImports, clearInnerClasses, clearRawJavaSources, getClassInitializers, getClassName, getComment, getConstructor, getConstructorIterator, getConstructors, getExtends, getFactory, getField, getFields, getImplements, getImports, getInnerClass, getInnerClasses, getMethod, getMethodIterator, getMethods, getPackageName, getProtection, getQName, getQuoted, getQuotedNoQuotes, getRawJavaSources, getType, hasDynamicImports, isAbstract, isExtending, isExtending, isForcingFullyQualifiedName, isImplementing, isImplementing, isInterface, newBeanProperty, newBeanProperty, newBeanProperty, newBeanProperty, newComment, newJavaClassInitializer, newJavaConstructor, newJavaConstructor, newJavaConstructor, newJavaConstructor, newJavaConstructor, newJavaConstructor, newJavaField, newJavaField, newJavaField, newJavaField, newJavaField, newJavaField, newJavaField, newJavaField, newJavaField, newJavaField, newJavaInnerClass, newJavaInnerClass, newJavaInnerClass, newJavaMethod, newJavaMethod, newJavaMethod, newJavaMethod, newJavaMethod, newJavaMethod, newJavaMethod, newJavaMethod, newJavaMethod, newJavaMethod, newJavaMethod, setAbstract, setDynamicImports, setForcingFullyQualifiedName, setProtection, setQName, setType, toString, write, write
addLine, addLine, addLine, addLine, addLine, addLine, addLine, addLine, addLine, addLine, addLine, addLine, addLine, addLine, addLine, addLine, addLine, addLine, asString, checkNulls, clear, getLevel, getLines, getLines, getPlaceHolder, indent, isEmpty, moveToBottom, moveToTop, newPlaceHolder, removePlaceHolder, setLevel, unindent, write
public JavaSource getOuterClass()
Returns the outer JavaSource instance.
public void addImport(java.lang.String s)
Throws an exception, as inner classes don't have import statements.
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
public boolean isInnerClass()
Returns, whether this is an inner class.
isInnerClass
in class JavaSource