public class Reflector
extends java.lang.Object
| Constructor and Description |
|---|
Reflector() |
| Modifier and Type | Method and Description |
|---|---|
orsc.OpenRSC |
createClient()
Creates the RSC client object.
|
java.lang.Object |
getClassMember(java.lang.String className,
java.lang.String member)
This function will grab the `member` object from the specified `className`.
|
orsc.mudclient |
getMud(orsc.OpenRSC client)
Given the OpenRSC client, this function returns the `mudclient`
|
java.lang.Object |
getObjectMember(java.lang.Object obj,
java.lang.String member)
This function will grab the `member` object from the specified `obj`.
|
java.lang.Object |
getObjectMemberFromSuperclass(java.lang.Object obj,
java.lang.String member)
Retrieves the member from the given object.
|
java.lang.Object |
mudInvoker(orsc.mudclient mud,
java.lang.String methodName,
java.lang.Object... params)
This function will call `methodName` with `params` inside of `mud`.
|
void |
setObjectMember(java.lang.Object obj,
java.lang.String member,
java.lang.Object value)
Sets the specified member inside of the object to the specified value.
|
public orsc.OpenRSC createClient()
public orsc.mudclient getMud(orsc.OpenRSC client)
public java.lang.Object mudInvoker(orsc.mudclient mud,
java.lang.String methodName,
java.lang.Object... params)
mud - -- the mud objectmethodName - -- the method name as a case sensitive stringparams - -- parameters, as a listpublic java.lang.Object getClassMember(java.lang.String className,
java.lang.String member)
*** THIS DOES NOT RECURSE DOWN INTO CHILD OBJECTS. SEE OTHER FUNCTIONS FOR THAT CAPABILITY. ***
className - -- the EXACT name of the class, down to the period. case sensitive.member - -- the EXACT name of the member of the class. case sensitive.public java.lang.Object getObjectMember(java.lang.Object obj,
java.lang.String member)
*** THIS DOES NOT RECURSE DOWN INTO CHILD OBJECTS. SEE OTHER FUNCTIONS FOR THAT CAPABILITY. ***
obj - -- the object to retrieve data from.member - -- the EXACT name of the member of the class. case sensitive.public java.lang.Object getObjectMemberFromSuperclass(java.lang.Object obj,
java.lang.String member)
obj - -- object to retrieve frommember - -- exact name of the object to returnpublic void setObjectMember(java.lang.Object obj,
java.lang.String member,
java.lang.Object value)
obj - -- the object to modifymember - -- the member of said object to modifyvalue - -- the value to set obj.member to.