Module openj9.dtfj

Class ClassInfo


  • public class ClassInfo
    extends Object
    Information about the structural aspects of a class such as the annotations found and interfaces supported.
    • Constructor Detail

      • ClassInfo

        public ClassInfo​(String classname,
                         URL url)
    • Method Detail

      • getInterfaces

        public List<String> getInterfaces()
      • addInterface

        public void addInterface​(String iface)
      • hasInterface

        public boolean hasInterface​(Class<?> iface)
      • hasInterface

        public boolean hasInterface​(String iface)
      • hasAnnotation

        public boolean hasAnnotation​(String classname)
      • addAnnotation

        public Annotation addAnnotation​(String classname)
        Adds an annotation to the list
        Parameters:
        classname - class name for the annotation
        Returns:
        a new annotation if it did previously not exist, otherwise a new one is created
      • getClassname

        public String getClassname()
      • getURL

        public URL getURL()
      • getSuperclass

        public String getSuperclass()
      • setSuperclass

        public void setSuperclass​(String superclass)