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 Summary
Constructors Constructor Description ClassDetails(byte[] classBytes)
-
Method Summary
Modifier and Type Method Description byte[]
getClassBytes()
String
getName()
boolean
hasAnnotation(Class<? extends Annotation> annotationClass)
boolean
isAnnotation()
boolean
isInstrumented()
boolean
isInterface()
-
Constructor Details
-
ClassDetails
public ClassDetails(byte[] classBytes)
-
-
Method Details
-
isInterface
public boolean isInterface() -
isAnnotation
public boolean isAnnotation() -
getName
-
hasAnnotation
-
isInstrumented
public boolean isInstrumented() -
getClassBytes
public byte[] getClassBytes()
-