package com.vladium.jcd.cls.attribute;
import java.io.IOException;
import com.vladium.jcd.lib.UDataOutputStream;
// ----------------------------------------------------------------------------
/**
* The Synthetic attribute is a fixed-length attribute in the attributes table
* of ClassFile, {@link com.vladium.jcd.cls.Field_info}, and
* {@link com.vladium.jcd.cls.Method_info} structures. A class member that does
* not appear in the source code must be marked using a Synthetic attribute.<P>
*
* The Synthetic attribute has the following format:
* <PRE>
* Synthetic_attribute {
* u2 attribute_name_index;
* u4 attribute_length;
* }
* </PRE>
*
* The value of the attribute_name_index item must be a valid index into the
* constant_pool table. The constant_pool entry at that index must be a CONSTANT_Utf8_info
* structure representing the string "Synthetic".<P>
*
* The value of the attribute_length item is zero.
*
* @author (C) 2001, Vlad Roubtsov
*/
public
final class SyntheticAttribute_info extends Attribute_info
{
// public: ................................................................
public SyntheticAttribute_info (final int attribute_name_index)
{
super (attribute_name_index, 0);
}
public long length ()
{
return 6;
}
// Visitor:
public void accept (final IAttributeVisitor visitor, final Object ctx)
{
visitor.visit (this, ctx);
}
public String toString ()
{
return "SyntheticValueAttribute_info: [attribute_name_index = " + m_name_index + ", attribute_length = " + m_attribute_length + ']';
}
// Cloneable:
/**
* Performs a deep copy.
*/
public Object clone ()
{
return super.clone ();
}
// IClassFormatOutput:
public void writeInClassFormat (final UDataOutputStream out) throws IOException
{
super.writeInClassFormat (out);
}
// protected: .............................................................
// package: ...............................................................
SyntheticAttribute_info (final int attribute_name_index, final long attribute_length)
{
super (attribute_name_index, attribute_length);
}
// private: ...............................................................
} // end of class
// ----------------------------------------------------------------------------
四散
- 粉丝: 69
- 资源: 1万+
最新资源
- 2025海洋知识竞赛题库及答案(通用版).docx
- 【新增】-004 -餐厅薪酬制度.doc
- 【新增】-007 -餐饮管理公司薪酬管理体系设计.doc
- 【新增】-001 -(完整版)生产型企业薪酬管理制度.doc
- 【新增】-009 -超市门店薪酬结构方案.doc
- 【新增】-010 -超市薪酬管理制度.doc
- 【新增】-008 -测绘公司薪酬方案.doc
- 【新增】-013 -代理记账公司绩效工资考核方案.doc
- 【新增】-011 -超市薪酬管理制度的副本.doc
- 【新增】-015 -电器公司薪酬方案.doc
- 【新增】-020 -店面销售人员薪酬方案制定.doc
- 【新增】-018 -电子科技公司薪酬体系设计方案.doc
- 【新增】-016 -电器公司薪酬设计方案.doc
- 【新增】-025 -房地产开发公司薪酬福利管理制度.doc
- 【新增】-030 -服装店提成办法.doc
- 【新增】-031 -服装店行业薪资方案.doc
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈