- java.lang.Object
-
- com.ibm.java.diagnostics.utils.plugins.ClassInfo
-
public class ClassInfo extends Object
Information about the structural aspects of a class such as the annotations found and interfaces supported.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AnnotationaddAnnotation(String classname)Adds an annotation to the listvoidaddInterface(String iface)AnnotationgetAnnotation(String classname)List<Annotation>getAnnotations()StringgetClassname()List<String>getInterfaces()StringgetSuperclass()URLgetURL()booleanhasAnnotation(String classname)booleanhasInterface(Class<?> iface)booleanhasInterface(String iface)voidsetSuperclass(String superclass)
-
-
-
Method Detail
-
addInterface
public void addInterface(String iface)
-
getAnnotations
public List<Annotation> getAnnotations()
-
hasInterface
public boolean hasInterface(Class<?> iface)
-
hasInterface
public boolean hasInterface(String iface)
-
hasAnnotation
public boolean hasAnnotation(String classname)
-
getAnnotation
public Annotation getAnnotation(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)
-
-