pnuts.ext
Class DynamicClass.Instance
java.lang.Object
|
+--pnuts.ext.DynamicClass.Instance
- All Implemented Interfaces:
- AbstractData, Property, java.io.Serializable
- Enclosing class:
- DynamicClass
- public class DynamicClass.Instance
- extends java.lang.Object
- implements AbstractData, java.io.Serializable
- See Also:
- Serialized Form
Method Summary |
java.lang.Object |
get(java.lang.String name,
Context context)
get a value of the specified variable |
java.lang.Object |
invoke(java.lang.String name,
java.lang.Object[] args,
Context context)
call a method |
void |
set(java.lang.String name,
java.lang.Object obj,
Context context)
assign a value to the specified variable |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
DynamicClass.Instance
public DynamicClass.Instance()
set
public void set(java.lang.String name,
java.lang.Object obj,
Context context)
- assign a value to the specified variable
- Specified by:
set
in interface Property
- Following copied from interface:
pnuts.lang.Property
- Parameters:
name
- the name.value
- the value.context
- the context in which the expression is evaluated.
get
public java.lang.Object get(java.lang.String name,
Context context)
- get a value of the specified variable
- Specified by:
get
in interface Property
- Following copied from interface:
pnuts.lang.Property
- Parameters:
name
- the name.conext
- the context in which the expression is evaluated.
invoke
public java.lang.Object invoke(java.lang.String name,
java.lang.Object[] args,
Context context)
- call a method
- Specified by:
invoke
in interface AbstractData
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object