Package japicmp.model

Class JApiAnnotation

    • Field Detail

      • fullyQualifiedName

        private final java.lang.String fullyQualifiedName
      • oldAnnotation

        private final Optional<javassist.bytecode.annotation.Annotation> oldAnnotation
      • newAnnotation

        private final Optional<javassist.bytecode.annotation.Annotation> newAnnotation
    • Constructor Detail

      • JApiAnnotation

        public JApiAnnotation​(java.lang.String fullyQualifiedName,
                              Optional<javassist.bytecode.annotation.Annotation> oldAnnotation,
                              Optional<javassist.bytecode.annotation.Annotation> newAnnotation,
                              JApiChangeStatus changeStatus)
    • Method Detail

      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • computeElements

        private void computeElements​(java.util.List<JApiAnnotationElement> elements,
                                     Optional<javassist.bytecode.annotation.Annotation> oldAnnotationOptional,
                                     Optional<javassist.bytecode.annotation.Annotation> newAnnotationOptional)
      • buildMemberValueMap

        private java.util.Map<java.lang.String,​Optional<javassist.bytecode.annotation.MemberValue>> buildMemberValueMap​(javassist.bytecode.annotation.Annotation annotation)
      • getFullyQualifiedName

        public java.lang.String getFullyQualifiedName()
      • getOldAnnotation

        public Optional<javassist.bytecode.annotation.Annotation> getOldAnnotation()
      • getNewAnnotation

        public Optional<javassist.bytecode.annotation.Annotation> getNewAnnotation()
      • isBinaryCompatible

        public boolean isBinaryCompatible()
        Description copied from interface: JApiCompatibility
        Returns true if this element has changed binary compatible.
        Specified by:
        isBinaryCompatible in interface JApiCompatibility
        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 interface JApiCompatibility
        Returns:
        true if this element has changed source compatible