public class OgnlValueStack extends Object implements ValueStack, Serializable
| 限定符和类型 | 类和说明 |
|---|---|
static class |
OgnlValueStack.ObjectAccessor |
REPORT_ERRORS_ON_NO_PROP, VALUE_STACK| 构造器和说明 |
|---|
OgnlValueStack() |
OgnlValueStack(CompoundRoot root) |
OgnlValueStack(ValueStack vs) |
| 限定符和类型 | 方法和说明 |
|---|---|
String |
findString(String expr) |
Object |
findValue(String expr)
Find a value by evaluating the given expression against the stack in the default search order.
|
Object |
findValue(String expr,
Class asType)
Find a value by evaluating the given expression against the stack in the default search order.
|
static CompoundRootAccessor |
getAccessor() |
Map |
getContext() |
Map |
getExprOverrides() |
CompoundRoot |
getRoot()
Get the CompoundRoot which holds the objects pushed onto the stack
|
static void |
link(Map context,
Class clazz,
String name) |
Object |
peek()
Get the object on the top of the stack without changing the stack.
|
Object |
pop()
Get the object on the top of the stack and remove it from the stack.
|
void |
push(Object o)
Put this object onto the top of the stack
|
static void |
reset() |
void |
set(String key,
Object o)
Sets an object on the stack with the given key
so it is retrievable by findValue(key,...)
|
void |
setDefaultType(Class defaultType)
Sets the default type to convert to if no type is provided when getting a value.
|
static void |
setDevMode(String mode) |
void |
setExprOverrides(Map overrides) |
void |
setValue(String expr,
Object value)
Attempts to set a property on a bean in the stack with the given expression using the default search order.
|
void |
setValue(String expr,
Object value,
boolean throwExceptionOnFailure)
Attempts to set a property on a bean in the stack with the given expression using the default search order.
|
int |
size()
Get the number of objects in the stack
s
|
public OgnlValueStack()
public OgnlValueStack(CompoundRoot root)
public OgnlValueStack(ValueStack vs)
public static void reset()
public static CompoundRootAccessor getAccessor()
public static void setDevMode(String mode)
public Map getContext()
getContext 在接口中 ValueStackpublic void setDefaultType(Class defaultType)
ValueStacksetDefaultType 在接口中 ValueStackpublic void setExprOverrides(Map overrides)
setExprOverrides 在接口中 ValueStackpublic Map getExprOverrides()
getExprOverrides 在接口中 ValueStackpublic CompoundRoot getRoot()
ValueStackgetRoot 在接口中 ValueStackpublic void setValue(String expr, Object value)
ValueStacksetValue 在接口中 ValueStackexpr - the expression defining the path to the property to be set.value - the value to be set into the neamed propertypublic void setValue(String expr, Object value, boolean throwExceptionOnFailure)
ValueStacksetValue 在接口中 ValueStackexpr - the expression defining the path to the property to be set.value - the value to be set into the neamed propertythrowExceptionOnFailure - a flag to tell whether an exception should be thrown if there is no property with
the given name.public String findString(String expr)
findString 在接口中 ValueStackpublic Object findValue(String expr)
ValueStackfindValue 在接口中 ValueStackexpr - the expression giving the path of properties to navigate to find the property value to returnpublic Object findValue(String expr, Class asType)
ValueStackfindValue 在接口中 ValueStackexpr - the expression giving the path of properties to navigate to find the property value to returnasType - the type to convert the return value topublic Object peek()
ValueStackpeek 在接口中 ValueStackCompoundRoot.peek()public Object pop()
ValueStackpop 在接口中 ValueStackCompoundRoot.pop()public void push(Object o)
ValueStackpush 在接口中 ValueStacko - the object to be pushed onto the stackCompoundRoot.push(Object)public void set(String key, Object o)
ValueStackset 在接口中 ValueStackpublic int size()
ValueStacksize 在接口中 ValueStackCopyright © 2023 onecode. All rights reserved.