|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectoscript.data.Value
oscript.data.JavaMethodWrapper
A wrapper for a method of a java object. Because the method that is called is determined by the arguments to the method when it is called, rather than when it is dereferenced, this is actually a wrapper for an array of all methods in a class with a certain name.
Field Summary | |
static java.lang.String[] |
MEMBER_NAMES
|
static java.lang.String |
PARENT_TYPE_NAME
|
static Value |
TYPE
The type object for an script java method. |
static java.lang.String |
TYPE_NAME
|
Fields inherited from class oscript.data.Value |
DEBUG, NULL, UNDEFINED |
Method Summary | |
Value |
bopEquals(Value val)
Perform the "==" operation. |
Value |
bopNotEquals(Value val)
Perform the "!=" operation. |
Value |
callAsFunction(StackFrame sf,
MemberTable args)
Call this object as a function. |
java.lang.String |
castToString()
Convert this object to a native java String value. |
boolean |
equals(java.lang.Object obj)
Compare two objects for equality. |
protected Value |
getTypeImpl()
Get the type of this object. |
int |
hashCode()
Return a hash code value for this object. |
void |
run()
Implementing the runnable interface. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final 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
Method Detail |
protected Value getTypeImpl()
Value.getType()
.
getTypeImpl
in class Value
public void run()
run
in interface java.lang.Runnable
public int hashCode()
Object.hashCode()
public boolean equals(java.lang.Object obj)
obj
- the object to compare to this object
true
if equals, else false
Object.equals(java.lang.Object)
public Value bopEquals(Value val) throws PackagedScriptObjectException
bopEquals
in class Value
val
- the other value
PackagedScriptObjectException(NoSuchMethodException)
PackagedScriptObjectException
public Value bopNotEquals(Value val) throws PackagedScriptObjectException
bopNotEquals
in class Value
val
- the other value
PackagedScriptObjectException(NoSuchMethodException)
PackagedScriptObjectException
public java.lang.String castToString() throws PackagedScriptObjectException
String
value.
castToString
in class Value
PackagedScriptObjectException(NoSuchMethodException)
PackagedScriptObjectException
public Value callAsFunction(StackFrame sf, MemberTable args) throws PackagedScriptObjectException
callAsFunction
in class Value
sf
- the current stack frameargs
- the arguments to the function, or null
if none
PackagedScriptObjectException
Function
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |