Class PermittedSubclassesAttribute


  • public class PermittedSubclassesAttribute
    extends AttributeInfo
    A class representing PermittedSubclasses_attribute
    • Field Detail

      • tag

        public static final java.lang.String tag
        The name of the PermittedSubclasses attribute.
        See Also:
        Constant Field Values
    • Constructor Detail

      • PermittedSubclassesAttribute

        public PermittedSubclassesAttribute​(ConstPool cp)
        Constructs an empty PermittedSubclassesAttribute attribute.
        See Also:
        #setPermittedSubclasses(List)
    • Method Detail

      • getPermittedSubclasses

        public java.util.List<java.lang.String> getPermittedSubclasses()
        Gets a read-only List of the class names. Does not reflect the actual map.
      • addClass

        public void addClass​(java.lang.String clazz)
      • write

        public void write​(java.io.DataOutputStream out)
                   throws java.io.IOException
        Throws:
        java.io.IOException
      • copy

        public AttributeInfo copy​(ConstPool newCp,
                                  java.util.Map<java.lang.String,​java.lang.String> classnames)
        Copies this attribute and returns a new copy.
        Overrides:
        copy in class AttributeInfo
        Parameters:
        newCp - the constant pool table used by the new copy.
        classnames - pairs of replaced and substituted class names.