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 aClassNodeobject.
-
-
Constructor Summary
Constructors Constructor Description ClassDetails(byte[] classBytes)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]getClassBytes()StringgetName()booleanhasAnnotation(Class<? extends Annotation> annotationClass)booleanisAnnotation()booleanisInstrumented()booleanisInterface()
-
-
-
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()
-
-