Interface ClassChecker

All Known Implementing Classes:
BytecodeChecker

public interface ClassChecker
interface hiding how we check the names of a class's super, outer class and implemented interfaces.
  • Method Summary

    Modifier and Type
    Method
    Description
    getInterface(int idx)
    identify the name of a specific interface in the implements list of this class
    int
    identify how many interfaces are in the implements list of this class
    identify the name of the super class for the checked class
    boolean
    identify if the checked class is embedded in an outer class
    boolean
    see if the checked class is an interface or really a class
  • Method Details

    • isInterface

      boolean isInterface()
      see if the checked class is an interface or really a class
      Returns:
      true if the checked class is an interface and false if it is really a class
    • getSuper

      String getSuper()
      identify the name of the super class for the checked class
      Returns:
      the name of the super class for the checked class
    • hasOuterClass

      boolean hasOuterClass()
      identify if the checked class is embedded in an outer class
      Returns:
      true if the checked class is embedded in an outer class otherwise false
    • getInterfaceCount

      int getInterfaceCount()
      identify how many interfaces are in the implements list of this class
      Returns:
      how many interfaces are in the implements list of this class
    • getInterface

      String getInterface(int idx)
      identify the name of a specific interface in the implements list of this class
      Parameters:
      idx - the index of the interface in the list
      Returns:
      the name of a specific interface in the implements list of this class