# Uses of Class
org.apache.bcel.classfile.JavaClass

Packages that use JavaClass
Package
Description
org.apache.bcel
Basic classes for the Apache Byte Code Engineering Library (BCEL) and constants defined by the JVM specification.
org.apache.bcel.classfile
Classes that describe the structure of a Java class file and a class file parser.
org.apache.bcel.generic
Generic part of the Apache Byte Code Engineering Library (BCEL), classes to dynamically modify class objects and byte code instructions.
org.apache.bcel.util
Utility classes for the Apache Byte Code Engineering Library (BCEL), namely: Collection classes for JavaClass objects A converter for class files to HTML A tool to find instructions patterns via regular expressions A class to find classes as defined in the CLASSPATH A class loader that allows to create classes at run time
org.apache.bcel.verifier.statics
PassVerifier classes used internally by JustIce.

- ## Uses of JavaClass in org.apache.bcel

  Methods in org.apache.bcel that return JavaClass
  Modifier and Type
  Method
  Description
  `static JavaClass`
  Repository.`addClass(JavaClass clazz)`
  Adds clazz to repository if there isn't an equally named class already in there.
  `static JavaClass[]`
  Repository.`getInterfaces(String className)`
  `static JavaClass[]`
  Repository.`getInterfaces(JavaClass clazz)`
  `static JavaClass[]`
  Repository.`getSuperClasses(String className)`
  `static JavaClass[]`
  Repository.`getSuperClasses(JavaClass clazz)`
  `static JavaClass`
  Repository.`lookupClass(Class<?> clazz)`
  Tries to find class source using the internal repository instance.
  `static JavaClass`
  Repository.`lookupClass(String className)`
  Lookups class somewhere found on your CLASSPATH, or whereever the repository instance looks for it.
  Methods in org.apache.bcel with parameters of type JavaClass
  Modifier and Type
  Method
  Description
  `static JavaClass`
  Repository.`addClass(JavaClass clazz)`
  Adds clazz to repository if there isn't an equally named class already in there.
  `static JavaClass[]`
  Repository.`getInterfaces(JavaClass clazz)`
  `static JavaClass[]`
  Repository.`getSuperClasses(JavaClass clazz)`
  `static boolean`
  Repository.`implementationOf(String clazz, JavaClass inter)`
  `static boolean`
  Repository.`implementationOf(JavaClass clazz, String inter)`
  `static boolean`
  Repository.`implementationOf(JavaClass clazz, JavaClass inter)`
  `static boolean`
  Repository.`instanceOf(String clazz, JavaClass superclass)`
  `static boolean`
  Repository.`instanceOf(JavaClass clazz, String superclass)`
  `static boolean`
  Repository.`instanceOf(JavaClass clazz, JavaClass superclass)`
  Equivalent to runtime "instanceof" operator.
  `static void`
  Repository.`removeClass(JavaClass clazz)`
  Removes given class from repository.

- ## Uses of JavaClass in org.apache.bcel.classfile

  Classes in org.apache.bcel.classfile that implement interfaces with type arguments of type JavaClass
  Modifier and Type
  Class
  Description
  `class`
  `JavaClass`
  Represents a Java class, that is, the data structures, constant pool, fields, methods and commands contained in a Java .class file.
  Fields in org.apache.bcel.classfile declared as JavaClass
  Modifier and Type
  Field
  Description
  `static final JavaClass[]`
  JavaClass.`EMPTY_ARRAY`
  Empty array.
  Methods in org.apache.bcel.classfile that return JavaClass
  Modifier and Type
  Method
  Description
  `JavaClass`
  JavaClass.`copy()`
  Creates a deep copy of this class.
  `JavaClass[]`
  JavaClass.`getAllInterfaces()`
  Gets all interfaces implemented by this JavaClass (transitively).
  `JavaClass[]`
  JavaClass.`getInterfaces()`
  Gets interfaces directly implemented by this JavaClass.
  `JavaClass`
  JavaClass.`getSuperClass()`
  Gets the superclass for this JavaClass object, or null if this is `Object`.
  `JavaClass[]`
  JavaClass.`getSuperClasses()`
  Gets list of super classes of this class in ascending order.
  `JavaClass`
  ClassParser.`parse()`
  Parses the given Java class file and return an object that represents the contained data, that is, constants, methods, fields and commands.
  Methods in org.apache.bcel.classfile that return types with arguments of type JavaClass
  Modifier and Type
  Method
  Description
  `static BCELComparator<JavaClass>`
  JavaClass.`getComparator()`
  Gets the comparison strategy object.
  Methods in org.apache.bcel.classfile with parameters of type JavaClass
  Modifier and Type
  Method
  Description
  `int`
  JavaClass.`compareTo(JavaClass obj)`
  Return the natural ordering of two JavaClasses.
  `boolean`
  JavaClass.`implementationOf(JavaClass inter)`
  Checks if this class is an implementation of interface inter.
  `final boolean`
  JavaClass.`instanceOf(JavaClass superclass)`
  Equivalent to runtime "instanceof" operator.
  `void`
  DescendingVisitor.`visitJavaClass(JavaClass clazz)`
  `void`
  EmptyVisitor.`visitJavaClass(JavaClass obj)`
  `void`
  Visitor.`visitJavaClass(JavaClass obj)`
  Visits a JavaClass.
  Method parameters in org.apache.bcel.classfile with type arguments of type JavaClass
  Modifier and Type
  Method
  Description
  `static void`
  JavaClass.`setComparator(BCELComparator<JavaClass> comparator)`
  Sets the comparison strategy object.
  Constructors in org.apache.bcel.classfile with parameters of type JavaClass
  Modifier
  Constructor
  Description
  ``
  `DescendingVisitor(JavaClass clazz, Visitor visitor)`
  Constructs a DescendingVisitor.

- ## Uses of JavaClass in org.apache.bcel.generic

  Methods in org.apache.bcel.generic that return JavaClass
  Modifier and Type
  Method
  Description
  `JavaClass`
  ClassGen.`getJavaClass()`
  Gets the (finally) built up Java class object.
  Constructors in org.apache.bcel.generic with parameters of type JavaClass
  Modifier
  Constructor
  Description
  ``
  `ClassGen(JavaClass clazz)`
  Constructs a new instance from an existing class.

- ## Uses of JavaClass in org.apache.bcel.util

  Fields in org.apache.bcel.util with type parameters of type JavaClass
  Modifier and Type
  Field
  Description
  `protected LinkedList<JavaClass>`
  ClassQueue.`vec`
  Deprecated.
  (since 6.0) will be made private; do not access
  `protected List<JavaClass>`
  ClassVector.`vec`
  Deprecated.
  Will be made private; do not access directly, use getter/setter.
  Methods in org.apache.bcel.util that return JavaClass
  Modifier and Type
  Method
  Description
  `protected JavaClass`
  ClassLoader.`createClass(String className)`
  Deprecated.
  Override this method to create you own classes on the fly.
  `JavaClass`
  ClassQueue.`dequeue()`
  Removes and returns the first JavaClass from the queue.
  `JavaClass`
  ClassVector.`elementAt(int index)`
  Deprecated.
  Gets the JavaClass at the specified index.
  `JavaClass`
  ClassLoaderRepository.`findClass(String className)`
  Find an already defined JavaClass.
  `JavaClass`
  ClassPathRepository.`findClass(String className)`
  Finds an already defined (cached) JavaClass object by name.
  `JavaClass`
  LruCacheClassPathRepository.`findClass(String className)`
  `JavaClass`
  MemorySensitiveClassPathRepository.`findClass(String className)`
  Find an already defined (cached) JavaClass object by name.
  `JavaClass`
  Repository.`findClass(String className)`
  Finds the class with the name provided, if the class isn't there, return NULL.
  `JavaClass`
  ClassLoaderRepository.`loadClass(Class<?> clazz)`
  `JavaClass`
  ClassLoaderRepository.`loadClass(String className)`
  Lookup a JavaClass object from the Class Name provided.
  `JavaClass`
  Repository.`loadClass(Class<?> clazz)`
  Finds the JavaClass instance for the given run-time class object.
  `JavaClass`
  Repository.`loadClass(String className)`
  Finds the class with the name provided, if the class isn't there, make an attempt to load it.
  `protected JavaClass`
  ClassLoader.`modifyClass(JavaClass clazz)`
  Deprecated.
  Override this method if you want to alter a class before it gets actually loaded.
  `JavaClass`
  ClassStack.`pop()`
  Pops a JavaClass from the stack.
  `JavaClass[]`
  ClassSet.`toArray()`
  Converts the set to an array.
  `JavaClass[]`
  ClassVector.`toArray()`
  Deprecated.
  Converts the vector to an array.
  `JavaClass`
  ClassStack.`top()`
  Gets the top JavaClass from the stack without removing it.
  Methods in org.apache.bcel.util with parameters of type JavaClass
  Modifier and Type
  Method
  Description
  `boolean`
  ClassSet.`add(JavaClass clazz)`
  Adds a JavaClass to the set.
  `void`
  ClassVector.`addElement(JavaClass clazz)`
  Deprecated.
  Adds a JavaClass to the vector.
  `void`
  ClassQueue.`enqueue(JavaClass clazz)`
  Adds a JavaClass to the end of the queue.
  `protected JavaClass`
  ClassLoader.`modifyClass(JavaClass clazz)`
  Deprecated.
  Override this method if you want to alter a class before it gets actually loaded.
  `void`
  ClassStack.`push(JavaClass clazz)`
  Pushes a JavaClass onto the stack.
  `void`
  ClassSet.`remove(JavaClass clazz)`
  Removes a JavaClass from the set.
  `void`
  ClassLoaderRepository.`removeClass(JavaClass clazz)`
  Remove class from repository
  `void`
  ClassPathRepository.`removeClass(JavaClass javaClass)`
  Removes class from repository.
  `void`
  LruCacheClassPathRepository.`removeClass(JavaClass javaClass)`
  `void`
  MemorySensitiveClassPathRepository.`removeClass(JavaClass clazz)`
  Remove class from repository
  `void`
  Repository.`removeClass(JavaClass clazz)`
  Removes class from repository.
  `void`
  ClassLoaderRepository.`storeClass(JavaClass clazz)`
  Store a new JavaClass into this Repository.
  `void`
  ClassPathRepository.`storeClass(JavaClass javaClass)`
  Stores a new JavaClass instance into this Repository.
  `void`
  LruCacheClassPathRepository.`storeClass(JavaClass javaClass)`
  `void`
  MemorySensitiveClassPathRepository.`storeClass(JavaClass clazz)`
  Store a new JavaClass instance into this Repository.
  `void`
  Repository.`storeClass(JavaClass clazz)`
  Stores the provided class under "clazz.getClassName()".
  `void`
  BCELifier.`visitJavaClass(JavaClass clazz)`
  Constructors in org.apache.bcel.util with parameters of type JavaClass
  Modifier
  Constructor
  Description
  ``
  `BCELifier(JavaClass clazz, OutputStream out)`
  Constructs a new instance.
  ``
  `Class2HTML(JavaClass javaClass, String dir)`
  Writes contents of the given JavaClass into HTML files.

- ## Uses of JavaClass in org.apache.bcel.verifier.statics

  Methods in org.apache.bcel.verifier.statics with parameters of type JavaClass
  Modifier and Type
  Method
  Description
  `void`
  StringRepresentation.`visitJavaClass(JavaClass obj)`