Class Java.InterfaceDeclaration
java.lang.Object
org.codehaus.janino.Java.AbstractTypeDeclaration
org.codehaus.janino.Java.InterfaceDeclaration
- All Implemented Interfaces:
Java.Annotatable, Java.DocCommentable, Java.Locatable, Java.NamedTypeDeclaration, Java.Scope, Java.TypeDeclaration
- Direct Known Subclasses:
Java.MemberInterfaceDeclaration, Java.PackageMemberInterfaceDeclaration
- Enclosing class:
Java
public abstract static class Java.InterfaceDeclaration
extends Java.AbstractTypeDeclaration
implements Java.NamedTypeDeclaration, Java.DocCommentable
Base for the various interface declaration kinds.
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal List<Java.FieldDeclaration> The constants that this interface declares.private final Stringfinal Java.Type[]The types of the interfaces that this interface extends.(package private) IType[]Set during "compile()".final StringThe simple name of the interface.Fields inherited from class Java.AbstractTypeDeclaration
anonymousClassCount, localClassCount, resolvedType -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedInterfaceDeclaration(Location location, String docComment, Java.Modifier[] modifiers, String name, Java.TypeParameter[] typeParameters, Java.Type[] extendedTypes) -
Method Summary
Methods inherited from class Java.AbstractTypeDeclaration
addDeclaredMethod, addMemberTypeDeclaration, createAnonymousClassName, createLocalTypeName, getAnnotations, getEnclosingScope, getLocation, getMemberTypeDeclaration, getMemberTypeDeclarations, getMethodDeclaration, getMethodDeclarations, getModifiers, getOptionalTypeParameters, invalidateMethodCaches, setEnclosingScope, throwCompileExceptionMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface Java.Annotatable
getAnnotationsMethods inherited from interface Java.Locatable
getLocation, throwCompileExceptionMethods inherited from interface Java.NamedTypeDeclaration
getOptionalTypeParametersMethods inherited from interface Java.Scope
getEnclosingScopeMethods inherited from interface Java.TypeDeclaration
accept, createAnonymousClassName, createLocalTypeName, getClassName, getMemberTypeDeclaration, getMemberTypeDeclarations, getMethodDeclaration, getMethodDeclarations
-
Field Details
-
docComment
-
name
The simple name of the interface. -
extendedTypes
The types of the interfaces that this interface extends. -
constantDeclarations
The constants that this interface declares. -
interfaces
-
-
Constructor Details
-
InterfaceDeclaration
protected InterfaceDeclaration(Location location, @Nullable String docComment, Java.Modifier[] modifiers, String name, @Nullable Java.TypeParameter[] typeParameters, Java.Type[] extendedTypes)
-
-
Method Details
-
toString
- Specified by:
toStringin classJava.AbstractTypeDeclaration
-
addConstantDeclaration
Adds one constant declaration to this interface declaration. -
getName
- Specified by:
getNamein interfaceJava.NamedTypeDeclaration- Returns:
- The declared (not the fully qualified) name of the class or interface
-
getDocComment
- Specified by:
getDocCommentin interfaceJava.DocCommentable- Returns:
- The doc comment of the object or
null
-
hasDeprecatedDocTag
public boolean hasDeprecatedDocTag()Description copied from interface:Java.DocCommentableReturnstrueif the object has a doc comment and the@deprecatedtag appears in the doc comment.- Specified by:
hasDeprecatedDocTagin interfaceJava.DocCommentable
-