📄 dispatchconstants.java
字号:
/*
* DispatchConstants.java -
*
* This file is part of the Jawin Project: http://jawinproject.sourceforge.net/
*
* Please consult the LICENSE file in the project root directory,
* or at the project site before using this software.
*/
/* $Id: DispatchConstants.java,v 1.3 2004/06/14 19:40:47 arosii_moa Exp $ */
package org.jawin.constants;
/**
* Static constants for specifying the invoke type for a IDispatch call.
*
* @version $Revision: 1.3 $
* @author Stuart Halloway, http://www.relevancellc.com/halloway/weblog/
*/
public class DispatchConstants {
public final int value;
/**
* the human readable ReturnFlag message - used in toString()
*/
private final String msg;
/**
* only the static constant instances defined in this
* class exists, therefore the constructor is private.
*/
private DispatchConstants(int value, String msg) {
this.value = value;
this.msg = msg;
}
public static final DispatchConstants DISPATCH_METHOD = new DispatchConstants(0x1, "DISPATCH_METHOD");
public static final DispatchConstants DISPATCH_PROPERTYGET = new DispatchConstants(0x2, "DISPATCH_PROPERTYGET");
public static final DispatchConstants DISPATCH_PROPERTYPUT = new DispatchConstants(0x4, "DISPATCH_PROPERTYPUT");
public static final DispatchConstants DISPATCH_PROPERTYPUTREF = new DispatchConstants(0x8, "DISPATCH_PROPERTYPUTREF");
public String toString() {
return "[" + msg + " (" + value + ")]";
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -