vmstaticfield.java

来自「纯java操作系统jnode,安装简单和操作简单的个人使用的Java操作系统」· Java 代码 · 共 46 行

JAVA
46
字号
/*
 * $Id: VmStaticField.java,v 1.5 2004/02/24 08:04:15 epr Exp $
 */
package org.jnode.vm.classmgr;

/**
 * VM representation of a special (<init>) method.
 * 
 * @author epr
 */
public final class VmStaticField extends VmField implements VmStaticsEntry {

	/** The index in the statics table */
	private final int staticsIndex;

	/**
	 * @param name
	 * @param signature
	 * @param modifiers
	 * @param staticsIndex
	 * @param declaringClass
	 * @param slotSize
	 */
	public VmStaticField(
		String name,
		String signature,
		int modifiers,
		int staticsIndex,
		VmType declaringClass,
		int slotSize) {
		super(name, signature, modifiers, declaringClass, slotSize);
		if (!Modifier.isStatic(modifiers)) {
			throw new IllegalArgumentException("Instance field in VmStaticField");
		}
		this.staticsIndex = staticsIndex;
	}

	/**
	 * Gets the indexe of this field in the statics table.
	 * @return Returns the staticsIndex.
	 */
	public final int getStaticsIndex() {
		return this.staticsIndex;
	}
}

⌨️ 快捷键说明

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