Class AnnotationMemberValue

  • public class AnnotationMemberValue
    extends MemberValue
    Nested annotation.
    Bill Burke, Shigeru Chiba
    • Constructor Detail

      • AnnotationMemberValue

        public AnnotationMemberValue​(ConstPool cp)
        Constructs an annotation member. The initial value is not specified.
      • AnnotationMemberValue

        public AnnotationMemberValue​(Annotation a,
                                     ConstPool cp)
        Constructs an annotation member. The initial value is specified by the first parameter.
    • Method Detail

      • getValue

        public Annotation getValue()
        Obtains the value.
      • setValue

        public void setValue​(Annotation newValue)
        Sets the value of this member.
      • toString

        public java.lang.String toString()
        Obtains the string representation of this object.
        toString in class java.lang.Object
      • write

        public void write​(AnnotationsWriter writer)
        Writes the value.
        Specified by:
        write in class MemberValue