public class InnerEnum extends JavaElement
| 构造器和说明 |
|---|
InnerEnum(FullyQualifiedJavaType type)
Instantiates a new inner enum.
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
addEnumConstant(java.lang.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.
|
java.util.List<java.lang.String> |
getEnumConstants()
Gets the enum constants.
|
java.util.List<Field> |
getFields()
Gets the fields.
|
java.lang.String |
getFormattedContent(int indentLevel,
CompilationUnit compilationUnit)
Gets the formatted content.
|
java.util.List<InnerClass> |
getInnerClasses()
Gets the inner classes.
|
java.util.List<InnerEnum> |
getInnerEnums()
Gets the inner enums.
|
java.util.List<Method> |
getMethods()
Gets the methods.
|
java.util.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, setVisibilitypublic InnerEnum(FullyQualifiedJavaType type)
type - the typepublic java.util.List<Field> getFields()
public void addField(Field field)
field - the fieldpublic java.util.List<InnerClass> getInnerClasses()
public void addInnerClass(InnerClass innerClass)
innerClass - the inner classpublic java.util.List<InnerEnum> getInnerEnums()
public void addInnerEnum(InnerEnum innerEnum)
innerEnum - the inner enumpublic java.util.List<java.lang.String> getEnumConstants()
public void addEnumConstant(java.lang.String enumConstant)
enumConstant - the enum constantpublic java.lang.String getFormattedContent(int indentLevel,
CompilationUnit compilationUnit)
indentLevel - the indent levelcompilationUnit - the compilation unitpublic java.util.Set<FullyQualifiedJavaType> getSuperInterfaceTypes()
public void addSuperInterface(FullyQualifiedJavaType superInterface)
superInterface - the super interfacepublic java.util.List<Method> getMethods()
public void addMethod(Method method)
method - the methodpublic FullyQualifiedJavaType getType()
Copyright © 2018. All Rights Reserved.