Package org.revapi.java.checks.common
Class SerializationChecker
- java.lang.Object
-
- org.revapi.java.spi.CheckBase
-
- org.revapi.java.checks.common.SerializationChecker
-
- All Implemented Interfaces:
org.revapi.configuration.Configurable
,org.revapi.java.spi.Check
public class SerializationChecker extends org.revapi.java.spi.CheckBase
-
-
Constructor Summary
Constructors Constructor Description SerializationChecker()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static long
computeSerialVersionUID(TypeElement type, org.revapi.java.spi.TypeEnvironment environment)
Adapted fromjava.io.ObjectStreamClass#computeDefaultSUID(java.lang.Class)
method.static long
computeStructuralId(TypeElement type, org.revapi.java.spi.TypeEnvironment environment)
protected List<org.revapi.Difference>
doEnd()
protected void
doVisitClass(org.revapi.java.spi.JavaTypeElement oldType, org.revapi.java.spi.JavaTypeElement newType)
protected void
doVisitField(org.revapi.java.spi.JavaFieldElement oldField, org.revapi.java.spi.JavaFieldElement newField)
String
getExtensionId()
EnumSet<org.revapi.java.spi.Check.Type>
getInterest()
Reader
getJSONSchema()
void
initialize(org.revapi.AnalysisContext analysisContext)
-
Methods inherited from class org.revapi.java.spi.CheckBase
createDifference, createDifferenceWithExplicitParams, doVisitAnnotation, doVisitMethod, doVisitMethodParameter, getAnalysisContext, getNewTypeEnvironment, getOldTypeEnvironment, isAccessible, isBothAccessible, isBothPrivate, isDescendingOnNonExisting, isMissing, peekLastActive, popIfActive, pushActive, setNewTypeEnvironment, setOldTypeEnvironment, visitAnnotation, visitClass, visitEnd, visitField, visitMethod, visitMethodParameter
-
-
-
-
Method Detail
-
getInterest
public EnumSet<org.revapi.java.spi.Check.Type> getInterest()
-
initialize
public void initialize(@Nonnull org.revapi.AnalysisContext analysisContext)
- Specified by:
initialize
in interfaceorg.revapi.configuration.Configurable
- Overrides:
initialize
in classorg.revapi.java.spi.CheckBase
-
getExtensionId
public String getExtensionId()
- Specified by:
getExtensionId
in interfaceorg.revapi.configuration.Configurable
- Overrides:
getExtensionId
in classorg.revapi.java.spi.CheckBase
-
getJSONSchema
public Reader getJSONSchema()
- Specified by:
getJSONSchema
in interfaceorg.revapi.configuration.Configurable
- Overrides:
getJSONSchema
in classorg.revapi.java.spi.CheckBase
-
doVisitClass
protected void doVisitClass(@Nullable org.revapi.java.spi.JavaTypeElement oldType, @Nullable org.revapi.java.spi.JavaTypeElement newType)
- Overrides:
doVisitClass
in classorg.revapi.java.spi.CheckBase
-
doVisitField
protected void doVisitField(@Nullable org.revapi.java.spi.JavaFieldElement oldField, @Nullable org.revapi.java.spi.JavaFieldElement newField)
- Overrides:
doVisitField
in classorg.revapi.java.spi.CheckBase
-
doEnd
@Nullable protected List<org.revapi.Difference> doEnd()
- Overrides:
doEnd
in classorg.revapi.java.spi.CheckBase
-
computeStructuralId
public static long computeStructuralId(TypeElement type, org.revapi.java.spi.TypeEnvironment environment)
-
computeSerialVersionUID
public static long computeSerialVersionUID(TypeElement type, org.revapi.java.spi.TypeEnvironment environment)
Adapted fromjava.io.ObjectStreamClass#computeDefaultSUID(java.lang.Class)
method.
-
-