Class ClassDetails

java.lang.Object
org.robolectric.internal.bytecode.ClassDetails

public class ClassDetails extends Object
A more lightweight variant of MutableClass. This lets you check for basic metadata like class name, interfaces, and annotation info by wrapping a ClassReader, which is significantly faster than a ClassNode object.
  • Constructor Details

    • ClassDetails

      public ClassDetails(byte[] classBytes)
  • Method Details

    • isInterface

      public boolean isInterface()
    • isAnnotation

      public boolean isAnnotation()
    • getName

      public String getName()
    • hasAnnotation

      public boolean hasAnnotation(Class<? extends Annotation> annotationClass)
    • isInstrumented

      public boolean isInstrumented()
    • getClassBytes

      public byte[] getClassBytes()