oscript.data
Class XmlRpcMethod

java.lang.Object
  extended by oscript.data.Value
      extended by oscript.data.XmlRpcMethod
All Implemented Interfaces:
java.io.Serializable

public class XmlRpcMethod
extends oscript.data.Value

An XmlRpcMethod object is a wrapper for a method of an XmlRpcObject object

Author:
Rob Clark (rob@ti.com)
See Also:
Serialized Form

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 XmlRpcMethod.
static java.lang.String TYPE_NAME
           
 
Fields inherited from class oscript.data.Value
DEBUG, NULL, UNDEFINED
 
Constructor Summary
XmlRpcMethod(oscript.util.MemberTable args)
          For benefit of BuiltinType...
 
Method Summary
 oscript.data.Value callAsFunction(oscript.util.StackFrame sf, oscript.util.MemberTable args)
          Call this object as a function.
protected  oscript.data.Value getTypeImpl()
          Get the type of this object.
 
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, castToBoolean, castToExactNumber, castToInexactNumber, castToJavaObject, castToString, elementAt, elementsAt, getMember, getMember, getMember, getMember, getMember, getMember, getMonitor, getType, getTypeMember, getTypeMember, isA, length, memberSet, noSuchMember, opAssign, populateMemberSet, 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

TYPE

public static final oscript.data.Value TYPE
The type object for an instance of XmlRpcMethod.


PARENT_TYPE_NAME

public static final java.lang.String PARENT_TYPE_NAME
See Also:
Constant Field Values

TYPE_NAME

public static final java.lang.String TYPE_NAME
See Also:
Constant Field Values

MEMBER_NAMES

public static final java.lang.String[] MEMBER_NAMES
Constructor Detail

XmlRpcMethod

public XmlRpcMethod(oscript.util.MemberTable args)
For benefit of BuiltinType... always throws an exception because script code should not be allowed to directly create an instance...

Parameters:
args - arguments to this constructor
Throws:
PackagedScriptObjectException(Exception) - if wrong number of args
Method Detail

getTypeImpl

protected oscript.data.Value getTypeImpl()
Get the type of this object. The returned type doesn't have to take into account the possibility of a script type extending a built-in type, since that is handled by Value.getType().

Specified by:
getTypeImpl in class oscript.data.Value
Returns:
the object's type

callAsFunction

public oscript.data.Value callAsFunction(oscript.util.StackFrame sf,
                                         oscript.util.MemberTable args)
                                  throws oscript.exceptions.PackagedScriptObjectException
Call this object as a function.

Overrides:
callAsFunction in class oscript.data.Value
Parameters:
sf - the current stack frame
args - the arguments to the function, or null if none
Returns:
the value returned by the function
Throws:
oscript.exceptions.PackagedScriptObjectException