|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectserp.bytecode.Attributes
serp.bytecode.Attribute
public abstract class Attribute
In bytecode attributes are used to represent anything that is not part of the class structure. This includes the source file name, code of methods, the line number table, etc. All attributes contain at a minimum an immutable name that also determines the attribute's type.
| Method Summary | |
|---|---|
ClassLoader |
getClassLoader()
Return the class loader to use when loading related classes. |
String |
getName()
Return the name of this attribute. |
int |
getNameIndex()
Return the index in the ConstantPool of the UTF8Entry
holding the name of this attribute. |
Attributes |
getOwner()
Return the Attributes that owns this attribute. |
ConstantPool |
getPool()
Return the constant pool of the current class. |
Project |
getProject()
Return the project of the current class. |
boolean |
isValid()
Return false if this entity has been removed from its parent; in this case the results of any operations on the entity are undefined. |
| Methods inherited from class serp.bytecode.Attributes |
|---|
addAttribute, addAttribute, clearAttributes, getAttribute, getAttributes, getAttributes, removeAttribute, removeAttribute, setAttributes |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface serp.bytecode.visitor.VisitAcceptor |
|---|
acceptVisit |
| Method Detail |
|---|
public Attributes getOwner()
Attributes that owns this attribute. The entity
might be a BCClass, BCField, BCMethod, or other
attribute.
public int getNameIndex()
ConstantPool of the UTF8Entry
holding the name of this attribute.
public String getName()
public Project getProject()
BCEntity
getProject in interface BCEntitypublic ConstantPool getPool()
BCEntity
getPool in interface BCEntitypublic ClassLoader getClassLoader()
BCEntity
getClassLoader in interface BCEntitypublic boolean isValid()
BCEntity
isValid in interface BCEntity
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||