public class DefaultDynObject extends Object implements DelegatedDynObject
Modifier and Type | Class and Description |
---|---|
class |
DefaultDynObject.CoerceValueException |
Modifier and Type | Field and Description |
---|---|
protected DynObject[] |
delegateds |
protected DefaultDynClass |
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 |
hasDynValue(String name) |
boolean |
hasEmptyValues() |
void |
implement(DynClass dynClass) |
boolean |
instanceOf(DynClass dynClass) |
Object |
invokeDynMethod(int code,
DynObject context) |
Object |
invokeDynMethod(Object self,
int methodCode,
DynObject context) |
Object |
invokeDynMethod(Object self,
String methodName,
DynObject context) |
Object |
invokeDynMethod(String name,
DynObject context) |
void |
setDynValue(String name,
Object value) |
String |
toString() |
protected DefaultDynClass 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 hasDynValue(String name) throws DynFieldNotFoundException
hasDynValue
in interface DynObject
DynFieldNotFoundException
public Object invokeDynMethod(String name, DynObject context) throws DynMethodException
invokeDynMethod
in interface DynObject
DynMethodException
public Object invokeDynMethod(int code, DynObject context) throws DynMethodException
invokeDynMethod
in interface DynObject
DynMethodException
public Object invokeDynMethod(Object self, String methodName, DynObject context) throws DynMethodException
invokeDynMethod
in interface DelegatedDynObject
DynMethodException
public Object invokeDynMethod(Object self, int methodCode, DynObject context) throws DynMethodException
invokeDynMethod
in interface DelegatedDynObject
DynMethodException
public boolean hasEmptyValues()
Copyright © 2013 gvSIG Association. All Rights Reserved.