public class DefaultDynObject extends java.lang.Object implements DelegatedDynObject, DynObject_v2
Modifier and Type | Class and Description |
---|---|
class |
DefaultDynObject.CoerceValueException |
Modifier and Type | Field and Description |
---|---|
protected DynObject[] |
delegateds |
protected DynClass |
dynClass |
protected java.util.Map |
values |
Constructor and Description |
---|
DefaultDynObject(DynStruct dynClass) |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
void |
delegate(DynObject dynObjects) |
DynClass |
getDynClass() |
java.lang.Object |
getDynValue(java.lang.String name) |
boolean |
hasDynMethod(java.lang.String name) |
boolean |
hasDynValue(java.lang.String name) |
boolean |
hasEmptyValues() |
void |
implement(DynClass dynClass) |
boolean |
instanceOf(DynClass dynClass) |
java.lang.Object |
invokeDynMethod(int code,
java.lang.Object[] args) |
java.lang.Object |
invokeDynMethod(java.lang.Object self,
int methodCode,
java.lang.Object[] args) |
java.lang.Object |
invokeDynMethod(java.lang.Object self,
java.lang.String methodName,
java.lang.Object[] args) |
java.lang.Object |
invokeDynMethod(java.lang.String name,
java.lang.Object[] args) |
void |
setDynValue(java.lang.String name,
java.lang.Object value) |
java.lang.String |
toString() |
static java.lang.String |
toString(DynObject obj) |
protected DynClass dynClass
protected java.util.Map values
protected DynObject[] delegateds
public DefaultDynObject(DynStruct dynClass)
public java.lang.Object getDynValue(java.lang.String name) throws DynFieldNotFoundException
getDynValue
in interface DynObject
DynFieldNotFoundException
public void setDynValue(java.lang.String name, java.lang.Object value) throws DynFieldNotFoundException
setDynValue
in interface DynObject
DynFieldNotFoundException
public boolean instanceOf(DynClass dynClass)
public DynClass getDynClass()
getDynClass
in interface DynObject
public boolean hasDynMethod(java.lang.String name)
hasDynMethod
in interface DynObject_v2
public boolean hasDynValue(java.lang.String name) throws DynFieldNotFoundException
hasDynValue
in interface DynObject
DynFieldNotFoundException
public java.lang.Object invokeDynMethod(java.lang.String name, java.lang.Object[] args) throws DynMethodException
invokeDynMethod
in interface DynObject
DynMethodException
public java.lang.Object invokeDynMethod(int code, java.lang.Object[] args) throws DynMethodException
invokeDynMethod
in interface DynObject
DynMethodException
public java.lang.Object invokeDynMethod(java.lang.Object self, java.lang.String methodName, java.lang.Object[] args) throws DynMethodException
invokeDynMethod
in interface DelegatedDynObject
DynMethodException
public java.lang.Object invokeDynMethod(java.lang.Object self, int methodCode, java.lang.Object[] args) throws DynMethodException
invokeDynMethod
in interface DelegatedDynObject
DynMethodException
public java.lang.String toString()
toString
in class java.lang.Object
public static java.lang.String toString(DynObject obj)
public boolean hasEmptyValues()