public abstract class Attribute extends Attributes implements VisitAcceptor
| Modifier and Type | Method and Description |
|---|---|
java.lang.ClassLoader |
getClassLoader()
Return the class loader to use when loading related classes.
|
java.lang.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.
|
addAttribute, addAttribute, clearAttributes, getAttribute, getAttributes, getAttributes, removeAttribute, removeAttribute, setAttributesclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitacceptVisitpublic 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 java.lang.String getName()
public Project getProject()
BCEntitygetProject in interface BCEntitypublic ConstantPool getPool()
BCEntitypublic java.lang.ClassLoader getClassLoader()
BCEntitygetClassLoader in interface BCEntityCopyright © 2002-2013. All Rights Reserved.