|
terp - the Codemesh Modular Template Interpreter v1.3.309 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Lvalue
An lvalue that provides access to setting a value. The Lvalue type provides the basic interface for functions that modify the values of variables, members, collections, and any other modifiable objects.
Some objects are not modifiable and are therefore never represented by an Lvalue. A string object for example is immutable. It cannot have its string value changed and it is therefore never represented by an Lvalue. The terp framework creates Lvalue instances when it encounters a modifying operation like an assignment or an increment/decrement operation.
| Nested Class Summary | |
|---|---|
static class |
Lvalue.AbstractLvalue
|
static class |
Lvalue.FieldInvoker
|
static class |
Lvalue.ForMap
A value getter for a string map. |
static class |
Lvalue.MethodInvoker
|
| Method Summary | |
|---|---|
java.lang.Object |
set(java.lang.Object value)
Sets a new value and returns the old one. |
Nvalue |
toNvalue()
Returns an Nvalue for the same datum that is represented by this Lvalue. |
Rvalue |
toRvalue()
Returns an Rvalue for the same datum that is represented by this Lvalue. |
| Method Detail |
|---|
java.lang.Object set(java.lang.Object value)
value - the new value.
TerpException - if an exceptin occurs during the operation.Rvalue toRvalue()
Nvalue toNvalue()
|
terp - the Codemesh Modular Template Interpreter v1.3.309 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||