📄 evaluation.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.4.2_05) on Sat Aug 14 08:12:32 GMT-07:00 2004 -->
<TITLE>
Evaluation (OGNL)
</TITLE>
<META NAME="keywords" CONTENT="ognl.Evaluation class">
<LINK REL ="stylesheet" TYPE="text/css" HREF="../stylesheet.css" TITLE="Style">
<SCRIPT type="text/javascript">
function windowTitle()
{
parent.document.title="Evaluation (OGNL)";
}
</SCRIPT>
</HEAD>
<BODY BGCOLOR="white" onload="windowTitle();">
<!-- ========= START OF TOP NAVBAR ======= -->
<A NAME="navbar_top"><!-- --></A><A HREF="#skip-navbar_top" title="Skip navigation links"></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
<TR>
<TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_top_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
<TR ALIGN="center" VALIGN="top">
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
</TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>
<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../ognl/EnumerationPropertyAccessor.html" title="class in ognl"><B>PREV CLASS</B></A>
<A HREF="../ognl/EvaluationPool.html" title="class in ognl"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../index.html" target="_top"><B>FRAMES</B></A>
<A HREF="Evaluation.html" target="_top"><B>NO FRAMES</B></A>
<SCRIPT type="text/javascript">
<!--
if(window==top) {
document.writeln('<A HREF="../allclasses-noframe.html"><B>All Classes</B></A>');
}
//-->
</SCRIPT>
<NOSCRIPT>
<A HREF="../allclasses-noframe.html"><B>All Classes</B></A>
</NOSCRIPT>
</FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
SUMMARY: NESTED | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_top"></A><!-- ========= END OF TOP NAVBAR ========= -->
<HR>
<!-- ======== START OF CLASS DATA ======== -->
<H2>
<FONT SIZE="-1">
ognl</FONT>
<BR>
Class Evaluation</H2>
<PRE>
java.lang.Object
<IMG SRC="../resources/inherit.gif" ALT="extended by"><B>ognl.Evaluation</B>
</PRE>
<HR>
<DL>
<DT>public class <B>Evaluation</B><DT>extends java.lang.Object</DL>
<P>
An <code>Evaluation</code> is and object that holds a node being evaluated and the source from which that node will take extract its value. It refers to child evaluations that occur as a result of the nodes' evaluation.
<P>
<P>
<HR>
<P>
<!-- ======== NESTED CLASS SUMMARY ======== -->
<!-- =========== FIELD SUMMARY =========== -->
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
<A NAME="constructor_summary"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TD COLSPAN=2><FONT SIZE="+2">
<B>Constructor Summary</B></FONT></TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../ognl/Evaluation.html#Evaluation(ognl.SimpleNode, java.lang.Object)">Evaluation</A></B>(<A HREF="../ognl/SimpleNode.html" title="class in ognl">SimpleNode</A> node, java.lang.Object source)</CODE>
<BR>
Constructs a new "get" <code>Evaluation</code> from the node and source given.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../ognl/Evaluation.html#Evaluation(ognl.SimpleNode, java.lang.Object, boolean)">Evaluation</A></B>(<A HREF="../ognl/SimpleNode.html" title="class in ognl">SimpleNode</A> node, java.lang.Object source, boolean setOperation)</CODE>
<BR>
Constructs a new <code>Evaluation</code> from the node and source given.</TD>
</TR>
</TABLE>
<!-- ========== METHOD SUMMARY =========== -->
<A NAME="method_summary"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TD COLSPAN=2><FONT SIZE="+2">
<B>Method Summary</B></FONT></TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../ognl/Evaluation.html#addChild(ognl.Evaluation)">addChild</A></B>(<A HREF="../ognl/Evaluation.html" title="class in ognl">Evaluation</A> child)</CODE>
<BR>
Adds a child to the list of children of this evaluation.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> java.lang.Throwable</CODE></FONT></TD>
<TD><CODE><B><A HREF="../ognl/Evaluation.html#getException()">getException</A></B>()</CODE>
<BR>
Returns the exception that occurred as a result of evaluating the Evaluation, or null if no exception occurred.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> <A HREF="../ognl/Evaluation.html" title="class in ognl">Evaluation</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../ognl/Evaluation.html#getFirstChild()">getFirstChild</A></B>()</CODE>
<BR>
Returns the first child of this evaluation.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> <A HREF="../ognl/Evaluation.html" title="class in ognl">Evaluation</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../ognl/Evaluation.html#getFirstDescendant()">getFirstDescendant</A></B>()</CODE>
<BR>
Gets the first descendent.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> <A HREF="../ognl/Evaluation.html" title="class in ognl">Evaluation</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../ognl/Evaluation.html#getLastChild()">getLastChild</A></B>()</CODE>
<BR>
Returns the last child of this evaluation.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> <A HREF="../ognl/Evaluation.html" title="class in ognl">Evaluation</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../ognl/Evaluation.html#getLastDescendant()">getLastDescendant</A></B>()</CODE>
<BR>
Gets the last descendent.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> <A HREF="../ognl/Evaluation.html" title="class in ognl">Evaluation</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../ognl/Evaluation.html#getNext()">getNext</A></B>()</CODE>
<BR>
Returns the next sibling of this evaluation.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> <A HREF="../ognl/SimpleNode.html" title="class in ognl">SimpleNode</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../ognl/Evaluation.html#getNode()">getNode</A></B>()</CODE>
<BR>
Returns the <code>SimpleNode</code> for this <code>Evaluation</code></TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> <A HREF="../ognl/Evaluation.html" title="class in ognl">Evaluation</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../ognl/Evaluation.html#getParent()">getParent</A></B>()</CODE>
<BR>
Returns the parent evaluation of this evaluation.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> <A HREF="../ognl/Evaluation.html" title="class in ognl">Evaluation</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../ognl/Evaluation.html#getPrevious()">getPrevious</A></B>()</CODE>
<BR>
Returns the previous sibling of this evaluation.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> java.lang.Object</CODE></FONT></TD>
<TD><CODE><B><A HREF="../ognl/Evaluation.html#getResult()">getResult</A></B>()</CODE>
<BR>
Returns the result of the Evaluation, or null if it was a set operation.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> java.lang.Object</CODE></FONT></TD>
<TD><CODE><B><A HREF="../ognl/Evaluation.html#getSource()">getSource</A></B>()</CODE>
<BR>
Returns the source object on which this Evaluation operated.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../ognl/Evaluation.html#init(ognl.SimpleNode, java.lang.Object, boolean)">init</A></B>(<A HREF="../ognl/SimpleNode.html" title="class in ognl">SimpleNode</A> node, java.lang.Object source, boolean setOperation)</CODE>
<BR>
Reinitializes this Evaluation to the parameters specified.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../ognl/Evaluation.html#isSetOperation()">isSetOperation</A></B>()</CODE>
<BR>
Returns true if this Evaluation represents a set operation.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../ognl/Evaluation.html#reset()">reset</A></B>()</CODE>
<BR>
Resets this Evaluation to the initial state.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../ognl/Evaluation.html#setException(java.lang.Throwable)">setException</A></B>(java.lang.Throwable value)</CODE>
<BR>
Sets the exception that occurred as a result of evaluating the Evaluation.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../ognl/Evaluation.html#setNode(ognl.SimpleNode)">setNode</A></B>(<A HREF="../ognl/SimpleNode.html" title="class in ognl">SimpleNode</A> value)</CODE>
<BR>
Sets the node of the evaluation.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../ognl/Evaluation.html#setResult(java.lang.Object)">setResult</A></B>(java.lang.Object value)</CODE>
<BR>
Sets the result of the Evaluation.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../ognl/Evaluation.html#setSetOperation(boolean)">setSetOperation</A></B>(boolean value)</CODE>
<BR>
Marks the Evaluation as a set operation if the value is true, else marks it as a get operation.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../ognl/Evaluation.html#setSource(java.lang.Object)">setSource</A></B>(java.lang.Object value)</CODE>
<BR>
Sets the source of the evaluation.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> java.lang.String</CODE></FONT></TD>
<TD><CODE><B><A HREF="../ognl/Evaluation.html#toString()">toString</A></B>()</CODE>
<BR>
Returns a String description of the Evaluation.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> java.lang.String</CODE></FONT></TD>
<TD><CODE><B><A HREF="../ognl/Evaluation.html#toString(boolean, boolean, java.lang.String)">toString</A></B>(boolean compact, boolean showChildren, java.lang.String depth)</CODE>
<BR>
Produces a String value for the Evaluation.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> java.lang.String</CODE></FONT></TD>
<TD><CODE><B><A HREF="../ognl/Evaluation.html#toString(boolean, java.lang.String)">toString</A></B>(boolean compact, java.lang.String depth)</CODE>
<BR>
Produces a String value for the Evaluation.</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, wait, wait, wait</CODE></TD>
</TR>
</TABLE>
<P>
<!-- ============ FIELD DETAIL =========== -->
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<A NAME="constructor_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TD COLSPAN=1><FONT SIZE="+2">
<B>Constructor Detail</B></FONT></TD>
</TR>
</TABLE>
<A NAME="Evaluation(ognl.SimpleNode, java.lang.Object)"><!-- --></A><H3>
Evaluation</H3>
<PRE>
public <B>Evaluation</B>(<A HREF="../ognl/SimpleNode.html" title="class in ognl">SimpleNode</A> node, java.lang.Object source)</PRE>
<DL>
<DD>Constructs a new "get" <code>Evaluation</code> from the node and source given.
<P>
</DL>
<HR>
<A NAME="Evaluation(ognl.SimpleNode, java.lang.Object, boolean)"><!-- --></A><H3>
Evaluation</H3>
<PRE>
public <B>Evaluation</B>(<A HREF="../ognl/SimpleNode.html" title="class in ognl">SimpleNode</A> node, java.lang.Object source, boolean setOperation)</PRE>
<DL>
<DD>Constructs a new <code>Evaluation</code> from the node and source given. If <code>setOperation</code> is true this <code>Evaluation</code> represents a "set" as opposed to a "get".
<P>
</DL>
<!-- ============ 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>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -