public class InnerEnum extends JavaElement
Constructor and Description |
---|
InnerEnum(FullyQualifiedJavaType type)
Instantiates a new inner enum.
|
Modifier and Type | Method and Description |
---|---|
void |
addEnumConstant(String enumConstant)
Adds the enum constant.
|
void |
addField(Field field)
Adds the field.
|
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.
|
List<String> |
getEnumConstants()
Gets the enum constants.
|
List<Field> |
getFields()
Gets the fields.
|
String |
getFormattedContent(int indentLevel,
CompilationUnit compilationUnit)
Gets the formatted content.
|
List<InnerClass> |
getInnerClasses()
Gets the inner classes.
|
List<InnerEnum> |
getInnerEnums()
Gets the inner enums.
|
List<Method> |
getMethods()
Gets the methods.
|
Set<FullyQualifiedJavaType> |
getSuperInterfaceTypes()
Gets the super interface types.
|
FullyQualifiedJavaType |
getType()
Gets the type.
|
addAnnotation, addFormattedAnnotations, addFormattedJavadoc, addJavaDocLine, addSuppressTypeWarningsAnnotation, getAnnotations, getJavaDocLines, getVisibility, isFinal, isStatic, setFinal, setStatic, setVisibility
public InnerEnum(FullyQualifiedJavaType type)
type
- the typepublic void addField(Field field)
field
- the fieldpublic List<InnerClass> getInnerClasses()
public void addInnerClass(InnerClass innerClass)
innerClass
- the inner classpublic void addInnerEnum(InnerEnum innerEnum)
innerEnum
- the inner enumpublic List<String> getEnumConstants()
public void addEnumConstant(String enumConstant)
enumConstant
- the enum constantpublic 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()
Copyright © 2006–2018 MyBatis.org. All rights reserved.