|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwebwork.util.ValueStack
Value stack. A VS is used by the WebWork system as a way to make findInContext values available by using the push and pop methods. They can then be accessed by using the find* methods.
Nested Class Summary | |
static interface |
ValueStack.ValueHolder
|
Field Summary | |
protected static java.util.Map |
classes
|
static java.lang.String |
STACK_NAME
|
Constructor Summary | |
ValueStack()
|
Method Summary | |
static void |
clearMethods()
Clear the method cache. |
protected java.lang.Object |
findInContext(java.lang.String id)
Find a value by id. |
protected webwork.util.ValueStack.MethodInfo |
findMethod(webwork.util.ValueStack.MethodInfo[] m,
java.lang.Object[] params)
|
java.lang.Object |
findValue(Query q)
|
java.lang.Object |
findValue(java.lang.String query)
Find a value for a given name. |
protected webwork.util.ValueStack.MethodInfo[] |
getMethod(java.lang.Class cl,
java.lang.String name)
Get a method with a given name. |
protected java.lang.Object |
getParameter(java.lang.String aName)
|
boolean |
isEmpty()
Returns TRUE is the value stack is empty. |
java.util.Iterator |
iterator()
|
java.lang.Object |
popValue()
Pop a value from the value stack. |
void |
pushValue(java.lang.Object value)
Push a value onto the value stack. |
int |
size()
Returns the size of the value stack. |
boolean |
test(java.lang.String expression)
Resolve a WebWork expression statement. |
java.lang.String |
toString()
Return a string representation of the Stack |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final java.lang.String STACK_NAME
protected static java.util.Map classes
Constructor Detail |
public ValueStack()
Method Detail |
public static void clearMethods()
public void pushValue(java.lang.Object value)
value
- the valuepublic java.lang.Object popValue()
public java.util.Iterator iterator()
public int size()
public boolean isEmpty()
public boolean test(java.lang.String expression)
expression
-
protected java.lang.Object findInContext(java.lang.String id)
public java.lang.Object findValue(java.lang.String query) throws java.lang.IllegalArgumentException
query
-
java.lang.IllegalArgumentException
public java.lang.Object findValue(Query q) throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException
public java.lang.String toString()
protected webwork.util.ValueStack.MethodInfo[] getMethod(java.lang.Class cl, java.lang.String name) throws java.beans.IntrospectionException
cl
- the class of the methodname
- the name of the method
java.beans.IntrospectionException
protected webwork.util.ValueStack.MethodInfo findMethod(webwork.util.ValueStack.MethodInfo[] m, java.lang.Object[] params)
protected java.lang.Object getParameter(java.lang.String aName)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |