public class ValueStack extends Object implements Iterable<Object>
| Modifier and Type | Class and Description |
|---|---|
static interface |
ValueStack.ValueHolder |
| Modifier and Type | Field and Description |
|---|---|
protected static Map<Class<?>,Map<String,webwork.util.ValueStack.MethodInfo[]>> |
classes |
static String |
STACK_NAME |
static String |
WEBWORK_VALUE_STACK_LOG_EXCEPTIONS
A System property name that controls whether value stack exceptions are logged or not.
|
| Constructor and Description |
|---|
ValueStack() |
| Modifier and Type | Method and Description |
|---|---|
static void |
clearMethods()
Clear the method cache.
|
protected Object |
findInContext(String id)
Find a value by id.
|
protected webwork.util.ValueStack.MethodInfo |
findMethod(webwork.util.ValueStack.MethodInfo[] m,
Object[] params) |
Object |
findValue(Query q) |
Object |
findValue(String query)
Find a value for a given name.
|
protected webwork.util.ValueStack.MethodInfo[] |
getMethod(Class<?> cl,
String name)
Get a method with a given name.
|
protected Object |
getParameter(String aName) |
boolean |
isEmpty()
Returns TRUE is the value stack is empty.
|
Iterator<Object> |
iterator() |
Object |
peek()
Peek at the object that is at the top of the stack.
|
Object |
popValue()
Pop a value from the value stack.
|
void |
pushValue(Object value)
Push a value onto the value stack.
|
int |
size()
Returns the size of the value stack.
|
boolean |
test(String expression)
Resolve a WebWork expression statement.
|
String |
toString()
Return a string representation of the Stack
|
protected Object |
unwrap(Object value) |
public static final String STACK_NAME
public static final String WEBWORK_VALUE_STACK_LOG_EXCEPTIONS
public static void clearMethods()
public void pushValue(Object value)
value - the valuepublic Object peek()
public Object popValue()
public int size()
public boolean isEmpty()
public boolean test(String expression)
expression - protected Object findInContext(String id)
id - the value id.public Object findValue(String query) throws IllegalArgumentException
query - IllegalArgumentExceptionpublic Object findValue(Query q) throws IllegalArgumentException
IllegalArgumentExceptionpublic String toString()
protected webwork.util.ValueStack.MethodInfo[] getMethod(Class<?> cl, String name) throws IntrospectionException
cl - the class of the methodname - the name of the methodIntrospectionExceptionprotected webwork.util.ValueStack.MethodInfo findMethod(webwork.util.ValueStack.MethodInfo[] m,
Object[] params)
Copyright © 2013 Atlassian. All Rights Reserved.