public class ImplementsValidator extends Validator
Validator that checks usages of Implements
.
Modifier and Type | Class and Description |
---|---|
static class |
ImplementsValidator.SdkCheckMode
Supported modes for validation of
Implementation methods against SDKs. |
Modifier and Type | Field and Description |
---|---|
static String |
CONSTRUCTOR_METHOD_NAME |
static String |
IMPLEMENTS_CLASS |
static int |
MAX_SUPPORTED_ANDROID_SDK |
static String |
STATIC_INITIALIZER_METHOD_NAME |
annotationType, currentAnnotation, currentElement, elements, helpers, messager, modelBuilder, types
Constructor and Description |
---|
ImplementsValidator(RobolectricModel.Builder modelBuilder,
ProcessingEnvironment env,
ImplementsValidator.SdkCheckMode sdkCheckMode) |
Modifier and Type | Method and Description |
---|---|
Void |
visitType(TypeElement shadowType,
Element parent) |
error, error, getAnnotationType, getCurrentAnnotation, init, message, message, visit, visit, visitExecutable, visitPackage, visitTypeParameter, visitUnknown, visitVariable
public static final String IMPLEMENTS_CLASS
public static final int MAX_SUPPORTED_ANDROID_SDK
public static final String STATIC_INITIALIZER_METHOD_NAME
public static final String CONSTRUCTOR_METHOD_NAME
public ImplementsValidator(RobolectricModel.Builder modelBuilder, ProcessingEnvironment env, ImplementsValidator.SdkCheckMode sdkCheckMode)
public Void visitType(TypeElement shadowType, Element parent)