📄 ognl.html
字号:
<DT><B>Parameters:</B><DD><CODE>expression</CODE> - the OGNL expression to be parsed<DD><CODE>root</CODE> - the root object for the OGNL expression<DT><B>Returns:</B><DD>the result of evaluating the expression<DT><B>Throws:</B><DD><CODE><A HREF="../ognl/ExpressionSyntaxException.html" title="class in ognl">ExpressionSyntaxException</A></CODE> - if the expression is malformed<DD><CODE><A HREF="../ognl/MethodFailedException.html" title="class in ognl">MethodFailedException</A></CODE> - if the expression called a method which failed<DD><CODE><A HREF="../ognl/NoSuchPropertyException.html" title="class in ognl">NoSuchPropertyException</A></CODE> - if the expression referred to a nonexistent property<DD><CODE><A HREF="../ognl/InappropriateExpressionException.html" title="class in ognl">InappropriateExpressionException</A></CODE> - if the expression can't be used in this context<DD><CODE><A HREF="../ognl/OgnlException.html" title="class in ognl">OgnlException</A></CODE> - if there is a pathological environmental problem<DT><B>See Also:</B><DD><A HREF="../ognl/Ognl.html#parseExpression(java.lang.String)"><CODE>parseExpression(String)</CODE></A>, <A HREF="../ognl/Ognl.html#getValue(java.lang.Object, java.lang.Object)"><CODE>getValue(Object,Object)</CODE></A></DL>
</DD>
</DL>
<HR>
<A NAME="getValue(java.lang.String, java.lang.Object, java.lang.Class)"><!-- --></A><H3>
getValue</H3>
<PRE>
public static java.lang.Object <B>getValue</B>(java.lang.String expression, java.lang.Object root, java.lang.Class resultType) throws <A HREF="../ognl/OgnlException.html" title="class in ognl">OgnlException</A></PRE>
<DL>
<DD>Convenience method that combines calls to <code> parseExpression </code> and <code> getValue</code>.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>expression</CODE> - the OGNL expression to be parsed<DD><CODE>root</CODE> - the root object for the OGNL expression<DD><CODE>resultType</CODE> - the converted type of the resultant object, using the context's type converter<DT><B>Returns:</B><DD>the result of evaluating the expression<DT><B>Throws:</B><DD><CODE><A HREF="../ognl/ExpressionSyntaxException.html" title="class in ognl">ExpressionSyntaxException</A></CODE> - if the expression is malformed<DD><CODE><A HREF="../ognl/MethodFailedException.html" title="class in ognl">MethodFailedException</A></CODE> - if the expression called a method which failed<DD><CODE><A HREF="../ognl/NoSuchPropertyException.html" title="class in ognl">NoSuchPropertyException</A></CODE> - if the expression referred to a nonexistent property<DD><CODE><A HREF="../ognl/InappropriateExpressionException.html" title="class in ognl">InappropriateExpressionException</A></CODE> - if the expression can't be used in this context<DD><CODE><A HREF="../ognl/OgnlException.html" title="class in ognl">OgnlException</A></CODE> - if there is a pathological environmental problem<DT><B>See Also:</B><DD><A HREF="../ognl/Ognl.html#parseExpression(java.lang.String)"><CODE>parseExpression(String)</CODE></A>, <A HREF="../ognl/Ognl.html#getValue(java.lang.Object, java.lang.Object)"><CODE>getValue(Object,Object)</CODE></A></DL>
</DD>
</DL>
<HR>
<A NAME="setValue(java.lang.Object, java.util.Map, java.lang.Object, java.lang.Object)"><!-- --></A><H3>
setValue</H3>
<PRE>
public static void <B>setValue</B>(java.lang.Object tree, java.util.Map context, java.lang.Object root, java.lang.Object value) throws <A HREF="../ognl/OgnlException.html" title="class in ognl">OgnlException</A></PRE>
<DL>
<DD>Evaluates the given OGNL expression tree to insert a value into the object graph rooted at the given root object. The default context is set for the given context and root via <CODE>addDefaultContext()</CODE>.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>tree</CODE> - the OGNL expression tree to evaluate, as returned by parseExpression()<DD><CODE>context</CODE> - the naming context for the evaluation<DD><CODE>root</CODE> - the root object for the OGNL expression<DD><CODE>value</CODE> - the value to insert into the object graph<DT><B>Throws:</B><DD><CODE><A HREF="../ognl/MethodFailedException.html" title="class in ognl">MethodFailedException</A></CODE> - if the expression called a method which failed<DD><CODE><A HREF="../ognl/NoSuchPropertyException.html" title="class in ognl">NoSuchPropertyException</A></CODE> - if the expression referred to a nonexistent property<DD><CODE><A HREF="../ognl/InappropriateExpressionException.html" title="class in ognl">InappropriateExpressionException</A></CODE> - if the expression can't be used in this context<DD><CODE><A HREF="../ognl/OgnlException.html" title="class in ognl">OgnlException</A></CODE> - if there is a pathological environmental problem</DL>
</DD>
</DL>
<HR>
<A NAME="setValue(java.lang.String, java.util.Map, java.lang.Object, java.lang.Object)"><!-- --></A><H3>
setValue</H3>
<PRE>
public static void <B>setValue</B>(java.lang.String expression, java.util.Map context, java.lang.Object root, java.lang.Object value) throws <A HREF="../ognl/OgnlException.html" title="class in ognl">OgnlException</A></PRE>
<DL>
<DD>Evaluates the given OGNL expression to insert a value into the object graph rooted at the given root object given the context.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>expression</CODE> - the OGNL expression to be parsed<DD><CODE>root</CODE> - the root object for the OGNL expression<DD><CODE>context</CODE> - the naming context for the evaluation<DD><CODE>value</CODE> - the value to insert into the object graph<DT><B>Throws:</B><DD><CODE><A HREF="../ognl/MethodFailedException.html" title="class in ognl">MethodFailedException</A></CODE> - if the expression called a method which failed<DD><CODE><A HREF="../ognl/NoSuchPropertyException.html" title="class in ognl">NoSuchPropertyException</A></CODE> - if the expression referred to a nonexistent property<DD><CODE><A HREF="../ognl/InappropriateExpressionException.html" title="class in ognl">InappropriateExpressionException</A></CODE> - if the expression can't be used in this context<DD><CODE><A HREF="../ognl/OgnlException.html" title="class in ognl">OgnlException</A></CODE> - if there is a pathological environmental problem</DL>
</DD>
</DL>
<HR>
<A NAME="setValue(java.lang.Object, java.lang.Object, java.lang.Object)"><!-- --></A><H3>
setValue</H3>
<PRE>
public static void <B>setValue</B>(java.lang.Object tree, java.lang.Object root, java.lang.Object value) throws <A HREF="../ognl/OgnlException.html" title="class in ognl">OgnlException</A></PRE>
<DL>
<DD>Evaluates the given OGNL expression tree to insert a value into the object graph rooted at the given root object.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>tree</CODE> - the OGNL expression tree to evaluate, as returned by parseExpression()<DD><CODE>root</CODE> - the root object for the OGNL expression<DD><CODE>value</CODE> - the value to insert into the object graph<DT><B>Throws:</B><DD><CODE><A HREF="../ognl/MethodFailedException.html" title="class in ognl">MethodFailedException</A></CODE> - if the expression called a method which failed<DD><CODE><A HREF="../ognl/NoSuchPropertyException.html" title="class in ognl">NoSuchPropertyException</A></CODE> - if the expression referred to a nonexistent property<DD><CODE><A HREF="../ognl/InappropriateExpressionException.html" title="class in ognl">InappropriateExpressionException</A></CODE> - if the expression can't be used in this context<DD><CODE><A HREF="../ognl/OgnlException.html" title="class in ognl">OgnlException</A></CODE> - if there is a pathological environmental problem</DL>
</DD>
</DL>
<HR>
<A NAME="setValue(java.lang.String, java.lang.Object, java.lang.Object)"><!-- --></A><H3>
setValue</H3>
<PRE>
public static void <B>setValue</B>(java.lang.String expression, java.lang.Object root, java.lang.Object value) throws <A HREF="../ognl/OgnlException.html" title="class in ognl">OgnlException</A></PRE>
<DL>
<DD>Convenience method that combines calls to <code> parseExpression </code> and <code> setValue</code>.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>expression</CODE> - the OGNL expression to be parsed<DD><CODE>root</CODE> - the root object for the OGNL expression<DD><CODE>value</CODE> - the value to insert into the object graph<DT><B>Throws:</B><DD><CODE><A HREF="../ognl/ExpressionSyntaxException.html" title="class in ognl">ExpressionSyntaxException</A></CODE> - if the expression is malformed<DD><CODE><A HREF="../ognl/MethodFailedException.html" title="class in ognl">MethodFailedException</A></CODE> - if the expression called a method which failed<DD><CODE><A HREF="../ognl/NoSuchPropertyException.html" title="class in ognl">NoSuchPropertyException</A></CODE> - if the expression referred to a nonexistent property<DD><CODE><A HREF="../ognl/InappropriateExpressionException.html" title="class in ognl">InappropriateExpressionException</A></CODE> - if the expression can't be used in this context<DD><CODE><A HREF="../ognl/OgnlException.html" title="class in ognl">OgnlException</A></CODE> - if there is a pathological environmental problem<DT><B>See Also:</B><DD><A HREF="../ognl/Ognl.html#parseExpression(java.lang.String)"><CODE>parseExpression(String)</CODE></A>, <A HREF="../ognl/Ognl.html#setValue(java.lang.Object, java.lang.Object, java.lang.Object)"><CODE>setValue(Object,Object,Object)</CODE></A></DL>
</DD>
</DL>
<HR>
<A NAME="isConstant(java.lang.Object, java.util.Map)"><!-- --></A><H3>
isConstant</H3>
<PRE>
public static boolean <B>isConstant</B>(java.lang.Object tree, java.util.Map context) throws <A HREF="../ognl/OgnlException.html" title="class in ognl">OgnlException</A></PRE>
<DL>
<DD><DL>
<DT><B>Throws:</B><DD><CODE><A HREF="../ognl/OgnlException.html" title="class in ognl">OgnlException</A></CODE></DL>
</DD>
</DL>
<HR>
<A NAME="isConstant(java.lang.String, java.util.Map)"><!-- --></A><H3>
isConstant</H3>
<PRE>
public static boolean <B>isConstant</B>(java.lang.String expression, java.util.Map context) throws <A HREF="../ognl/OgnlException.html" title="class in ognl">OgnlException</A></PRE>
<DL>
<DD><DL>
<DT><B>Throws:</B><DD><CODE><A HREF="../ognl/OgnlException.html" title="class in ognl">OgnlException</A></CODE></DL>
</DD>
</DL>
<HR>
<A NAME="isConstant(java.lang.Object)"><!-- --></A><H3>
isConstant</H3>
<PRE>
public static boolean <B>isConstant</B>(java.lang.Object tree) throws <A HREF="../ognl/OgnlException.html" title="class in ognl">OgnlException</A></PRE>
<DL>
<DD><DL>
<DT><B>Throws:</B><DD><CODE><A HREF="../ognl/OgnlException.html" title="class in ognl">OgnlException</A></CODE></DL>
</DD>
</DL>
<HR>
<A NAME="isConstant(java.lang.String)"><!-- --></A><H3>
isConstant</H3>
<PRE>
public static boolean <B>isConstant</B>(java.lang.String expression) throws <A HREF="../ognl/OgnlException.html" title="class in ognl">OgnlException</A></PRE>
<DL>
<DD><DL>
<DT><B>Throws:</B><DD><CODE><A HREF="../ognl/OgnlException.html" title="class in ognl">OgnlException</A></CODE></DL>
</DD>
</DL>
<HR>
<A NAME="isSimpleProperty(java.lang.Object, java.util.Map)"><!-- --></A><H3>
isSimpleProperty</H3>
<PRE>
public static boolean <B>isSimpleProperty</B>(java.lang.Object tree, java.util.Map context) throws <A HREF="../ognl/OgnlException.html" title="class in ognl">OgnlException</A></PRE>
<DL>
<DD><DL>
<DT><B>Throws:</B><DD><CODE><A HREF="../ognl/OgnlException.html" title="class in ognl">OgnlException</A></CODE></DL>
</DD>
</DL>
<HR>
<A NAME="isSimpleProperty(java.lang.String, java.util.Map)"><!-- --></A><H3>
isSimpleProperty</H3>
<PRE>
public static boolean <B>isSimpleProperty</B>(java.lang.String expression, java.util.Map context) throws <A HREF="../ognl/OgnlException.html" title="class in ognl">OgnlException</A></PRE>
<DL>
<DD><DL>
<DT><B>Throws:</B><DD><CODE><A HREF="../ognl/OgnlException.html" title="class in ognl">OgnlException</A></CODE></DL>
</DD>
</DL>
<HR>
<A NAME="isSimpleProperty(java.lang.Object)"><!-- --></A><H3>
isSimpleProperty</H3>
<PRE>
public static boolean <B>isSimpleProperty</B>(java.lang.Object tree) throws <A HREF="../ognl/OgnlException.html" title="class in ognl">OgnlException</A></PRE>
<DL>
<DD><DL>
<DT><B>Throws:</B><DD><CODE><A HREF="../ognl/OgnlException.html" title="class in ognl">OgnlException</A></CODE></DL>
</DD>
</DL>
<HR>
<A NAME="isSimpleProperty(java.lang.String)"><!-- --></A><H3>
isSimpleProperty</H3>
<PRE>
public static boolean <B>isSimpleProperty</B>(java.lang.String expression) throws <A HREF="../ognl/OgnlException.html" title="class in ognl">OgnlException</A></PRE>
<DL>
<DD><DL>
<DT><B>Throws:</B><DD><CODE><A HREF="../ognl/OgnlException.html" title="class in ognl">OgnlException</A></CODE></DL>
</DD>
</DL>
<HR>
<A NAME="isSimpleNavigationChain(java.lang.Object, java.util.Map)"><!-- --></A><H3>
isSimpleNavigationChain</H3>
<PRE>
public static boolean <B>isSimpleNavigationChain</B>(java.lang.Object tree, java.util.Map context) throws <A HREF="../ognl/OgnlException.html" title="class in ognl">OgnlException</A></PRE>
<DL>
<DD><DL>
<DT><B>Throws:</B><DD><CODE><A
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -