📄 ognl.html
字号:
<HR>
<A NAME="setClassResolver(java.util.Map, ognl.ClassResolver)"><!-- --></A><H3>
setClassResolver</H3>
<PRE>
public static void <B>setClassResolver</B>(java.util.Map context, <A HREF="../ognl/ClassResolver.html" title="interface in ognl">ClassResolver</A> classResolver)</PRE>
<DL>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="getClassResolver(java.util.Map)"><!-- --></A><H3>
getClassResolver</H3>
<PRE>
public static <A HREF="../ognl/ClassResolver.html" title="interface in ognl">ClassResolver</A> <B>getClassResolver</B>(java.util.Map context)</PRE>
<DL>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="setTypeConverter(java.util.Map, ognl.TypeConverter)"><!-- --></A><H3>
setTypeConverter</H3>
<PRE>
public static void <B>setTypeConverter</B>(java.util.Map context, <A HREF="../ognl/TypeConverter.html" title="interface in ognl">TypeConverter</A> converter)</PRE>
<DL>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="getTypeConverter(java.util.Map)"><!-- --></A><H3>
getTypeConverter</H3>
<PRE>
public static <A HREF="../ognl/TypeConverter.html" title="interface in ognl">TypeConverter</A> <B>getTypeConverter</B>(java.util.Map context)</PRE>
<DL>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="setMemberAccess(java.util.Map, ognl.MemberAccess)"><!-- --></A><H3>
setMemberAccess</H3>
<PRE>
public static void <B>setMemberAccess</B>(java.util.Map context, <A HREF="../ognl/MemberAccess.html" title="interface in ognl">MemberAccess</A> memberAccess)</PRE>
<DL>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="getMemberAccess(java.util.Map)"><!-- --></A><H3>
getMemberAccess</H3>
<PRE>
public static <A HREF="../ognl/MemberAccess.html" title="interface in ognl">MemberAccess</A> <B>getMemberAccess</B>(java.util.Map context)</PRE>
<DL>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="setRoot(java.util.Map, java.lang.Object)"><!-- --></A><H3>
setRoot</H3>
<PRE>
public static void <B>setRoot</B>(java.util.Map context, java.lang.Object root)</PRE>
<DL>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="getRoot(java.util.Map)"><!-- --></A><H3>
getRoot</H3>
<PRE>
public static java.lang.Object <B>getRoot</B>(java.util.Map context)</PRE>
<DL>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="getLastEvaluation(java.util.Map)"><!-- --></A><H3>
getLastEvaluation</H3>
<PRE>
public static <A HREF="../ognl/Evaluation.html" title="class in ognl">Evaluation</A> <B>getLastEvaluation</B>(java.util.Map context)</PRE>
<DL>
<DD><DL>
</DL>
</DD>
</DL>
<HR>
<A NAME="getValue(java.lang.Object, java.util.Map, java.lang.Object)"><!-- --></A><H3>
getValue</H3>
<PRE>
public static java.lang.Object <B>getValue</B>(java.lang.Object tree, java.util.Map context, java.lang.Object root) throws <A HREF="../ognl/OgnlException.html" title="class in ognl">OgnlException</A></PRE>
<DL>
<DD>Evaluates the given OGNL expression tree to extract a value from 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<DT><B>Returns:</B><DD>the result of evaluating the expression<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="getValue(java.lang.Object, java.util.Map, java.lang.Object, java.lang.Class)"><!-- --></A><H3>
getValue</H3>
<PRE>
public static java.lang.Object <B>getValue</B>(java.lang.Object tree, java.util.Map context, java.lang.Object root, java.lang.Class resultType) throws <A HREF="../ognl/OgnlException.html" title="class in ognl">OgnlException</A></PRE>
<DL>
<DD>Evaluates the given OGNL expression tree to extract a value from 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>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/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="getValue(java.lang.String, java.util.Map, java.lang.Object)"><!-- --></A><H3>
getValue</H3>
<PRE>
public static java.lang.Object <B>getValue</B>(java.lang.String expression, java.util.Map context, java.lang.Object root) throws <A HREF="../ognl/OgnlException.html" title="class in ognl">OgnlException</A></PRE>
<DL>
<DD>Evaluates the given OGNL expression to extract a value from the given root object in a given context
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>expression</CODE> - the OGNL expression to be parsed<DD><CODE>context</CODE> - the naming context for the evaluation<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/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.util.Map, java.lang.Object, java.lang.Class)"><!-- --></A><H3>
getValue</H3>
<PRE>
public static java.lang.Object <B>getValue</B>(java.lang.String expression, java.util.Map context, java.lang.Object root, java.lang.Class resultType) throws <A HREF="../ognl/OgnlException.html" title="class in ognl">OgnlException</A></PRE>
<DL>
<DD>Evaluates the given OGNL expression to extract a value from the given root object in a given context
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>expression</CODE> - the OGNL expression to be parsed<DD><CODE>context</CODE> - the naming context for the evaluation<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/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.Object, java.lang.Object)"><!-- --></A><H3>
getValue</H3>
<PRE>
public static java.lang.Object <B>getValue</B>(java.lang.Object tree, java.lang.Object root) throws <A HREF="../ognl/OgnlException.html" title="class in ognl">OgnlException</A></PRE>
<DL>
<DD>Evaluates the given OGNL expression tree to extract a value from 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<DT><B>Returns:</B><DD>the result of evaluating the expression<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="getValue(java.lang.Object, java.lang.Object, java.lang.Class)"><!-- --></A><H3>
getValue</H3>
<PRE>
public static java.lang.Object <B>getValue</B>(java.lang.Object tree, java.lang.Object root, java.lang.Class resultType) throws <A HREF="../ognl/OgnlException.html" title="class in ognl">OgnlException</A></PRE>
<DL>
<DD>Evaluates the given OGNL expression tree to extract a value from 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>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/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="getValue(java.lang.String, java.lang.Object)"><!-- --></A><H3>
getValue</H3>
<PRE>
public static java.lang.Object <B>getValue</B>(java.lang.String expression, java.lang.Object root) 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>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -