|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectfr.umlv.corosol.classfile.attribute.impl.AbstractJAttribute
fr.umlv.corosol.classfile.attribute.impl.DefaultJConstantValueAttribute
public class DefaultJConstantValueAttribute
The default implementation of the JConstantValueAttribute interface.
| Field Summary |
|---|
| Fields inherited from interface fr.umlv.corosol.classfile.attribute.JAttribute |
|---|
CODE, CONSTANT_VALUE, DEPRECATED, EXCEPTIONS, INNER_CLASSES, LINE_NUMBER_TABLE, LOCAL_VARIABLE_TABLE, SOURCE_FILE, SYNTHETIC |
| Constructor Summary | |
|---|---|
DefaultJConstantValueAttribute()
The default constructor. |
|
| Method Summary | |
|---|---|
JConstant |
getConstant()
Returns the JConstant object which contains the value of a static field. |
java.lang.String |
getName()
Returns the attribute name. |
int |
getSize()
Returns the size of the attribute in bytes. |
void |
readItem(JClassFileInput in)
Extracts the data of this attribute from the specified input stream. |
java.lang.String |
toString()
Returns a string representation of this attribute. |
void |
writeItem(JClassFileOutput out)
Writes the data of this attribute into a file via the specified output stream. |
| Methods inherited from class fr.umlv.corosol.classfile.attribute.impl.AbstractJAttribute |
|---|
getConstantPool, setConstantPool |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface fr.umlv.corosol.classfile.JClassFileItem |
|---|
getConstantPool, setConstantPool |
| Constructor Detail |
|---|
public DefaultJConstantValueAttribute()
| Method Detail |
|---|
public java.lang.String getName()
getName in interface JAttributegetName in class AbstractJAttributepublic int getSize()
getSize in interface JAttributegetSize in class AbstractJAttribute
public void readItem(JClassFileInput in)
throws java.io.IOException
readItem in interface JClassFileItemin - a class file input stream
java.io.IOException - if an I/O error occurs when
reading the datas of this attribute
public void writeItem(JClassFileOutput out)
throws java.io.IOException
writeItem in interface JClassFileItemout - a class file output stream
java.io.IOException - if an I/O error occurs when
writing into the classfilepublic JConstant getConstant()
getConstant in interface JConstantValueAttributeJConstantpublic java.lang.String toString()
toString in interface JAttributetoString in class AbstractJAttribute
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||