|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectoscript.data.Value
oscript.data.OObject
oscript.data.ComObject
A wrapper for the JAWIN COM library, for accessing COM/ActiveX objects on a windows system. For example:
var excel = new ComObject("Excel.Application"); ... XXXX
Field Summary | |
static java.lang.String[] |
MEMBER_NAMES
|
static java.lang.String |
PARENT_TYPE_NAME
|
static oscript.data.Value |
TYPE
The type object for an instance of ComObject. |
static java.lang.String |
TYPE_NAME
|
Fields inherited from class oscript.data.OObject |
EMPTY_EXPR_LIST_EVALUATOR |
Fields inherited from class oscript.data.Value |
DEBUG, NULL, UNDEFINED |
Constructor Summary | |
ComObject(oscript.util.MemberTable args)
Class Constructor. |
|
ComObject(java.lang.String str)
Class Constructor. |
Method Summary | |
org.jawin.DispatchPtr |
_getDptr()
|
oscript.data.Value |
getMember(int id,
boolean exception)
Get a member of this object. |
protected oscript.data.Value |
getTypeImpl()
Get the type of this object. |
static void |
init()
|
Methods inherited from class oscript.data.OObject |
castToString, populateMemberSet |
Methods inherited from class oscript.data.Value |
_getTypeMember, _populateTypeMemberSet, bopBitwiseAnd, bopBitwiseAndR, bopBitwiseOr, bopBitwiseOrR, bopBitwiseXor, bopBitwiseXorR, bopCast, bopCastR, bopDivide, bopDivideR, bopEquals, bopEqualsR, bopGreaterThan, bopGreaterThanOrEquals, bopGreaterThanOrEqualsR, bopGreaterThanR, bopInstanceOf, bopInstanceOfR, bopLeftShift, bopLeftShiftR, bopLessThan, bopLessThanOrEquals, bopLessThanOrEqualsR, bopLessThanR, bopLogicalAnd, bopLogicalAndR, bopLogicalOr, bopLogicalOrR, bopMinus, bopMinusR, bopMultiply, bopMultiplyR, bopNotEquals, bopNotEqualsR, bopPlus, bopPlusR, bopRemainder, bopRemainderR, bopSignedRightShift, bopSignedRightShiftR, bopUnsignedRightShift, bopUnsignedRightShiftR, callAsConstructor, callAsConstructor, callAsConstructor, callAsExtends, callAsExtends, callAsExtends, callAsFunction, callAsFunction, callAsFunction, castToBoolean, castToExactNumber, castToInexactNumber, castToJavaObject, elementAt, elementsAt, getMember, getMember, getMember, getMember, getMember, getMonitor, getType, getTypeMember, getTypeMember, isA, length, memberSet, noSuchMember, opAssign, populateTypeMemberSet, readExternal, toString, unhand, uopBitwiseNot, uopDecrement, uopIncrement, uopLogicalNot, uopMinus, uopPlus, writeExternal |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final oscript.data.Value TYPE
public static final java.lang.String PARENT_TYPE_NAME
public static final java.lang.String TYPE_NAME
public static final java.lang.String[] MEMBER_NAMES
Constructor Detail |
public ComObject(java.lang.String str) throws org.jawin.COMException
str
- the name of the COM object to access
org.jawin.COMException
- if COM errorpublic ComObject(oscript.util.MemberTable args) throws org.jawin.COMException
args
- arguments to this constructor
PackagedScriptObjectException(Exception)
- if wrong number of args
org.jawin.COMException
- if COM errorMethod Detail |
public static void init()
protected oscript.data.Value getTypeImpl()
Value.getType()
.
public oscript.data.Value getMember(int id, boolean exception) throws oscript.exceptions.PackagedScriptObjectException
id
- the id of the symbol that maps to the memberexception
- whether an exception should be thrown if the
member object is not resolved
PackagedScriptObjectException(NoSuchMemberException)
oscript.exceptions.PackagedScriptObjectException
public org.jawin.DispatchPtr _getDptr()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |