parser.html

来自「数据挖掘的最常用工具。由于开源」· HTML 代码 · 共 716 行 · 第 1/3 页

HTML
716
字号
         int&nbsp;index)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns either a String object for nominal attributes or a Double for numeric ones.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../weka/filters/unsupervised/instance/subsetbyexpression/Parser.html#main(java.lang.String[])">main</A></B>(java.lang.String[]&nbsp;args)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Runs the parser from commandline.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;short[][]</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../weka/filters/unsupervised/instance/subsetbyexpression/Parser.html#production_table()">production_table</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Access to production table.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;short[][]</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../weka/filters/unsupervised/instance/subsetbyexpression/Parser.html#reduce_table()">reduce_table</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Access to <code>reduce_goto</code> table.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../weka/filters/unsupervised/instance/subsetbyexpression/Parser.html#setAttributeTypes(java.util.Hashtable)">setAttributeTypes</A></B>(java.util.Hashtable&nbsp;value)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the attribute - attribute-type relation to use.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../weka/filters/unsupervised/instance/subsetbyexpression/Parser.html#setResult(java.lang.Boolean)">setResult</A></B>(java.lang.Boolean&nbsp;value)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the result of the evaluation.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../weka/filters/unsupervised/instance/subsetbyexpression/Parser.html#setSymbols(java.util.HashMap)">setSymbols</A></B>(java.util.HashMap&nbsp;value)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the variable - value relation to use.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../weka/filters/unsupervised/instance/subsetbyexpression/Parser.html#start_production()">start_production</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Indicates start production.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../weka/filters/unsupervised/instance/subsetbyexpression/Parser.html#start_state()">start_state</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Indicates start state.</TD></TR></TABLE>&nbsp;<A NAME="methods_inherited_from_class_weka.core.parser.java_cup.runtime.lr_parser"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TH ALIGN="left"><B>Methods inherited from class weka.core.parser.java_cup.runtime.<A HREF="../../../../../weka/core/parser/java_cup/runtime/lr_parser.html" title="class in weka.core.parser.java_cup.runtime">lr_parser</A></B></TH></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../../../weka/core/parser/java_cup/runtime/lr_parser.html#debug_message(java.lang.String)">debug_message</A>, <A HREF="../../../../../weka/core/parser/java_cup/runtime/lr_parser.html#debug_parse()">debug_parse</A>, <A HREF="../../../../../weka/core/parser/java_cup/runtime/lr_parser.html#debug_reduce(int, int, int)">debug_reduce</A>, <A HREF="../../../../../weka/core/parser/java_cup/runtime/lr_parser.html#debug_shift(weka.core.parser.java_cup.runtime.Symbol)">debug_shift</A>, <A HREF="../../../../../weka/core/parser/java_cup/runtime/lr_parser.html#debug_stack()">debug_stack</A>, <A HREF="../../../../../weka/core/parser/java_cup/runtime/lr_parser.html#done_parsing()">done_parsing</A>, <A HREF="../../../../../weka/core/parser/java_cup/runtime/lr_parser.html#dump_stack()">dump_stack</A>, <A HREF="../../../../../weka/core/parser/java_cup/runtime/lr_parser.html#getScanner()">getScanner</A>, <A HREF="../../../../../weka/core/parser/java_cup/runtime/lr_parser.html#getSymbolFactory()">getSymbolFactory</A>, <A HREF="../../../../../weka/core/parser/java_cup/runtime/lr_parser.html#parse()">parse</A>, <A HREF="../../../../../weka/core/parser/java_cup/runtime/lr_parser.html#report_error(java.lang.String, java.lang.Object)">report_error</A>, <A HREF="../../../../../weka/core/parser/java_cup/runtime/lr_parser.html#report_fatal_error(java.lang.String, java.lang.Object)">report_fatal_error</A>, <A HREF="../../../../../weka/core/parser/java_cup/runtime/lr_parser.html#scan()">scan</A>, <A HREF="../../../../../weka/core/parser/java_cup/runtime/lr_parser.html#setScanner(weka.core.parser.java_cup.runtime.Scanner)">setScanner</A>, <A HREF="../../../../../weka/core/parser/java_cup/runtime/lr_parser.html#syntax_error(weka.core.parser.java_cup.runtime.Symbol)">syntax_error</A>, <A HREF="../../../../../weka/core/parser/java_cup/runtime/lr_parser.html#unrecovered_syntax_error(weka.core.parser.java_cup.runtime.Symbol)">unrecovered_syntax_error</A>, <A HREF="../../../../../weka/core/parser/java_cup/runtime/lr_parser.html#user_init()">user_init</A></CODE></TD></TR></TABLE>&nbsp;<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"><TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE>equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD></TR></TABLE>&nbsp;<P><!-- ========= 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="Parser()"><!-- --></A><H3>Parser</H3><PRE>public <B>Parser</B>()</PRE><DL><DD>Default constructor.<P></DL><HR><A NAME="Parser(weka.core.parser.java_cup.runtime.Scanner)"><!-- --></A><H3>Parser</H3><PRE>public <B>Parser</B>(<A HREF="../../../../../weka/core/parser/java_cup/runtime/Scanner.html" title="interface in weka.core.parser.java_cup.runtime">Scanner</A>&nbsp;s)</PRE><DL><DD>Constructor which sets the default scanner.<P></DL><HR><A NAME="Parser(weka.core.parser.java_cup.runtime.Scanner, weka.core.parser.java_cup.runtime.SymbolFactory)"><!-- --></A><H3>Parser</H3><PRE>public <B>Parser</B>(<A HREF="../../../../../weka/core/parser/java_cup/runtime/Scanner.html" title="interface in weka.core.parser.java_cup.runtime">Scanner</A>&nbsp;s,              <A HREF="../../../../../weka/core/parser/java_cup/runtime/SymbolFactory.html" title="interface in weka.core.parser.java_cup.runtime">SymbolFactory</A>&nbsp;sf)</PRE><DL><DD>Constructor which sets the default scanner.<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="production_table()"><!-- --></A><H3>production_table</H3><PRE>public short[][] <B>production_table</B>()</PRE><DL><DD>Access to production table.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../weka/core/parser/java_cup/runtime/lr_parser.html#production_table()">production_table</A></CODE> in class <CODE><A HREF="../../../../../weka/core/parser/java_cup/runtime/lr_parser.html" title="class in weka.core.parser.java_cup.runtime">lr_parser</A></CODE></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="action_table()"><!-- --></A><H3>action_table</H3><PRE>public short[][] <B>action_table</B>()</PRE><DL><DD>Access to parse-action table.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../weka/core/parser/java_cup/runtime/lr_parser.html#action_table()">action_table</A></CODE> in class <CODE><A HREF="../../../../../weka/core/parser/java_cup/runtime/lr_parser.html" title="class in weka.core.parser.java_cup.runtime">lr_parser</A></CODE></DL></DD><DD><DL><DT><B>See Also:</B><DD><CODE>java_cup.runtime.lr_parser#get_action</CODE></DL></DD></DL><HR><A NAME="reduce_table()"><!-- --></A><H3>reduce_table</H3><PRE>public short[][] <B>reduce_table</B>()</PRE><DL><DD>Access to <code>reduce_goto</code> table.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../weka/core/parser/java_cup/runtime/lr_parser.html#reduce_table()">reduce_table</A></CODE> in class <CODE><A HREF="../../../../../weka/core/parser/java_cup/runtime/lr_parser.html" title="class in weka.core.parser.java_cup.runtime">lr_parser</A></CODE></DL></DD><DD><DL><DT><B>See Also:</B><DD><CODE>java_cup.runtime.lr_parser#get_reduce</CODE></DL></DD></DL><HR><A NAME="do_action(int, weka.core.parser.java_cup.runtime.lr_parser, java.util.Stack, int)"><!-- --></A><H3>do_action</H3><PRE>public <A HREF="../../../../../weka/core/parser/java_cup/runtime/Symbol.html" title="class in weka.core.parser.java_cup.runtime">Symbol</A> <B>do_action</B>(int&nbsp;act_num,                        <A HREF="../../../../../weka/core/parser/java_cup/runtime/lr_parser.html" title="class in weka.core.parser.java_cup.runtime">lr_parser</A>&nbsp;parser,                        java.util.Stack&nbsp;stack,                        int&nbsp;top)                 throws java.lang.Exception</PRE><DL><DD>Invoke a user supplied parse action.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../weka/core/parser/java_cup/runtime/lr_parser.html#do_action(int, weka.core.parser.java_cup.runtime.lr_parser, java.util.Stack, int)">do_action</A></CODE> in class <CODE><A HREF="../../../../../weka/core/parser/java_cup/runtime/lr_parser.html" title="class in weka.core.parser.java_cup.runtime">lr_parser</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>act_num</CODE> - the internal index of the action to be performed.<DD><CODE>parser</CODE> - the parser object we are acting for.<DD><CODE>stack</CODE> - the parse stack of that object.<DD><CODE>top</CODE> - the index of the top element of the parse stack.<DT><B>Throws:</B><DD><CODE>java.lang.Exception</CODE></DL></DD></DL><HR><A NAME="start_state()"><!-- --></A><H3>start_state</H3><PRE>public int <B>start_state</B>()</PRE><DL><DD>Indicates start state.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../weka/core/parser/java_cup/runtime/lr_parser.html#start_state()">start_state</A></CODE> in class <CODE><A HREF="../../../../../weka/core/parser/java_cup/runtime/lr_parser.html" title="class in weka.core.parser.java_cup.runtime">lr_parser</A></CODE></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="start_production()"><!-- --></A><H3>start_production</H3><PRE>public int <B>start_production</B>()</PRE><DL><DD>Indicates start production.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../weka/core/parser/java_cup/runtime/lr_parser.html#start_production()">start_production</A></CODE> in class <CODE><A HREF="../../../../../weka/core/parser/java_cup/runtime/lr_parser.html" title="class in weka.core.parser.java_cup.runtime">lr_parser</A></CODE></DL></DD><DD><DL>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?