package sds.assemble;

import sds.classfile.ConstantPool;
import sds.classfile.MemberInfo;

/**
 *
 * @author inagaki
 */
public class FieldContent extends MemberContent {
	public FieldContent(MemberInfo info, ConstantPool pool) {
		super(info, pool);
	}
}

@@ -88,170 +88,771 @@
 fo;%0A
-%0A/**%0A *%0A * @author inagaki%0A */%0Apublic class FieldContent extends MemberContent %7B%0A%09public FieldContent(MemberInfo info, ConstantPool pool) %7B%0A%09%09super(info, pool);%0A
+import sds.classfile.attributes.AttributeInfo;%0Aimport sds.classfile.attributes.AttributeType;%0Aimport sds.classfile.attributes.ConstantValue;%0A%0A/**%0A * This class is for contents of field.%0A * @author inagaki%0A */%0Apublic class FieldContent extends MemberContent %7B%0A%09/**%0A%09 * constructor.%0A%09 * @param info field info%0A%09 * @param pool constant-pool%0A%09 */%0A%09public FieldContent(MemberInfo info, ConstantPool pool) %7B%0A%09%09super(info, pool);%0A%09%09for(AttributeInfo attr : info.getAttr().getAll()) %7B%0A%09%09%09investigateAttribute(attr, pool);%0A%09
 %09%7D%0A
+%09
 %7D%0A
+%0A%09@Override%0A%09public void investigateAttribute(AttributeInfo info, ConstantPool pool) %7B%0A%09%09if(info.getType() == AttributeType.ConstantValue) %7B%0A%09%09%09ConstantValue cv = (ConstantValue)info;%0A%09%09%7D else %7B%0A%09%09%09super.investigateAttribute(info, pool);%0A%09%09%7D%0A%09%7D%0A%7D

change to process attributes which field has.