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
-
Nested Class Summary
Nested classes/interfaces inherited from class org.revapi.java.spi.CheckBase
org.revapi.java.spi.CheckBase.ActiveElements<T extends org.revapi.java.spi.JavaElement>Nested classes/interfaces inherited from interface org.revapi.java.spi.Check
org.revapi.java.spi.Check.Type -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic longcomputeSerialVersionUID(TypeElement type, org.revapi.java.spi.TypeEnvironment environment) Adapted fromjava.io.ObjectStreamClass#computeDefaultSUID(java.lang.Class)method.static longcomputeStructuralId(TypeElement type, org.revapi.java.spi.TypeEnvironment environment) protected List<org.revapi.Difference> doEnd()protected voiddoVisitClass(org.revapi.java.spi.JavaTypeElement oldType, org.revapi.java.spi.JavaTypeElement newType) protected voiddoVisitField(org.revapi.java.spi.JavaFieldElement oldField, org.revapi.java.spi.JavaFieldElement newField) EnumSet<org.revapi.java.spi.Check.Type> voidinitialize(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, popIfActive, pushActive, setNewTypeEnvironment, setOldTypeEnvironment, visitAnnotation, visitClass, visitEnd, visitField, visitMethod, visitMethodParameter
-
Constructor Details
-
SerializationChecker
public SerializationChecker()
-
-
Method Details
-
getInterest
-
initialize
- Specified by:
initializein interfaceorg.revapi.configuration.Configurable- Overrides:
initializein classorg.revapi.java.spi.CheckBase
-
getExtensionId
- Specified by:
getExtensionIdin interfaceorg.revapi.configuration.Configurable- Overrides:
getExtensionIdin classorg.revapi.java.spi.CheckBase
-
getJSONSchema
- Specified by:
getJSONSchemain interfaceorg.revapi.configuration.Configurable- Overrides:
getJSONSchemain classorg.revapi.java.spi.CheckBase
-
doVisitClass
-
doVisitField
-
doEnd
-
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.
-