?? jython.html
字號:
<HR><A NAME="CLASS_PYTHONOBJECTINPUTSTREAM"><!-- --></A><H3>CLASS_PYTHONOBJECTINPUTSTREAM</H3><PRE>public static final java.lang.String <B>CLASS_PYTHONOBJECTINPUTSTREAM</B></PRE><DL><DD>the classname of the Python ObjectInputStream<P><DL><DT><B>See Also:</B><DD><A HREF="../../constant-values.html#weka.core.Jython.CLASS_PYTHONOBJECTINPUTSTREAM">Constant Field Values</A></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="Jython()"><!-- --></A><H3>Jython</H3><PRE>public <B>Jython</B>()</PRE><DL><DD>default constructor, tries to instantiate a Python Interpreter<P></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="getInterpreter()"><!-- --></A><H3>getInterpreter</H3><PRE>public java.lang.Object <B>getInterpreter</B>()</PRE><DL><DD>returns the currently used Python Interpreter<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the interpreter, can be null</DL></DD></DL><HR><A NAME="invoke(java.lang.String, java.lang.Class[], java.lang.Object[])"><!-- --></A><H3>invoke</H3><PRE>public java.lang.Object <B>invoke</B>(java.lang.String methodName, java.lang.Class[] paramClasses, java.lang.Object[] paramValues)</PRE><DL><DD>executes the specified method on the current interpreter and returns the result, if any<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>o</CODE> - the object the method should be called from, e.g., a Python Interpreter<DD><CODE>methodName</CODE> - the name of the method<DD><CODE>paramClasses</CODE> - the classes of the parameters<DD><CODE>paramValues</CODE> - the values of the parameters<DT><B>Returns:</B><DD>the return value of the method, if any (in that case null)</DL></DD></DL><HR><A NAME="isPresent()"><!-- --></A><H3>isPresent</H3><PRE>public static boolean <B>isPresent</B>()</PRE><DL><DD>returns whether the Jython classes are present or not, i.e. whether the classes are in the classpath or not<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>whether the Jython classes are available</DL></DD></DL><HR><A NAME="newInterpreter()"><!-- --></A><H3>newInterpreter</H3><PRE>public static java.lang.Object <B>newInterpreter</B>()</PRE><DL><DD>initializes and returns a Python Interpreter<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the interpreter or null if Jython classes not present</DL></DD></DL><HR><A NAME="newInstance(java.io.File, java.lang.Class)"><!-- --></A><H3>newInstance</H3><PRE>public static java.lang.Object <B>newInstance</B>(java.io.File file, java.lang.Class template)</PRE><DL><DD>loads the module and returns a new instance of it as instance of the provided Java class template.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>filename</CODE> - the path to the Jython module, incl. filename<DD><CODE>template</CODE> - the template for the returned Java object<DT><B>Returns:</B><DD>the Jython object</DL></DD></DL><HR><A NAME="newInstance(java.io.File, java.lang.Class, java.io.File[])"><!-- --></A><H3>newInstance</H3><PRE>public static java.lang.Object <B>newInstance</B>(java.io.File file, java.lang.Class template, java.io.File[] paths)</PRE><DL><DD>loads the module and returns a new instance of it as instance of the provided Java class template. The paths are added to 'sys.path' - can be used if the module depends on other Jython modules.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>filename</CODE> - the path to the Jython module, incl. filename<DD><CODE>template</CODE> - the template for the returned Java object<DD><CODE>paths</CODE> - additional paths to add to "sys.path"<DT><B>Returns:</B><DD>the Jython object</DL></DD></DL><HR><A NAME="invoke(java.lang.Object, java.lang.String, java.lang.Class[], java.lang.Object[])"><!-- --></A><H3>invoke</H3><PRE>public static java.lang.Object <B>invoke</B>(java.lang.Object o, java.lang.String methodName, java.lang.Class[] paramClasses, java.lang.Object[] paramValues)</PRE><DL><DD>executes the specified method and returns the result, if any<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>o</CODE> - the object the method should be called from, e.g., a Python Interpreter<DD><CODE>methodName</CODE> - the name of the method<DD><CODE>paramClasses</CODE> - the classes of the parameters<DD><CODE>paramValues</CODE> - the values of the parameters<DT><B>Returns:</B><DD>the return value of the method, if any (in that case null)</DL></DD></DL><HR><A NAME="deserialize(java.io.InputStream)"><!-- --></A><H3>deserialize</H3><PRE>public static java.lang.Object <B>deserialize</B>(java.io.InputStream in)</PRE><DL><DD>deserializes the Python Object from the stream<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>in</CODE> - the stream to use<DT><B>Returns:</B><DD>the deserialized object</DL></DD></DL><HR><A NAME="getRevision()"><!-- --></A><H3>getRevision</H3><PRE>public java.lang.String <B>getRevision</B>()</PRE><DL><DD>Returns the revision string.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../weka/core/RevisionHandler.html#getRevision()">getRevision</A></CODE> in interface <CODE><A HREF="../../weka/core/RevisionHandler.html" title="interface in weka.core">RevisionHandler</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>the revision</DL></DD></DL><HR><A NAME="main(java.lang.String[])"><!-- --></A><H3>main</H3><PRE>public static void <B>main</B>(java.lang.String[] args)</PRE><DL><DD>If no arguments are given, it just prints the presence of the Jython classes, otherwise it expects a Jython filename to execute.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>args</CODE> - commandline arguments</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="../../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> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="http://www.cs.waikato.ac.nz/ml/weka/" target="_blank"><FONT CLASS="NavBarFont1"><B>Weka's home</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="../../weka/core/Javadoc.html" title="class in weka.core"><B>PREV CLASS</B></A> <A HREF="../../weka/core/JythonObject.html" title="interface in weka.core"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../index.html?weka/core/Jython.html" target="_top"><B>FRAMES</B></A> <A HREF="Jython.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 + -