attributeinfo.java

来自「本人根据自己的实际情况」· Java 代码 · 共 42 行

JAVA
42
字号
/**
 * 
 */
package gen.info.attr;

/**
 * @author liuyi
 *
 */
public abstract class AttributeInfo {

	/** the type of this Attribute */
	protected int tag;
	
	/** index of constant pool, referring to a ConstantUtf8Info */
	protected short nameIndex;

	/** length of the attibutes */
	protected int length;

	public AttributeInfo(int tag) {
		this.tag = tag;
	}
	
	public void setNameIndex(short nameIndex){
		this.nameIndex = nameIndex;
	}
	
	public short getNameIndex(){
		return nameIndex;
	}
	
	public void setLength(int length){
		this.length = length;
	}
	
	public int getLength(){
		return length;
	}

}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?