Package javassist.bytecode
Class PermittedSubclassesAttribute
java.lang.Object
javassist.bytecode.AttributeInfo
javassist.bytecode.PermittedSubclassesAttribute
A class representing PermittedSubclasses_attribute
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe name of thePermittedSubclassesattribute.Fields inherited from class javassist.bytecode.AttributeInfo
constPool, info, name -
Constructor Summary
ConstructorsModifierConstructorDescriptionConstructs an empty PermittedSubclassesAttribute attribute.protectedPermittedSubclassesAttribute(ConstPool cp, int n, DataInputStream in) -
Method Summary
Modifier and TypeMethodDescriptionvoidCopies this attribute and returns a new copy.Gets a read-only List of the class names.(package private) voidgetRefClasses(Map<String, String> classnames) (package private) voidrenameClass(String oldname, String newname) (package private) voidrenameClass(Map<String, String> classnames) voidwrite(DataOutputStream out) Methods inherited from class javassist.bytecode.AttributeInfo
copyAll, get, getConstPool, getLength, getName, getRefClasses, length, lookup, read, remove, renameClass, renameClass, set, writeAll
-
Field Details
-
tag
The name of thePermittedSubclassesattribute.- See Also:
-
classes
-
-
Constructor Details
-
PermittedSubclassesAttribute
- Throws:
IOException
-
PermittedSubclassesAttribute
Constructs an empty PermittedSubclassesAttribute attribute.- See Also:
-
-
Method Details
-
getPermittedSubclasses
Gets a read-only List of the class names. Does not reflect the actual map. -
addClass
-
write
- Overrides:
writein classAttributeInfo- Throws:
IOException
-
renameClass
- Overrides:
renameClassin classAttributeInfo
-
renameClass
- Overrides:
renameClassin classAttributeInfo
-
getRefClasses
- Overrides:
getRefClassesin classAttributeInfo
-
copy
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.
-