public class RobolectricModel extends Object
| Modifier and Type | Field and Description |
|---|---|
TypeMirror |
ANYTHING_MIRROR
TypeMirror representing the Robolectric.Anything interface, or null if the element isn't found.
|
static AnnotationValueVisitor<String,Void> |
classNameVisitor |
static ElementVisitor<TypeElement,Void> |
typeVisitor |
static AnnotationValueVisitor<TypeMirror,Void> |
valueVisitor |
| Constructor and Description |
|---|
RobolectricModel(Elements elements,
Types types) |
public final TypeMirror ANYTHING_MIRROR
public static ElementVisitor<TypeElement,Void> typeVisitor
public static AnnotationValueVisitor<TypeMirror,Void> valueVisitor
public static AnnotationValueVisitor<String,Void> classNameVisitor
public AnnotationMirror getAnnotationMirror(Element element, TypeElement annotation)
public static AnnotationValue getAnnotationValue(AnnotationMirror annotationMirror, String key)
public AnnotationMirror getImplementsMirror(Element elem)
public TypeMirror getImplementedClass(AnnotationMirror am)
public void prepare()
public void addShadowType(TypeElement elem, TypeElement type)
public void addResetter(TypeElement parent, ExecutableElement elem)
public Set<Map.Entry<TypeElement,ExecutableElement>> getResetters()
public Map<TypeElement,TypeElement> getAllShadowTypes()
public Map<TypeElement,TypeElement> getResetterShadowTypes()
public Map<TypeElement,TypeElement> getVisibleShadowTypes()
public Map<TypeElement,TypeElement> getShadowOfMap()
public Collection<String> getShadowedPackages()
public List<TypeMirror> getExplicitBounds(TypeParameterElement typeParam)
public String getReferentFor(TypeElement type)
type - public String getReferentFor(TypeMirror type)
public void appendParameterList(StringBuilder message, List<? extends TypeParameterElement> tpeList)
public boolean isSameParameterList(List<? extends TypeParameterElement> l1, List<? extends TypeParameterElement> l2)
Copyright © 2015. All rights reserved.