org.apache.tomcat.util.bcel.classfile

## Class JavaClass

- java.lang.Object
- - org.apache.tomcat.util.bcel.classfile.JavaClass

-     public class JavaClass
      extends Object

  Represents a Java class, i.e., 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 programatically generating classes should see the ClassGen class.

- - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `int` | `getAccessFlags()`
    `AnnotationEntry[]` | `getAnnotationEntries()` Return annotations entries from "RuntimeVisibleAnnotations" attribute on the class, if there is any.
    `String` | `getClassName()`
    `String[]` | `getInterfaceNames()`
    `String` | `getSuperclassName()` returns the super class name of this class.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Method Detail

    - #### getAccessFlags

          public final int getAccessFlags()

      Returns:
        Access flags of the object aka. "modifiers".

    - #### getAnnotationEntries

          public AnnotationEntry[] getAnnotationEntries()

      Return annotations entries from "RuntimeVisibleAnnotations" attribute on the class, if there is any.
      Returns:
        An array of entries or `null`

    - #### getClassName

          public String getClassName()

      Returns:
        Class name.

    - #### getInterfaceNames

          public String[] getInterfaceNames()

      Returns:
        Names of implemented interfaces.

    - #### getSuperclassName

          public String getSuperclassName()

      returns the super class name of this class. In the case that this class is java.lang.Object, it will return itself (java.lang.Object). This is probably incorrect but isn't fixed at this time to not break existing clients.
      Returns:
        Superclass name.

Copyright © 2000-2017 Apache Software Foundation. All Rights Reserved.