|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectserp.bytecode.Attributes
public abstract class Attributes
Abstract superclass for all bytecode entities that hold attributes.
Constructor Summary | |
---|---|
Attributes()
|
Method Summary | |
---|---|
Attribute |
addAttribute(Attribute attr)
Import an attribute from another entity, or make a copy of one on this entity. |
Attribute |
addAttribute(String name)
Add an attribute of the given type. |
void |
clearAttributes()
Clear all attributes from this entity. |
Attribute |
getAttribute(String name)
Return the attribute with the given name. |
Attribute[] |
getAttributes()
Return all the attributes owned by this entity. |
Attribute[] |
getAttributes(String name)
Return all attributes with the given name. |
boolean |
removeAttribute(Attribute attribute)
Remove the given attribute. |
boolean |
removeAttribute(String name)
Remove all attributes with the given name from this entity. |
void |
setAttributes(Attribute[] attrs)
Set the attributes for this entity; this method is useful for importing all attributes from another entity. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface serp.bytecode.BCEntity |
---|
getClassLoader, getPool, getProject, isValid |
Constructor Detail |
---|
public Attributes()
Method Detail |
---|
public Attribute[] getAttributes()
public Attribute getAttribute(String name)
public Attribute[] getAttributes(String name)
public void setAttributes(Attribute[] attrs)
public Attribute addAttribute(Attribute attr)
public Attribute addAttribute(String name)
public void clearAttributes()
public boolean removeAttribute(String name)
public boolean removeAttribute(Attribute attribute)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |