Interface Java.TypeDeclaration

All Superinterfaces:
Java.Locatable, Java.Scope
All Known Subinterfaces:
Java.MemberTypeDeclaration, Java.NamedTypeDeclaration, Java.PackageMemberTypeDeclaration
All Known Implementing Classes:
Java.AbstractTypeDeclaration, Java.AnonymousClassDeclaration, Java.ClassDeclaration, Java.InterfaceDeclaration, Java.LocalClassDeclaration, Java.MemberClassDeclaration, Java.MemberInterfaceDeclaration, Java.NamedClassDeclaration, Java.PackageMemberClassDeclaration, Java.PackageMemberInterfaceDeclaration
Enclosing class:
Java

public static interface Java.TypeDeclaration extends Java.Locatable, Java.Scope
  • Method Details

    • getModifiersAndAnnotations

      Java.ModifiersAndAnnotations getModifiersAndAnnotations()
    • getMemberTypeDeclaration

      Java.MemberTypeDeclaration getMemberTypeDeclaration(String name)
      Return the member type with the given name.
      Returns:
      null if a member type with that name is not declared
    • getMemberTypeDeclarations

      Collection getMemberTypeDeclarations()
    • getMethodDeclaration

      Java.MethodDeclarator getMethodDeclaration(String name)
      Return the first method declared with the given name. (Does not honor inherited methods.)
      Returns:
      null if a method with this name is not declared
    • getMethodDeclarations

      List getMethodDeclarations()
    • getClassName

      String getClassName()
      Determine the effective class name, e.g. "pkg.Outer$Inner".
    • createLocalTypeName

      String createLocalTypeName(String localTypeName)
      Creates a unique name for a local class or interface.
    • createAnonymousClassName

      String createAnonymousClassName()
      Creates a unique name for an anonymous class.
    • accept

      void accept(Visitor.TypeDeclarationVisitor visitor)