Class PermittedSubclassesAttribute

java.lang.Object
javassist.bytecode.AttributeInfo
javassist.bytecode.PermittedSubclassesAttribute

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

  • Constructor Details

    • PermittedSubclassesAttribute

      public PermittedSubclassesAttribute(ConstPool cp)
      Constructs an empty PermittedSubclassesAttribute attribute.
      See Also:
      • invalid reference
        #setPermittedSubclasses(List<String>)
  • Method Details

    • getPermittedSubclasses

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

      public void addClass(String clazz)
    • write

      public void write(DataOutputStream out) throws IOException
      Throws:
      IOException
    • copy

      public AttributeInfo copy(ConstPool newCp, Map<String,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.