Class ArrayMemberValue

    • Constructor Detail

      • ArrayMemberValue

        public ArrayMemberValue​(ConstPool cp)
        Constructs an array. The initial value or type are not specified.
      • ArrayMemberValue

        public ArrayMemberValue​(MemberValue t,
                                ConstPool cp)
        Constructs an array. The initial value is not specified.
        Parameters:
        t - the type of the array elements.
    • Method Detail

      • getType

        public MemberValue getType()
        Obtains the type of the elements.
        Returns:
        null if the type is not specified.
      • getValue

        public MemberValue[] getValue()
        Obtains the elements of the array.
      • setValue

        public void setValue​(MemberValue[] elements)
        Sets the elements of the array.
      • toString

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

        public void write​(AnnotationsWriter writer)
                   throws java.io.IOException
        Writes the value.
        Specified by:
        write in class MemberValue
        Throws:
        java.io.IOException