⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 type.java

📁 jnative java 调用动态库需要的包和dll
💻 JAVA
字号:

package org.xvolks.jnative;

/**
 * This enumeration manages the different types of data nedeed by JNative.<br>
 *
 *  $Id: Type.java,v 1.7 2006/11/07 22:04:55 mdenty Exp $;
 *
 * This software is released under the LGPL.
 * @author Created by Marc DENTY - (c) 2006 JNative project
 */

public enum Type {
	/** Used only for return values*/
	VOID("Void", -1),
	/** Used for <b>in</b> params of type bool, byte to long (32 bits) */
	INT("Int", 0),
	/** Used for <b>in</b> params of type int64 (64 bits) */
	LONG("Long", 9),
	/** Used for <b>in</b> params of type double */
	DOUBLE("Double", 7),
	/** Used for <b>in</b> params of type float */
	FLOAT("FLOAT", 8),
	/** Used for <b>in</b> params of type const char*, LPCSTR */
	STRING("String", 4),
//	PSTRING("String*"),
//	PINT("Int*"),
//	PLONG("Long*"),
	/** Not use directly, use a Pointer object instead <br> This is used internaly for <b>out</b> parameters.*/
	PSTRUCT("Stuct*", 6),
	
	;
	
	private String mValue;
	private int mNativeType;
	Type(String val, int nativeType) {
		mValue = val;
		mNativeType = nativeType;
	}
	
	public String getType() {
		return mValue;
	}

	public int getNativeType() {
		return mNativeType;
	}
}

⌨️ 快捷键说明

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