public abstract class Attribute extends Attributes implements VisitAcceptor
Modifier and Type | Method and Description |
---|---|
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.
|
addAttribute, addAttribute, clearAttributes, getAttribute, getAttributes, getAttributes, removeAttribute, removeAttribute, setAttributes
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
acceptVisit
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 BCEntity
public ConstantPool getPool()
BCEntity
public ClassLoader getClassLoader()
BCEntity
getClassLoader
in interface BCEntity
Copyright © 2002–2019. All rights reserved.