Package jminusminus

Interface JTypeDecl

All Known Implementing Classes:
JClassDeclaration, JInterfaceDeclaration

interface JTypeDecl
An interface supported by class (or later, interface) declarations.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Declares this type in the parent context.
    Returns the name of this type declaration.
    void
    Pre-analyzes the members of this declaration in the parent context.
    Returns the types of the implemented interfaces for a class or extended interfaces for an interface.
    Returns the type of the extended class for a class or java.lang.Object for an interface.
    Returns the type that this type declaration defines.
  • Method Details

    • declareThisType

      void declareThisType(Context context)
      Declares this type in the parent context. Called before pre-analysis so that it is available in the preAnalyze() method of other types.
      Parameters:
      context - the parent (compilation unit) context.
    • preAnalyze

      void preAnalyze(Context context)
      Pre-analyzes the members of this declaration in the parent context.
      Parameters:
      context - the parent (compilation unit) context.
    • name

      String name()
      Returns the name of this type declaration.
      Returns:
      the name of this type declaration.
    • thisType

      Type thisType()
      Returns the type that this type declaration defines.
      Returns:
      the type defined by this type declaration.
    • superType

      Type superType()
      Returns the type of the extended class for a class or java.lang.Object for an interface.
      Returns:
      the type of the extended class for a class or java.lang.Object for an interface.
    • superInterfaces

      ArrayList<TypeName> superInterfaces()
      Returns the types of the implemented interfaces for a class or extended interfaces for an interface.
      Returns:
      the types of the implemented interfaces for a class or extended interfaces for an interface.