|
Copyright 2002 by aragost | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.aragost.araspect.ObjectRef
An ObjectRef is a wrapper around a value. You get the value with
the method getValue()
. It can return the same
Object each time, or it can create a new Object for each call.
Typically ObjectRefs that recalculate the value for each call of
getValue()
is create as anonymous subclasses.
Constructor Summary | |
ObjectRef()
|
Method Summary | |
static ObjectRef |
constant(java.lang.Object value)
Factory method to create an ObjectRef that always return the same Object. |
abstract java.lang.Object |
getValue()
Return the value this ObjectRef is refenrencing |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ObjectRef()
Method Detail |
public abstract java.lang.Object getValue() throws EvaluationException
EvaluationException
- DOCUMENT ME!public static ObjectRef constant(java.lang.Object value)
value
- DOCUMENT ME!
|
Copyright 2002 by aragost | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |