📄 termcall.html
字号:
<A NAME="field_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"><B>Field Detail</B></FONT></TH></TR></TABLE><A NAME="args"><!-- --></A><H3>args</H3><PRE>private <A HREF="../JSHOP2/List.html" title="class in JSHOP2">List</A> <B>args</B></PRE><DL><DD>The list that represents the arguments of the call term. Using LISP terminology, this is equal to <code>(CDR ct)</code> where <code>ct</code> is this call term.<P><DL></DL></DL><HR><A NAME="calculate"><!-- --></A><H3>calculate</H3><PRE>private <A HREF="../JSHOP2/Calculate.html" title="interface in JSHOP2">Calculate</A> <B>calculate</B></PRE><DL><DD>The Java implementation of the function that is called in this call term.<P><DL></DL></DL><HR><A NAME="func"><!-- --></A><H3>func</H3><PRE>private java.lang.String <B>func</B></PRE><DL><DD>The name of the function that is called in this call term as a <code>String</code>.<P><DL></DL></DL><!-- ========= CONSTRUCTOR DETAIL ======== --><A NAME="constructor_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"><B>Constructor Detail</B></FONT></TH></TR></TABLE><A NAME="TermCall(JSHOP2.List, java.lang.String)"><!-- --></A><H3>TermCall</H3><PRE>public <B>TermCall</B>(<A HREF="../JSHOP2/List.html" title="class in JSHOP2">List</A> argsIn, java.lang.String funcIn)</PRE><DL><DD>To initialize this call term. This constructor is used at compile time.<P><DL><DT><B>Parameters:</B><DD><CODE>argsIn</CODE> - the argument list.<DD><CODE>funcIn</CODE> - the name of the function to be applied.</DL></DL><HR><A NAME="TermCall(JSHOP2.List, JSHOP2.Calculate, java.lang.String)"><!-- --></A><H3>TermCall</H3><PRE>public <B>TermCall</B>(<A HREF="../JSHOP2/List.html" title="class in JSHOP2">List</A> argsIn, <A HREF="../JSHOP2/Calculate.html" title="interface in JSHOP2">Calculate</A> calculateIn, java.lang.String funcIn)</PRE><DL><DD>To initialize this call term. This constructor is used at run time.<P><DL><DT><B>Parameters:</B><DD><CODE>argsIn</CODE> - the argument list.<DD><CODE>calculateIn</CODE> - the Java implementation of the function to be applied.<DD><CODE>funcIn</CODE> - the name of the function to be applied.</DL></DL><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"><B>Method Detail</B></FONT></TH></TR></TABLE><A NAME="bind(JSHOP2.Term[])"><!-- --></A><H3>bind</H3><PRE>public <A HREF="../JSHOP2/Term.html" title="class in JSHOP2">Term</A> <B>bind</B>(<A HREF="../JSHOP2/Term.html" title="class in JSHOP2">Term</A>[] binding)</PRE><DL><DD>To apply a given binding to the list of arguments of the function call.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../JSHOP2/Term.html#bind(JSHOP2.Term[])">bind</A></CODE> in class <CODE><A HREF="../JSHOP2/Term.html" title="class in JSHOP2">Term</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>binding</CODE> - an array of terms, indexed by the integers associated with variable symbols.<DT><B>Returns:</B><DD>the result of binding.</DL></DD></DL><HR><A NAME="equals(JSHOP2.Term)"><!-- --></A><H3>equals</H3><PRE>public boolean <B>equals</B>(<A HREF="../JSHOP2/Term.html" title="class in JSHOP2">Term</A> t)</PRE><DL><DD>Whether or not another term is equivalent to the result of this call term.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../JSHOP2/Term.html#equals(JSHOP2.Term)">equals</A></CODE> in class <CODE><A HREF="../JSHOP2/Term.html" title="class in JSHOP2">Term</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>t</CODE> - the term being compared to this term.<DT><B>Returns:</B><DD><code>true</code> if the two terms are equal, <code>false</code> otherwise.</DL></DD></DL><HR><A NAME="findUnifier(JSHOP2.Term, JSHOP2.Term[])"><!-- --></A><H3>findUnifier</H3><PRE>public boolean <B>findUnifier</B>(<A HREF="../JSHOP2/Term.html" title="class in JSHOP2">Term</A> t, <A HREF="../JSHOP2/Term.html" title="class in JSHOP2">Term</A>[] binding)</PRE><DL><DD>Find a unifier between the result of this call term and another given term.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../JSHOP2/Term.html#findUnifier(JSHOP2.Term, JSHOP2.Term[])">findUnifier</A></CODE> in class <CODE><A HREF="../JSHOP2/Term.html" title="class in JSHOP2">Term</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>t</CODE> - the term with which we are finding a unifier.<DD><CODE>binding</CODE> - the unifier to be returned.<DT><B>Returns:</B><DD><code>false</code> if the two terms can not be unified, <code>true</code> otherwise.</DL></DD></DL><HR><A NAME="isGround()"><!-- --></A><H3>isGround</H3><PRE>public boolean <B>isGround</B>()</PRE><DL><DD>Check the argument list of this call term for variables.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../JSHOP2/Term.html#isGround()">isGround</A></CODE> in class <CODE><A HREF="../JSHOP2/Term.html" title="class in JSHOP2">Term</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD><code>true</code> if this term is ground, <code>false</code> otherwise.</DL></DD></DL><HR><A NAME="toCode()"><!-- --></A><H3>toCode</H3><PRE>public java.lang.String <B>toCode</B>()</PRE><DL><DD>This function produces Java code to create this call term.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../JSHOP2/CompileTimeObject.html#toCode()">toCode</A></CODE> in class <CODE><A HREF="../JSHOP2/CompileTimeObject.html" title="class in JSHOP2">CompileTimeObject</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>the produced code as a <code>String</code>.</DL></DD></DL><HR><A NAME="toString()"><!-- --></A><H3>toString</H3><PRE>public java.lang.String <B>toString</B>()</PRE><DL><DD>This function is used to print this call term.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../JSHOP2/Term.html#toString()">toString</A></CODE> in class <CODE><A HREF="../JSHOP2/Term.html" title="class in JSHOP2">Term</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>the printable <code>String</code> that shows the value of this term.</DL></DD></DL><!-- ========= END OF CLASS DATA ========= --><HR><!-- ======= START OF BOTTOM NAVBAR ====== --><A NAME="navbar_bottom"><!-- --></A><A HREF="#skip-navbar_bottom" title="Skip navigation links"></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""><TR><TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_bottom_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../JSHOP2/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="../JSHOP2/Term.html" title="class in JSHOP2"><B>PREV CLASS</B></A> <A HREF="../JSHOP2/TermConstant.html" title="class in JSHOP2"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../index.html?JSHOP2/TermCall.html" target="_top"><B>FRAMES</B></A> <A HREF="TermCall.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 | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><A NAME="skip-navbar_bottom"></A><!-- ======== END OF BOTTOM NAVBAR ======= --><HR></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -