Modifier and Type | Field and Description |
---|---|
protected short |
access_flags |
protected LinkedList<Attribute> |
attributes |
protected static Configuration |
config |
protected ConstantPool |
constantPool |
Modifier | Constructor and Description |
---|---|
protected |
ProgramElement(ConstantPool constantPool) |
protected |
ProgramElement(ConstantPool constantPool,
short access_flags) |
protected |
ProgramElement(ConstantPool constantPool,
short access_flags,
LinkedList<Attribute> attributes) |
Modifier and Type | Method and Description |
---|---|
short |
getAccessFlags() |
Attribute |
getAttribute(String name)
Gets a named attribute from this ProgramElement.
|
List<Attribute> |
getAttributes()
Gets all the class level attributes of this ProgramElement.
|
ConstantPool |
getConstantPool() |
protected List<Attribute> |
readAttributes(DataInputStream dis)
Reads attributes of the program element.
|
protected void |
writeAttributes(DataOutputStream dos)
Writes attributes of the program element into given stream.
|
protected LinkedList<Attribute> attributes
protected ConstantPool constantPool
protected short access_flags
protected static transient Configuration config
protected ProgramElement(ConstantPool constantPool)
protected ProgramElement(ConstantPool constantPool, short access_flags)
protected ProgramElement(ConstantPool constantPool, short access_flags, LinkedList<Attribute> attributes)
public short getAccessFlags()
public ConstantPool getConstantPool()
public List<Attribute> getAttributes()
public Attribute getAttribute(String name)
name
- Name of the attributeprotected List<Attribute> readAttributes(DataInputStream dis) throws IOException
dis
- DataInputStreamIOException
- on errorprotected void writeAttributes(DataOutputStream dos) throws IOException
dos
- DataOutputStreamIOException
- on errorCopyright © 2017. All rights reserved.