package jp.ne.so_net.ga2.no_ji.jcom;
public class ITypeInfo extends IUnknown
{
public static GUID IID = new GUID(132097, 0, 0, 192, 0, 0, 0, 0, 0, 0, 70);
public static final int MEMBERID_NIL = -1;
public ITypeInfo(ReleaseManager rm, int pITypeInfo)
{
super(rm, pITypeInfo);
}
public String[] getDocumentation(int memid)
throws JComException
{
return _getDocumentation(memid);
}
public TypeAttr getTypeAttr()
throws JComException
{
return _getTypeAttr();
}
public FuncDesc getFuncDesc(int index)
throws JComException
{
return _getFuncDesc(index);
}
public VarDesc getVarDesc(int index)
throws JComException
{
return _getVarDesc(index);
}
public ITypeLib getTypeLib()
throws JComException
{
return new ITypeLib(this.rm, _getTypeLib());
}
public ITypeInfo getImplType(int index)
throws JComException
{
return new ITypeInfo(this.rm, _getImplType(index));
}
public ITypeInfo getRefTypeInfo(int hreftype)
throws JComException
{
return new ITypeInfo(this.rm, _getRefTypeInfo(hreftype));
}
public static int getRefTypeFromTypeDesc(String type)
{
return Integer.parseInt(type.substring(type.indexOf('(') + 1, type.indexOf(')')), 16);
}
public boolean equals(Object obj)
{
if (!(obj instanceof ITypeInfo)) return false;
ITypeInfo info = (ITypeInfo)obj;
try {
return info.getTypeAttr().getIID().equals(getTypeAttr().getIID()); } catch (JComException e) {
e.printStackTrace();
}return false;
}
private native String[] _getDocumentation(int paramInt)
throws JComException;
private native String[] _getNames(int paramInt)
throws JComException;
private native TypeAttr _getTypeAttr()
throws JComException;
private native FuncDesc _getFuncDesc(int paramInt)
throws JComException;
private native VarDesc _getVarDesc(int paramInt)
throws JComException;
private native int _getImplType(int paramInt)
throws JComException;
private native int _getTypeLib()
throws JComException;
private native int _getRefTypeInfo(int paramInt)
throws JComException;
public class VarDesc
{
private int memid;
private int varkind;
private ITypeInfo.ElemDesc elemdescVar;
private Object varValue;
public static final int VAR_PERINSTANCE = 0;
public static final int VAR_STATIC = 1;
public static final int VAR_CONST = 2;
public static final int VAR_DISPATCH = 3;
public VarDesc(int memid, int varkind, ITypeInfo.ElemDesc elemdescVar, Object varValue)
{
this.memid = memid;
this.varkind = varkind;
this.elemdescVar = elemdescVar;
this.varValue = varValue;
}
public String toString()
{
try
{
String[] names = getNames();
String result = "";
switch (this.varkind) { case 0:
result = result + "PERINSTANCE "; break;
case 1:
result = result + "STATIC "; break;
case 2:
result = result + "CONST "; break;
case 3:
result = result + "DISPATCH ";
}
return result + this.elemdescVar.toString() + " " + names[0] + " = " + this.varValue.toString();
}
catch (Exception e) {
}
return null;
}
public int getMemID()
{
return this.memid;
}
public int getVarKind()
{
return this.varkind;
}
public ITypeInfo.ElemDesc getVar()
{
return this.elemdescVar;
}
public String[] getNames()
throws JComException
{
return ITypeInfo.this._getNames(this.memid);
}
public Object getValue()
{
return this.varValue;
}
}
public class FuncDesc
{
private int memid;
private int invkind;
private ITypeInfo.ElemDesc[] elemdescParam;
private ITypeInfo.ElemDesc elemdescFunc;
public static final int INVOKE_FUNC = 1;
public static final int INVOKE_PROPERTYGET = 2;
public static final int INVOKE_PROPERTYPUT = 4;
public static final int INVOKE_PROPERTYPUTREF = 8;
public FuncDesc(int memid, int invkind, ITypeInfo.ElemDesc[] elemdescParam, ITypeInfo.ElemDesc elemdescFunc)
{
this.memid = memid;
this.invkind = invkind;
this.elemdescParam = elemdescParam;
this.elemdescFunc = elemdescFunc;
}
public String toString()
{
try
{
String[] names = getNames();
String result = "";
switch (this.invkind) { case 1:
result = result + "FUNC ";
break;
case 2:
result = result + "GET "; break;
case 4:
result = result + "PUT "; break;
case 8:
result = result + "PUTREF ";
case 3:
case 5:
case 6:
case 7: } result = result + names[0] + "(";
if (this.elemdescParam != null) {
for (int i = 0; i < this.elemdescParam.length; i++) {
result = result + this.elemdescParam[i].toString() + " ";
if (i + 1 < names.length) result = result + names[(i + 1)];
if (i != this.elemdescParam.length - 1) result = result + ",";
}
}
return result + ")" + this.elemdescFunc.toString();
}
catch (Exception e) {
}
return null;
}
public int getMemID()
{
return this.memid;
}
public int getInvokeKind()
{
return this.invkind;
}
public ITypeInfo.ElemDesc[] getParams()
{
return this.elemdescParam;
}
public ITypeInfo.ElemDesc getFunc()
{
return this.elemdescFunc;
}
public String[] getNames()
throws JComException
{
return ITypeInfo.this._getNames(this.memid);
}
}
public class ElemDesc
{
public static final int IDLFLAG_FIN = 1;
public static final int IDLFLAG_FOUT = 2;
public static final int IDLFLAG_FLCID = 4;
public static final int IDLFLAG_FRETVAL = 8;
private int idl;
private String typedesc;
public ElemDesc(String typedesc, int idl)
{
this.typedesc = typedesc;
this.idl = idl;
}
public int getIDL() { return this.idl; }
public String getTypeDesc()
{
return this.typedesc;
}
public String toString() { if (this.idl == 0) return this.typedesc;
String result = "";
if ((this.idl & 0x1) != 0) result = result + "[in]";
if ((this.idl & 0x2) != 0) result = result + "[out]";
if ((this.idl & 0x4) != 0) result = result + "[lcid]";
if ((this.idl & 0x8) != 0) result = result + "[retval]";
return result + this.typedesc;
}
}
public class TypeAttr
{
public static final int TKIND_ENUM = 0;
public static final int TKIND_RECORD = 1;
public static final int TKIND_MODULE = 2;
public static final int TKIND_INTERFACE = 3;
public static final int TKIND_DISPATCH = 4;
public static final int TKIND_COCLASS = 5;
public static final int TKIND_ALIAS = 6;
public static final int TKIND_UNION = 7;
public static final int TKIND_MAX = 8;
private GUID IID;
private int cFuncs;
private int cVars;
private int cImplTypes;
private int typekind;
public TypeAttr(GUID IID, int typekind, int cFuncs, int cVars, int cImplTypes)
{
this.IID = IID;
this.typekind = typekind;
this.cFuncs = cFuncs;
this.cVars = cVars;
this.cImplTypes = cImplTypes;
}
public GUID getIID() { return this.IID; }
public int getTypeKind() { return this.typekind; }
public int getFuncs() { return this.cFuncs; }
public int getVars() { return this.cVars; }
public int getImplTypes() { return this.cImplTypes; }
}
}
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
收起资源包目录
jcom读取visio文件.rar (62个子文件)
jcom.dll 76KB
jcom
bin
jp
ne
so_net
ga2
no_ji
jcom
ITypeInfo$ElemDesc.class 2KB
IUnknown.class 3KB
JComException.class 383B
IPersist.class 909B
ITypeInfo$VarDesc.class 2KB
excel8
ExcelWorkbook.class 2KB
XlSaveAsAccessMode.class 470B
ExcelWorkbooks.class 3KB
ExcelWorksheets.class 5KB
XlFileFormat.class 1KB
ExcelFont.class 4KB
XlSheetType.class 539B
ExcelWorksheet.class 5KB
XlPageBreak.class 433B
ExcelRange.class 6KB
ExcelApplication.class 4KB
IDispatch.class 3KB
GUID.class 4KB
ITypeInfo.class 3KB
IEnumVARIANT.class 2KB
ITypeInfo$TypeAttr.class 2KB
Com.class 864B
VariantCurrency.class 971B
VariantError.class 826B
ITypeLib.class 2KB
ITypeLib$TLibAttr.class 2KB
ReleaseManager.class 2KB
ITypeInfo$FuncDesc.class 3KB
t
T.class 3KB
hs_err_pid5708.log 8KB
hs_err_pid2372.log 8KB
hs_err_pid2968.log 8KB
hs_err_pid5468.log 8KB
.settings
org.eclipse.core.resources.prefs 82B
org.eclipse.jdt.core.prefs 629B
src
jp
ne
so_net
ga2
no_ji
jcom
IDispatch.java 3KB
JComException.java 146B
VariantCurrency.java 533B
excel8
XlSheetType.java 283B
ExcelWorksheet.java 4KB
ExcelWorkbooks.java 2KB
ExcelFont.java 4KB
XlPageBreak.java 167B
XlSaveAsAccessMode.java 184B
XlFileFormat.java 993B
ExcelWorkbook.java 2KB
ExcelWorksheets.java 3KB
ExcelRange.java 4KB
ExcelApplication.java 3KB
VariantError.java 429B
IUnknown.java 2KB
Com.java 455B
GUID.java 4KB
ITypeInfo.java 8KB
ITypeLib.java 3KB
IEnumVARIANT.java 1KB
ReleaseManager.java 1KB
IPersist.java 424B
t
T.java 2KB
.project 380B
.classpath 301B
共 62 条
- 1
资源评论
抽烟一族
- 粉丝: 5
- 资源: 19
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功