Class ImplementsValidator
java.lang.Object
org.robolectric.annotation.processing.validator.Validator
org.robolectric.annotation.processing.validator.ImplementsValidator
- All Implemented Interfaces:
javax.lang.model.element.ElementVisitor<Void,javax.lang.model.element.Element>
public class ImplementsValidator extends Validator
Validator that checks usages of
Implements
.-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ImplementsValidator.SdkCheckMode
Supported modes for validation ofImplementation
methods against SDKs. -
Field Summary
Fields Modifier and Type Field Description static String
CONSTRUCTOR_METHOD_NAME
static String
IMPLEMENTS_CLASS
static int
MAX_SUPPORTED_ANDROID_SDK
static String
STATIC_INITIALIZER_METHOD_NAME
Fields inherited from class org.robolectric.annotation.processing.validator.Validator
annotationType, currentAnnotation, currentElement, elements, helpers, messager, modelBuilder, types
-
Constructor Summary
Constructors Constructor Description ImplementsValidator(RobolectricModel.Builder modelBuilder, ProcessingEnvironment env, ImplementsValidator.SdkCheckMode sdkCheckMode, SdkStore sdkStore)
-
Method Summary
Methods inherited from class org.robolectric.annotation.processing.validator.Validator
error, error, getAnnotationType, getCurrentAnnotation, init, message, message, visit, visit, visitExecutable, visitPackage, visitTypeParameter, visitUnknown, visitVariable
-
Field Details
-
IMPLEMENTS_CLASS
- See Also:
- Constant Field Values
-
MAX_SUPPORTED_ANDROID_SDK
public static final int MAX_SUPPORTED_ANDROID_SDK- See Also:
- Constant Field Values
-
STATIC_INITIALIZER_METHOD_NAME
- See Also:
- Constant Field Values
-
CONSTRUCTOR_METHOD_NAME
- See Also:
- Constant Field Values
-
-
Constructor Details
-
ImplementsValidator
public ImplementsValidator(RobolectricModel.Builder modelBuilder, ProcessingEnvironment env, ImplementsValidator.SdkCheckMode sdkCheckMode, SdkStore sdkStore)
-
-
Method Details