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 DynObject
DynFieldNotFoundException
public void setDynValue(String name, Object value) throws DynFieldNotFoundException
setDynValue
in interface DynObject
DynFieldNotFoundException
public boolean instanceOf(DynClass dynClass)
public DynClass getDynClass()
getDynClass
in interface DynObject
public boolean hasDynMethod(String name)
hasDynMethod
in interface DynObject_v2
public boolean hasDynValue(String name) throws DynFieldNotFoundException
hasDynValue
in interface DynObject
DynFieldNotFoundException
public Object invokeDynMethod(String name, Object[] args) throws DynMethodException
invokeDynMethod
in interface DynObject
DynMethodException
public Object invokeDynMethod(int code, Object[] args) throws DynMethodException
invokeDynMethod
in interface DynObject
DynMethodException
public Object invokeDynMethod(Object self, String methodName, Object[] args) throws DynMethodException
invokeDynMethod
in interface DelegatedDynObject
DynMethodException
public Object invokeDynMethod(Object self, int methodCode, Object[] args) throws DynMethodException
invokeDynMethod
in interface DelegatedDynObject
DynMethodException
public boolean hasEmptyValues()