Class ClassDetails
- java.lang.Object
-
- org.robolectric.internal.bytecode.ClassDetails
-
public class ClassDetails extends Object
A more lightweight variant ofMutableClass
. This lets you check for basic metadata like class name, interfaces, and annotation info by wrapping aClassReader
, which is significantly faster than aClassNode
object.
-
-
Constructor Summary
Constructors Constructor Description ClassDetails(byte[] classBytes)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]
getClassBytes()
String
getName()
boolean
hasAnnotation(Class<? extends Annotation> annotationClass)
boolean
isAnnotation()
boolean
isInstrumented()
boolean
isInterface()
-
-
-
Method Detail
-
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()
-
-