Package javassist.bytecode
Class PermittedSubclassesAttribute
- java.lang.Object
-
- javassist.bytecode.AttributeInfo
-
- javassist.bytecode.PermittedSubclassesAttribute
-
public class PermittedSubclassesAttribute extends AttributeInfo
A class representing PermittedSubclasses_attribute
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringtagThe name of thePermittedSubclassesattribute.
-
Constructor Summary
Constructors Constructor Description PermittedSubclassesAttribute(ConstPool cp)Constructs an empty PermittedSubclassesAttribute attribute.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddClass(java.lang.String clazz)AttributeInfocopy(ConstPool newCp, java.util.Map<java.lang.String,java.lang.String> classnames)Copies this attribute and returns a new copy.java.util.List<java.lang.String>getPermittedSubclasses()Gets a read-only List of the class names.voidwrite(java.io.DataOutputStream out)-
Methods inherited from class javassist.bytecode.AttributeInfo
get, getConstPool, getName, length, set, setMaxAttributeLength
-
-
-
-
Field Detail
-
tag
public static final java.lang.String tag
The name of thePermittedSubclassesattribute.- 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:
copyin classAttributeInfo- Parameters:
newCp- the constant pool table used by the new copy.classnames- pairs of replaced and substituted class names.
-
-