Class JavaClass
java.lang.Object
org.apache.tomcat.util.bcel.classfile.JavaClass
Represents a Java class, that is, the data structures, constant pool, fields, methods and commands contained in a Java
.class file. See JVM specification for details. The intent of
this class is to represent a parsed or otherwise existing class file. Those interested in programmatically generating
classes should see the ClassGen class.
-
Method Summary
Modifier and TypeMethodDescriptionfinal intGet the access flags of this class.Return annotations entries from "RuntimeVisibleAnnotations" attribute on the class, fields or methods if there is any.Return annotations entries from "RuntimeVisibleAnnotations" attribute on the class, if there is any.Get the name of this class.String[]Get the names of the interfaces implemented by this class.returns the super class name of this class.
-
Method Details
-
getAccessFlags
public final int getAccessFlags()Get the access flags of this class.- Returns:
- the access flags
-
getAllAnnotationEntries
Return annotations entries from "RuntimeVisibleAnnotations" attribute on the class, fields or methods if there is any.- Returns:
- An array of entries or
null
-
getAnnotationEntries
Return annotations entries from "RuntimeVisibleAnnotations" attribute on the class, if there is any.- Returns:
- An array of entries or
null
-
getClassName
-
getInterfaceNames
Get the names of the interfaces implemented by this class.- Returns:
- the interface names
-
getSuperclassName
-