Class NoLongerInherited
- java.lang.Object
-
- org.revapi.java.transforms.annotations.NoLongerInherited
-
- All Implemented Interfaces:
AutoCloseable
,org.revapi.configuration.Configurable
,org.revapi.DifferenceTransform<org.revapi.java.spi.JavaModelElement>
public final class NoLongerInherited extends Object
- Since:
- 0.1
- Author:
- Lukas Krejci
-
-
Field Summary
Fields Modifier and Type Field Description protected org.revapi.AnalysisContext
analysisContext
-
Constructor Summary
Constructors Constructor Description NoLongerInherited()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
Pattern[]
getDifferenceCodePatterns()
String
getExtensionId()
Reader
getJSONSchema()
void
initialize(org.revapi.AnalysisContext analysisContext)
org.revapi.TransformationResult
tryTransform(org.revapi.java.spi.JavaModelElement oldElement, org.revapi.java.spi.JavaModelElement newElement, org.revapi.Difference difference)
-
-
-
Method Detail
-
getDifferenceCodePatterns
@Nonnull public Pattern[] getDifferenceCodePatterns()
- Specified by:
getDifferenceCodePatterns
in interfaceorg.revapi.DifferenceTransform<org.revapi.java.spi.JavaModelElement>
-
getExtensionId
@Nullable public String getExtensionId()
- Specified by:
getExtensionId
in interfaceorg.revapi.configuration.Configurable
-
getJSONSchema
@Nullable public Reader getJSONSchema()
- Specified by:
getJSONSchema
in interfaceorg.revapi.configuration.Configurable
-
initialize
public void initialize(@Nonnull org.revapi.AnalysisContext analysisContext)
- Specified by:
initialize
in interfaceorg.revapi.configuration.Configurable
-
tryTransform
public org.revapi.TransformationResult tryTransform(@Nullable org.revapi.java.spi.JavaModelElement oldElement, @Nullable org.revapi.java.spi.JavaModelElement newElement, @Nonnull org.revapi.Difference difference)
- Specified by:
tryTransform
in interfaceorg.revapi.DifferenceTransform<org.revapi.java.spi.JavaModelElement>
-
close
public void close() throws Exception
- Specified by:
close
in interfaceAutoCloseable
- Throws:
Exception
-
-