vminstancemethod.java

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

JAVA
58
字号
/*
 * $Id: VmInstanceMethod.java,v 1.3 2004/02/20 08:20:50 epr Exp $
 */
package org.jnode.vm.classmgr;

/**
 * VM representation of a non-static method.
 * 
 * @author epr
 */
public class VmInstanceMethod extends VmMethod {

	/** Offset of this method in the VMT of its declaring class */
	private int tibOffset;

	/**
	 * @param name
	 * @param signature
	 * @param modifiers
	 * @param declaringClass
	 */
	public VmInstanceMethod(
		String name,
		String signature,
		int modifiers,
		VmType declaringClass) {
		super(name, signature, modifiers, declaringClass);
	}
	
	/**
	 * Create a clone of an abstract method.
	 * @param method
	 */
	public VmInstanceMethod(VmInstanceMethod method) {
		super(method);
		if (!method.isAbstract()) {
			throw new IllegalArgumentException("Method must be abstract");
		}
	}

	/**
	 * Gets the offset of this method in the TIB of its declaring class
	 * @return offset
	 */
	public int getTibOffset() {
		return tibOffset;
	}

	/**
	 * Sets the offset of this method in the VMT of its declaring class
	 * @param offset
	 */
	protected void setTibOffset(int offset) {
		this.tibOffset = offset;
	}

}

⌨️ 快捷键说明

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