public class DefaultDynObject extends 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 Map |
values |
| Constructor and Description |
|---|
DefaultDynObject(DynStruct dynClass) |
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
void |
delegate(DynObject dynObjects) |
DynClass |
getDynClass() |
Object |
getDynValue(String name) |
boolean |
hasDynMethod(String name) |
boolean |
hasDynValue(String name) |
boolean |
hasEmptyValues() |
void |
implement(DynClass dynClass) |
boolean |
instanceOf(DynClass dynClass) |
Object |
invokeDynMethod(int code,
Object[] args) |
Object |
invokeDynMethod(Object self,
int methodCode,
Object[] args) |
Object |
invokeDynMethod(Object self,
String methodName,
Object[] args) |
Object |
invokeDynMethod(String name,
Object[] args) |
void |
setDynValue(String name,
Object value) |
String |
toString() |
static String |
toString(DynObject obj) |
protected DynClass dynClass
protected Map values
protected DynObject[] delegateds
public DefaultDynObject(DynStruct dynClass)
public Object getDynValue(String name) throws DynFieldNotFoundException
getDynValue in interface DynObjectDynFieldNotFoundExceptionpublic void setDynValue(String name, Object value) throws DynFieldNotFoundException
setDynValue in interface DynObjectDynFieldNotFoundExceptionpublic boolean instanceOf(DynClass dynClass)
public DynClass getDynClass()
getDynClass in interface DynObjectpublic boolean hasDynMethod(String name)
hasDynMethod in interface DynObject_v2public boolean hasDynValue(String name) throws DynFieldNotFoundException
hasDynValue in interface DynObjectDynFieldNotFoundExceptionpublic Object invokeDynMethod(String name, Object[] args) throws DynMethodException
invokeDynMethod in interface DynObjectDynMethodExceptionpublic Object invokeDynMethod(int code, Object[] args) throws DynMethodException
invokeDynMethod in interface DynObjectDynMethodExceptionpublic Object invokeDynMethod(Object self, String methodName, Object[] args) throws DynMethodException
invokeDynMethod in interface DelegatedDynObjectDynMethodExceptionpublic Object invokeDynMethod(Object self, int methodCode, Object[] args) throws DynMethodException
invokeDynMethod in interface DelegatedDynObjectDynMethodExceptionpublic boolean hasEmptyValues()