📄 ognl.html
字号:
<A HREF="../ognl/MemberAccess.html" title="interface in ognl">MemberAccess</A> memberAccess)</CODE>
<BR>
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../ognl/Ognl.html#setRoot(java.util.Map, java.lang.Object)">setRoot</A></B>(java.util.Map context, java.lang.Object root)</CODE>
<BR>
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../ognl/Ognl.html#setTypeConverter(java.util.Map, ognl.TypeConverter)">setTypeConverter</A></B>(java.util.Map context, <A HREF="../ognl/TypeConverter.html" title="interface in ognl">TypeConverter</A> converter)</CODE>
<BR>
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../ognl/Ognl.html#setValue(java.lang.Object, java.util.Map, java.lang.Object, java.lang.Object)">setValue</A></B>(java.lang.Object tree, java.util.Map context, java.lang.Object root, java.lang.Object value)</CODE>
<BR>
Evaluates the given OGNL expression tree to insert a value into the object graph rooted at the given root object.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../ognl/Ognl.html#setValue(java.lang.Object, java.lang.Object, java.lang.Object)">setValue</A></B>(java.lang.Object tree, java.lang.Object root, java.lang.Object value)</CODE>
<BR>
Evaluates the given OGNL expression tree to insert a value into the object graph rooted at the given root object.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../ognl/Ognl.html#setValue(java.lang.String, java.util.Map, java.lang.Object, java.lang.Object)">setValue</A></B>(java.lang.String expression, java.util.Map context, java.lang.Object root, java.lang.Object value)</CODE>
<BR>
Evaluates the given OGNL expression to insert a value into the object graph rooted at the given root object given the context.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../ognl/Ognl.html#setValue(java.lang.String, java.lang.Object, java.lang.Object)">setValue</A></B>(java.lang.String expression, java.lang.Object root, java.lang.Object value)</CODE>
<BR>
Convenience method that combines calls to <code> parseExpression </code> and <code> setValue</code>.</TD>
</TR>
</TABLE>
<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TD><B>Methods inherited from class java.lang.Object</B></TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD>
</TR>
</TABLE>
<P>
<!-- ============ FIELD DETAIL =========== -->
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<!-- ============ METHOD DETAIL ========== -->
<A NAME="method_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TD COLSPAN=1><FONT SIZE="+2">
<B>Method Detail</B></FONT></TD>
</TR>
</TABLE>
<A NAME="parseExpression(java.lang.String)"><!-- --></A><H3>
parseExpression</H3>
<PRE>
public static java.lang.Object <B>parseExpression</B>(java.lang.String expression) throws <A HREF="../ognl/OgnlException.html" title="class in ognl">OgnlException</A></PRE>
<DL>
<DD>Parses the given OGNL expression and returns a tree representation of the expression that can be used by <CODE>Ognl</CODE> static methods.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>expression</CODE> - the OGNL expression to be parsed<DT><B>Returns:</B><DD>a tree representation of 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/OgnlException.html" title="class in ognl">OgnlException</A></CODE> - if there is a pathological environmental problem</DL>
</DD>
</DL>
<HR>
<A NAME="createDefaultContext(java.lang.Object)"><!-- --></A><H3>
createDefaultContext</H3>
<PRE>
public static java.util.Map <B>createDefaultContext</B>(java.lang.Object root)</PRE>
<DL>
<DD>Creates and returns a new standard naming context for evaluating an OGNL expression.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>root</CODE> - the root of the object graph<DT><B>Returns:</B><DD>a new Map with the keys <CODE>root</CODE> and <CODE>context</CODE> set appropriately</DL>
</DD>
</DL>
<HR>
<A NAME="createDefaultContext(java.lang.Object, ognl.ClassResolver)"><!-- --></A><H3>
createDefaultContext</H3>
<PRE>
public static java.util.Map <B>createDefaultContext</B>(java.lang.Object root, <A HREF="../ognl/ClassResolver.html" title="interface in ognl">ClassResolver</A> classResolver)</PRE>
<DL>
<DD>Creates and returns a new standard naming context for evaluating an OGNL expression.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>root</CODE> - the root of the object graph<DT><B>Returns:</B><DD>a new OgnlContext with the keys <CODE>root</CODE> and <CODE>context</CODE> set appropriately</DL>
</DD>
</DL>
<HR>
<A NAME="createDefaultContext(java.lang.Object, ognl.ClassResolver, ognl.TypeConverter)"><!-- --></A><H3>
createDefaultContext</H3>
<PRE>
public static java.util.Map <B>createDefaultContext</B>(java.lang.Object root, <A HREF="../ognl/ClassResolver.html" title="interface in ognl">ClassResolver</A> classResolver, <A HREF="../ognl/TypeConverter.html" title="interface in ognl">TypeConverter</A> converter)</PRE>
<DL>
<DD>Creates and returns a new standard naming context for evaluating an OGNL expression.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>root</CODE> - the root of the object graph<DT><B>Returns:</B><DD>a new Map with the keys <CODE>root</CODE> and <CODE>context</CODE> set appropriately</DL>
</DD>
</DL>
<HR>
<A NAME="createDefaultContext(java.lang.Object, ognl.ClassResolver, ognl.TypeConverter, ognl.MemberAccess)"><!-- --></A><H3>
createDefaultContext</H3>
<PRE>
public static java.util.Map <B>createDefaultContext</B>(java.lang.Object root, <A HREF="../ognl/ClassResolver.html" title="interface in ognl">ClassResolver</A> classResolver, <A HREF="../ognl/TypeConverter.html" title="interface in ognl">TypeConverter</A> converter, <A HREF="../ognl/MemberAccess.html" title="interface in ognl">MemberAccess</A> memberAccess)</PRE>
<DL>
<DD>Creates and returns a new standard naming context for evaluating an OGNL expression.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>root</CODE> - the root of the object graph<DT><B>Returns:</B><DD>a new Map with the keys <CODE>root</CODE> and <CODE>context</CODE> set appropriately</DL>
</DD>
</DL>
<HR>
<A NAME="addDefaultContext(java.lang.Object, java.util.Map)"><!-- --></A><H3>
addDefaultContext</H3>
<PRE>
public static java.util.Map <B>addDefaultContext</B>(java.lang.Object root, java.util.Map context)</PRE>
<DL>
<DD>Appends the standard naming context for evaluating an OGNL expression into the context given so that cached maps can be used as a context.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>root</CODE> - the root of the object graph<DD><CODE>context</CODE> - the context to which OGNL context will be added.<DT><B>Returns:</B><DD>Context Map with the keys <CODE>root</CODE> and <CODE>context</CODE> set appropriately</DL>
</DD>
</DL>
<HR>
<A NAME="addDefaultContext(java.lang.Object, ognl.ClassResolver, java.util.Map)"><!-- --></A><H3>
addDefaultContext</H3>
<PRE>
public static java.util.Map <B>addDefaultContext</B>(java.lang.Object root, <A HREF="../ognl/ClassResolver.html" title="interface in ognl">ClassResolver</A> classResolver, java.util.Map context)</PRE>
<DL>
<DD>Appends the standard naming context for evaluating an OGNL expression into the context given so that cached maps can be used as a context.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>root</CODE> - the root of the object graph<DD><CODE>context</CODE> - the context to which OGNL context will be added.<DT><B>Returns:</B><DD>Context Map with the keys <CODE>root</CODE> and <CODE>context</CODE> set appropriately</DL>
</DD>
</DL>
<HR>
<A NAME="addDefaultContext(java.lang.Object, ognl.ClassResolver, ognl.TypeConverter, java.util.Map)"><!-- --></A><H3>
addDefaultContext</H3>
<PRE>
public static java.util.Map <B>addDefaultContext</B>(java.lang.Object root, <A HREF="../ognl/ClassResolver.html" title="interface in ognl">ClassResolver</A> classResolver, <A HREF="../ognl/TypeConverter.html" title="interface in ognl">TypeConverter</A> converter, java.util.Map context)</PRE>
<DL>
<DD>Appends the standard naming context for evaluating an OGNL expression into the context given so that cached maps can be used as a context.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>root</CODE> - the root of the object graph<DD><CODE>context</CODE> - the context to which OGNL context will be added.<DT><B>Returns:</B><DD>Context Map with the keys <CODE>root</CODE> and <CODE>context</CODE> set appropriately</DL>
</DD>
</DL>
<HR>
<A NAME="addDefaultContext(java.lang.Object, ognl.ClassResolver, ognl.TypeConverter, ognl.MemberAccess, java.util.Map)"><!-- --></A><H3>
addDefaultContext</H3>
<PRE>
public static java.util.Map <B>addDefaultContext</B>(java.lang.Object root, <A HREF="../ognl/ClassResolver.html" title="interface in ognl">ClassResolver</A> classResolver, <A HREF="../ognl/TypeConverter.html" title="interface in ognl">TypeConverter</A> converter, <A HREF="../ognl/MemberAccess.html" title="interface in ognl">MemberAccess</A> memberAccess, java.util.Map context)</PRE>
<DL>
<DD>Appends the standard naming context for evaluating an OGNL expression into the context given so that cached maps can be used as a context.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>root</CODE> - the root of the object graph<DD><CODE>context</CODE> - the context to which OGNL context will be added.<DT><B>Returns:</B><DD>Context Map with the keys <CODE>root</CODE> and <CODE>context</CODE> set appropriately</DL>
</DD>
</DL>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -