Interface IJLSTypeAdapter


public interface IJLSTypeAdapter
An adapter for Java-like types.
  • Method Details

    • getType

      IJLSType getType(String typename)
      Parameters:
      typename - a class or interface type name (binary form or jvm form)
      Returns:
    • getSupertype

      String getSupertype(String typename)
      Parameters:
      typename - a class or interface type name (binary form or jvm form)
      Returns:
      the supertype (binary form), null if the provided type was not found or does not exit
    • getInterfaces

      List<String> getInterfaces(String typename)
      Parameters:
      typename - a class or interface type name (binary form or jvm form)
      Returns:
      a list of implemented interfaces (binary forms), null if the provided typename was not found or does not exit
    • getParentTypes

      List<String> getParentTypes(String typename)
      Parameters:
      typename - a class or interface type name (binary form or jvm form)
      Returns:
      a list of parent types (binary forms), null if the provided typename was not found or does not exit
    • getMethods

      List<IJLSMethod> getMethods(String typename)
      Retrieve all methods and constructors declared by this type (not its supertypes). If possible, the static type initializer (<clinit>) is also included.
      Parameters:
      typename - a class or interface type name (binary form or jvm form)
      Returns:
      a list of defined (internal) methods, null if the provided typename was not found or does not exit
    • findMethod

      IJLSMethod findMethod(String typename, String methodname, String methoddesc)
      Retrieve a method or constructor declared by this type (not its supertypes). If possible, the static type initializer (<clinit>) is also included.
      Parameters:
      typename - a class or interface type name (binary form or jvm form)
      methodname - simple method name
      methoddesc - method descriptor (internal binary format), in the form of: (argtypes)rettype
      Returns:
    • getFields

      List<IJLSField> getFields(String typename)
      Parameters:
      typename - a class or interface type name (binary form or jvm form)
      Returns:
      a list of defined (internal) fields, null if the provided typename was not found or does not exit
    • getTypeAnnotations

      List<IJLSAnnotation> getTypeAnnotations(String typename)
      Parameters:
      typename - a class or interface type name (binary form or jvm form)
      Returns:
      a list of annotations attached to the type (this method does not return annotations attached to the fields, methods, or methods' parameters defined in the queried type)