vmprimitiveclass.java
来自「纯java操作系统jnode,安装简单和操作简单的个人使用的Java操作系统」· Java 代码 · 共 55 行
JAVA
55 行
/*
* $Id: VmPrimitiveClass.java,v 1.1 2004/02/19 10:09:13 epr Exp $
*/
package org.jnode.vm.classmgr;
/**
* @author Ewout Prangsma (epr@users.sourceforge.net)
*/
public final class VmPrimitiveClass extends VmNormalClass {
/** Is this a floatingpoint type? */
private final boolean floatingPoint;
/** Is this a wide type? */
private final boolean wide;
/**
* @param name
* @param superClass
* @param loader
* @param typeSize
*/
public VmPrimitiveClass(String name, VmNormalClass superClass,
VmClassLoader loader, int typeSize, boolean floatingPoint) {
super(name, superClass, loader, typeSize);
this.floatingPoint = floatingPoint;
this.wide = (typeSize == 8);
}
/**
* Is this class a primitive type?
*
* @return boolean
*/
public boolean isPrimitive() {
return true;
}
/**
* Is this a wide primitive type; long or double
*/
public final boolean isWide() {
return wide;
}
/**
* Is this a floatingpoint primitive type; float or double
*/
public final boolean isFloatingPoint() {
return floatingPoint;
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?