public class ClassField extends Object
| Constructor and Description |
|---|
ClassField(InputStream stream,
ConstantPool pool)
Reads a field from the given InputStream.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addAttribute(Attribute attr) |
FieldAccessFlagSet |
getAccessFlags()
Returns the FieldAccessFlagSet for this ClassField.
|
Collection<Attribute> |
getAttributes()
Returns all of the Attributes for this ClassField.
|
ConstantValueAttribute |
getConstant()
Returns the ConstantValueAttribute for this ClassField.
|
TypeName |
getDescriptor()
Returns the descriptor for this ClassField.
|
int |
getDescriptorIndex() |
String |
getName()
Returns the name of this ClassField.
|
int |
getNameIndex() |
void |
setAccessFlags(FieldAccessFlagSet set) |
void |
setDescriptorIndex(int index) |
void |
setNameIndex(int index) |
String |
toString() |
void |
write(DataOutputStream output) |
public ClassField(InputStream stream, ConstantPool pool) throws IOException
stream - pool - IOException - if a reading error occurspublic void write(DataOutputStream output) throws IOException
IOExceptionpublic FieldAccessFlagSet getAccessFlags()
public void setAccessFlags(FieldAccessFlagSet set)
public int getNameIndex()
public void setNameIndex(int index)
public int getDescriptorIndex()
public void setDescriptorIndex(int index)
public String getName()
public TypeName getDescriptor()
public ConstantValueAttribute getConstant()
public Collection<Attribute> getAttributes()
public void addAttribute(Attribute attr)
Copyright © 2012. All Rights Reserved.