public class InnerInterface extends JavaElement
| 构造器和说明 |
|---|
InnerInterface(FullyQualifiedJavaType type)
Instantiates a new interface.
|
InnerInterface(java.lang.String type)
Instantiates a new interface.
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
addField(Field field) |
void |
addInnerInterfaces(InnerInterface innerInterface)
Adds the inner interface.
|
void |
addMethod(Method method)
Adds the method.
|
void |
addSuperInterface(FullyQualifiedJavaType superInterface)
Adds the super interface.
|
java.util.List<Field> |
getFields() |
java.lang.String |
getFormattedContent(int indentLevel,
CompilationUnit compilationUnit)
Gets the formatted content.
|
java.util.List<InnerInterface> |
getInnerInterfaces()
Gets the inner interface.
|
java.util.List<Method> |
getMethods()
Gets the methods.
|
FullyQualifiedJavaType |
getSuperClass() |
java.util.Set<FullyQualifiedJavaType> |
getSuperInterfaceTypes() |
FullyQualifiedJavaType |
getType()
Gets the type.
|
boolean |
isJavaEnumeration() |
boolean |
isJavaInterface() |
addAnnotation, addFormattedAnnotations, addFormattedJavadoc, addJavaDocLine, addSuppressTypeWarningsAnnotation, getAnnotations, getJavaDocLines, getVisibility, isFinal, isStatic, setFinal, setStatic, setVisibilitypublic InnerInterface(FullyQualifiedJavaType type)
type - the typepublic InnerInterface(java.lang.String type)
type - the typepublic java.util.List<Field> getFields()
public void addField(Field field)
public java.lang.String getFormattedContent(int indentLevel,
CompilationUnit compilationUnit)
indentLevel - the indent levelcompilationUnit - the compilation unitpublic void addSuperInterface(FullyQualifiedJavaType superInterface)
superInterface - the super interfacepublic java.util.List<Method> getMethods()
public void addMethod(Method method)
method - the methodpublic FullyQualifiedJavaType getType()
public FullyQualifiedJavaType getSuperClass()
public java.util.Set<FullyQualifiedJavaType> getSuperInterfaceTypes()
public java.util.List<InnerInterface> getInnerInterfaces()
public void addInnerInterfaces(InnerInterface innerInterface)
innerInterface - the inner interfacepublic boolean isJavaInterface()
public boolean isJavaEnumeration()
Copyright © 2018. All Rights Reserved.