- 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 Annotation
addAnnotation(String classname)
Adds an annotation to the listvoid
addInterface(String iface)
Annotation
getAnnotation(String classname)
List<Annotation>
getAnnotations()
String
getClassname()
List<String>
getInterfaces()
String
getSuperclass()
URL
getURL()
boolean
hasAnnotation(String classname)
boolean
hasInterface(Class<?> iface)
boolean
hasInterface(String iface)
void
setSuperclass(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)
-
-