Class ReflectBuilder

java.lang.Object
aQute.bnd.classfile.builder.ReflectBuilder

public class ReflectBuilder extends Object
In some cases it is necessary to have a ClassFile for a built in Java class. This builder will create a reflect builder that is based on a Class object. Unfortunately, restrictions in the Java API make it impossible to get all the details. For example, there are no code attributes.

This is far from complete but it can be used in analysis cases. All information about the types of methods and fields are captured.

  • Constructor Details

    • ReflectBuilder

      public ReflectBuilder()
  • Method Details

    • of

      public static ClassFileBuilder of(Class<?> c)
      Create a ClassFileBuilder based on the given class
      Parameters:
      c - the given class
      Returns:
      a ClassFileBuilder initialized with the class