Package japicmp.model
Class JApiAnnotation
java.lang.Object
japicmp.model.JApiAnnotation
- All Implemented Interfaces:
JApiCompatibility
,JApiHasChangeStatus
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final JApiChangeStatus
private final List
<JApiAnnotationElement> private final String
private final Optional
<javassist.bytecode.annotation.Annotation> private final Optional
<javassist.bytecode.annotation.Annotation> -
Constructor Summary
ConstructorsConstructorDescriptionJApiAnnotation
(String fullyQualifiedName, Optional<javassist.bytecode.annotation.Annotation> oldAnnotation, Optional<javassist.bytecode.annotation.Annotation> newAnnotation, JApiChangeStatus changeStatus) -
Method Summary
Modifier and TypeMethodDescriptionbuildMemberValueMap
(javassist.bytecode.annotation.Annotation annotation) private void
computeElements
(List<JApiAnnotationElement> elements, Optional<javassist.bytecode.annotation.Annotation> oldAnnotationOptional, Optional<javassist.bytecode.annotation.Annotation> newAnnotationOptional) private JApiChangeStatus
evaluateChangeStatus
(JApiChangeStatus changeStatus) Returns the change status of this element.Returns all compatibility changes.Optional
<javassist.bytecode.annotation.Annotation> Optional
<javassist.bytecode.annotation.Annotation> boolean
Returns true if this element has changed binary compatible.boolean
Returns true if this element has changed source compatible.toString()
-
Field Details
-
fullyQualifiedName
-
oldAnnotation
-
newAnnotation
-
elements
-
changeStatus
-
-
Constructor Details
-
JApiAnnotation
public JApiAnnotation(String fullyQualifiedName, Optional<javassist.bytecode.annotation.Annotation> oldAnnotation, Optional<javassist.bytecode.annotation.Annotation> newAnnotation, JApiChangeStatus changeStatus)
-
-
Method Details
-
toString
-
computeElements
private void computeElements(List<JApiAnnotationElement> elements, Optional<javassist.bytecode.annotation.Annotation> oldAnnotationOptional, Optional<javassist.bytecode.annotation.Annotation> newAnnotationOptional) -
buildMemberValueMap
-
evaluateChangeStatus
-
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
-
getFullyQualifiedName
-
getOldAnnotation
-
getNewAnnotation
-
getElements
-
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
-