public class AttributesEditor
extends java.lang.Object
Constructor and Description |
---|
AttributesEditor(ProgramClass targetClass,
boolean replaceAttributes)
Creates a new AttributeAdder that will edit attributes in the given target class.
|
AttributesEditor(ProgramClass targetClass,
ProgramMember targetMember,
boolean replaceAttributes)
Creates a new AttributeAdder that will edit attributes in the given target class member.
|
AttributesEditor(ProgramClass targetClass,
ProgramMember targetMember,
CodeAttribute targetAttribute,
boolean replaceAttributes)
Creates a new AttributeAdder that will edit attributes in the given target code attribute.
|
Modifier and Type | Method and Description |
---|---|
void |
addAttribute(Attribute attribute)
Adds the given attribute to the target.
|
void |
deleteAttribute(java.lang.String attributeName)
Deletes the specified attribute from the target.
|
Attribute |
findAttribute(java.lang.String attributeName)
Finds the specified attribute in the target.
|
public AttributesEditor(ProgramClass targetClass, boolean replaceAttributes)
public AttributesEditor(ProgramClass targetClass, ProgramMember targetMember, boolean replaceAttributes)
public AttributesEditor(ProgramClass targetClass, ProgramMember targetMember, CodeAttribute targetAttribute, boolean replaceAttributes)
public Attribute findAttribute(java.lang.String attributeName)
public void addAttribute(Attribute attribute)
public void deleteAttribute(java.lang.String attributeName)