public class InnerClass extends JavaElement
Constructor and Description |
---|
InnerClass(FullyQualifiedJavaType type)
Instantiates a new inner class.
|
InnerClass(String typeName)
Instantiates a new inner class.
|
Modifier and Type | Method and Description |
---|---|
void |
addField(Field field)
Adds the field.
|
void |
addInitializationBlock(InitializationBlock initializationBlock)
Adds the initialization block.
|
void |
addInnerClass(InnerClass innerClass)
Adds the inner class.
|
void |
addInnerEnum(InnerEnum innerEnum)
Adds the inner enum.
|
void |
addMethod(Method method)
Adds the method.
|
void |
addSuperInterface(FullyQualifiedJavaType superInterface)
Adds the super interface.
|
void |
addTypeParameter(TypeParameter typeParameter)
Adds the type parameter.
|
List<Field> |
getFields()
Gets the fields.
|
String |
getFormattedContent(int indentLevel,
CompilationUnit compilationUnit)
Gets the formatted content.
|
List<InitializationBlock> |
getInitializationBlocks()
Gets the initialization blocks.
|
List<InnerClass> |
getInnerClasses()
Gets the inner classes.
|
List<InnerEnum> |
getInnerEnums()
Gets the inner enums.
|
List<Method> |
getMethods()
Gets the methods.
|
FullyQualifiedJavaType |
getSuperClass()
Gets the super class.
|
Set<FullyQualifiedJavaType> |
getSuperInterfaceTypes()
Gets the super interface types.
|
FullyQualifiedJavaType |
getType()
Gets the type.
|
List<TypeParameter> |
getTypeParameters()
Gets the type parameters.
|
boolean |
isAbstract()
Checks if is abstract.
|
void |
setAbstract(boolean isAbtract)
Sets the abstract.
|
void |
setSuperClass(FullyQualifiedJavaType superClass)
Sets the super class.
|
void |
setSuperClass(String superClassType)
Sets the super class.
|
addAnnotation, addFormattedAnnotations, addFormattedJavadoc, addJavaDocLine, addSuppressTypeWarningsAnnotation, getAnnotations, getJavaDocLines, getVisibility, isFinal, isStatic, setFinal, setStatic, setVisibility
public InnerClass(FullyQualifiedJavaType type)
type
- the typepublic InnerClass(String typeName)
typeName
- the type namepublic void addField(Field field)
field
- the fieldpublic FullyQualifiedJavaType getSuperClass()
public void setSuperClass(FullyQualifiedJavaType superClass)
superClass
- The superClass to set.public void setSuperClass(String superClassType)
superClassType
- the new super classpublic List<InnerClass> getInnerClasses()
public void addInnerClass(InnerClass innerClass)
innerClass
- the inner classpublic void addInnerEnum(InnerEnum innerEnum)
innerEnum
- the inner enumpublic List<TypeParameter> getTypeParameters()
public void addTypeParameter(TypeParameter typeParameter)
typeParameter
- the type parameterpublic List<InitializationBlock> getInitializationBlocks()
public void addInitializationBlock(InitializationBlock initializationBlock)
initializationBlock
- the initialization blockpublic String getFormattedContent(int indentLevel, CompilationUnit compilationUnit)
indentLevel
- the indent levelcompilationUnit
- the compilation unitpublic Set<FullyQualifiedJavaType> getSuperInterfaceTypes()
public void addSuperInterface(FullyQualifiedJavaType superInterface)
superInterface
- the super interfacepublic void addMethod(Method method)
method
- the methodpublic FullyQualifiedJavaType getType()
public boolean isAbstract()
public void setAbstract(boolean isAbtract)
isAbtract
- the new abstractCopyright © 2006–2018 MyBatis.org. All rights reserved.