javar.attributes
Class Synthetic
java.lang.Object
|
+--javar.attributes.Attribute
|
+--javar.attributes.Synthetic
- public class Synthetic
- extends Attribute
This is an attribute that gives information about a synthetic method
or attribute. A synthetic method or attribute is one that was created
by the compiler and was not part of the original source.
- Author:
- Ben Litchfield
|
Method Summary |
void |
load(DataInputStream in)
This will load the contents of an attribute |
byte[] |
toBytes()
This will take this attribute and convert it into
an array of bytes that can be stored in a classfile. |
Synthetic
public Synthetic(ConstantPool p,
long name)
- Constructor
toBytes
public byte[] toBytes()
- This will take this attribute and convert it into
an array of bytes that can be stored in a classfile.
- Specified by:
toBytes in class Attribute
- Returns:
- array of bytes representing this attribute
load
public void load(DataInputStream in)
- This will load the contents of an attribute
- Specified by:
load in class Attribute
- Parameters:
in - the stream to get the data from