Package japicmp.model
Class JApiSuperclass
java.lang.Object
japicmp.model.JApiSuperclass
- All Implemented Interfaces:
JApiCompatibility
,JApiHasChangeStatus
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final JApiChangeStatus
private final List
<JApiCompatibilityChange> private final JApiClass
private final JarArchiveComparator
private final Optional
<javassist.CtClass> private final Optional
<javassist.CtClass> -
Constructor Summary
ConstructorsConstructorDescriptionJApiSuperclass
(JApiClass jApiClass, Optional<javassist.CtClass> oldSuperclassOptional, Optional<javassist.CtClass> newSuperclassOptional, JApiChangeStatus changeStatus, JarArchiveComparator jarArchiveComparator) -
Method Summary
Modifier and TypeMethodDescriptionReturns the change status of this element.Returns all compatibility changes.Returns theJApiClass
representation of this superclass.Returns theJApiClass
this superclass belongs to.Optional
<javassist.CtClass> Optional
<javassist.CtClass> boolean
Returns true if this element has changed binary compatible.boolean
Returns true if this element has changed source compatible.(package private) void
setJApiClass
(JApiClass jApiClass) toString()
-
Field Details
-
jApiClass
-
oldSuperclassOptional
-
newSuperclassOptional
-
changeStatus
-
jarArchiveComparator
-
compatibilityChanges
-
correspondingJApiClass
-
-
Constructor Details
-
JApiSuperclass
public JApiSuperclass(JApiClass jApiClass, Optional<javassist.CtClass> oldSuperclassOptional, Optional<javassist.CtClass> newSuperclassOptional, JApiChangeStatus changeStatus, JarArchiveComparator jarArchiveComparator)
-
-
Method Details
-
getJApiClass
Returns theJApiClass
representation of this superclass. The return value is Optional.absent() in case the superclass for the old and new version is absent.- Returns:
- the
JApiClass
representation of this superclass asOptional
-
getOldSuperclass
-
getNewSuperclass
-
getOldSuperclassName
-
getNewSuperclassName
-
getChangeStatus
Description copied from interface:JApiHasChangeStatus
Returns the change status of this element.- Specified by:
getChangeStatus
in interfaceJApiHasChangeStatus
- Returns:
- the change status of this element
-
getSuperclassOld
-
getSuperclassNew
-
isBinaryCompatible
public boolean isBinaryCompatible()Description copied from interface:JApiCompatibility
Returns true if this element has changed binary compatible.- Specified by:
isBinaryCompatible
in interfaceJApiCompatibility
- Returns:
- true if this element has changed binary compatible
-
isSourceCompatible
public boolean isSourceCompatible()Description copied from interface:JApiCompatibility
Returns true if this element has changed source compatible.- Specified by:
isSourceCompatible
in interfaceJApiCompatibility
- Returns:
- true if this element has changed source compatible
-
getCompatibilityChanges
Description copied from interface:JApiCompatibility
Returns all compatibility changes.- Specified by:
getCompatibilityChanges
in interfaceJApiCompatibility
- Returns:
- a list of compatibility changes
-
setJApiClass
-
getJApiClassOwning
Returns theJApiClass
this superclass belongs to.- Returns:
- the JApiClass this superclass belongs to.
-
toString
-