Class ZClass

java.lang.Object
dxt.scanpath.v2.bc.ZClass

public class ZClass extends Object
Encapsulates metadata for a class read directly from a class file.

The metadata includes the class name, availability of class-file data, superclass, implemented interfaces, runtime-visible annotations, fields, and methods.

Author:
indroneel
  • Method Details

    • getName

      public String getName()
      Returns the fully qualified class name.
      Returns:
      the class name
    • isAvailable

      public boolean isAvailable()
      Indicates whether classfile data was available when this object was created.
      Returns:
      true if the class was parsed from class-file data; otherwise, false
    • getInterfaces

      public List<ZClass> getInterfaces()
      Returns the interfaces implemented by this class.
      Returns:
      the implemented interface metadata
    • getSuperClass

      public ZClass getSuperClass()
      Returns the superclass metadata.
      Returns:
      the superclass, or null if no superclass is present
    • getAnnotations

      public List<ZClass> getAnnotations()
      Returns the types of the class's runtime-visible annotations.
      Returns:
      the class's annotation types
    • getFields

      public List<ZField> getFields()
      Returns the fields declared by this class.
      Returns:
      all field metadata as a list
    • getMethods

      public List<ZMethod> getMethods()
      Returns the methods declared by this class.
      Returns:
      all method metadata as a list