resultstylecompiler.html
来自「基于mondrian 开源框架进行OLAP多维分析」· HTML 代码 · 共 374 行 · 第 1/2 页
HTML
374 行
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"><B>Method Summary</B></FONT></TH></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../mondrian/calc/Calc.html" title="interface in mondrian.calc">Calc</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../mondrian/olap/fun/ResultStyleCompiler.html#compile(mondrian.olap.Exp)">compile</A></B>(<A HREF="../../../mondrian/olap/Exp.html" title="interface in mondrian.olap">Exp</A> exp)</CODE><BR> Compiles an expression.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../mondrian/calc/Calc.html" title="interface in mondrian.calc">Calc</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../mondrian/olap/fun/ResultStyleCompiler.html#compileAs(mondrian.olap.Exp, mondrian.olap.type.Type, java.util.List)">compileAs</A></B>(<A HREF="../../../mondrian/olap/Exp.html" title="interface in mondrian.olap">Exp</A> exp, <A HREF="../../../mondrian/olap/type/Type.html" title="interface in mondrian.olap.type">Type</A> resultType, <A HREF="http://java.sun.com/javase/6/docs/api/java/util/List.html" title="class or interface in java.util">List</A><<A HREF="../../../mondrian/calc/ResultStyle.html" title="enum in mondrian.calc">ResultStyle</A>> resultStyles)</CODE><BR> Compiles an expression to a given result type.</TD></TR></TABLE> <A NAME="methods_inherited_from_class_mondrian.calc.impl.DelegatingExpCompiler"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TH ALIGN="left"><B>Methods inherited from class mondrian.calc.impl.<A HREF="../../../mondrian/calc/impl/DelegatingExpCompiler.html" title="class in mondrian.calc.impl">DelegatingExpCompiler</A></B></TH></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../mondrian/calc/impl/DelegatingExpCompiler.html#afterCompile(mondrian.olap.Exp, mondrian.calc.Calc, boolean)">afterCompile</A>, <A HREF="../../../mondrian/calc/impl/DelegatingExpCompiler.html#compileBoolean(mondrian.olap.Exp)">compileBoolean</A>, <A HREF="../../../mondrian/calc/impl/DelegatingExpCompiler.html#compileDateTime(mondrian.olap.Exp)">compileDateTime</A>, <A HREF="../../../mondrian/calc/impl/DelegatingExpCompiler.html#compileDimension(mondrian.olap.Exp)">compileDimension</A>, <A HREF="../../../mondrian/calc/impl/DelegatingExpCompiler.html#compileDouble(mondrian.olap.Exp)">compileDouble</A>, <A HREF="../../../mondrian/calc/impl/DelegatingExpCompiler.html#compileHierarchy(mondrian.olap.Exp)">compileHierarchy</A>, <A HREF="../../../mondrian/calc/impl/DelegatingExpCompiler.html#compileInteger(mondrian.olap.Exp)">compileInteger</A>, <A HREF="../../../mondrian/calc/impl/DelegatingExpCompiler.html#compileIter(mondrian.olap.Exp)">compileIter</A>, <A HREF="../../../mondrian/calc/impl/DelegatingExpCompiler.html#compileLevel(mondrian.olap.Exp)">compileLevel</A>, <A HREF="../../../mondrian/calc/impl/DelegatingExpCompiler.html#compileList(mondrian.olap.Exp)">compileList</A>, <A HREF="../../../mondrian/calc/impl/DelegatingExpCompiler.html#compileList(mondrian.olap.Exp, boolean)">compileList</A>, <A HREF="../../../mondrian/calc/impl/DelegatingExpCompiler.html#compileMember(mondrian.olap.Exp)">compileMember</A>, <A HREF="../../../mondrian/calc/impl/DelegatingExpCompiler.html#compileScalar(mondrian.olap.Exp, boolean)">compileScalar</A>, <A HREF="../../../mondrian/calc/impl/DelegatingExpCompiler.html#compileString(mondrian.olap.Exp)">compileString</A>, <A HREF="../../../mondrian/calc/impl/DelegatingExpCompiler.html#compileTuple(mondrian.olap.Exp)">compileTuple</A>, <A HREF="../../../mondrian/calc/impl/DelegatingExpCompiler.html#getAcceptableResultStyles()">getAcceptableResultStyles</A>, <A HREF="../../../mondrian/calc/impl/DelegatingExpCompiler.html#getEvaluator()">getEvaluator</A>, <A HREF="../../../mondrian/calc/impl/DelegatingExpCompiler.html#getValidator()">getValidator</A>, <A HREF="../../../mondrian/calc/impl/DelegatingExpCompiler.html#registerParameter(mondrian.olap.Parameter)">registerParameter</A></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"><TH ALIGN="left"><B>Methods inherited from class java.lang.<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A></B></TH></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html#clone()" title="class or interface in java.lang">clone</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html#equals(java.lang.Object)" title="class or interface in java.lang">equals</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html#finalize()" title="class or interface in java.lang">finalize</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html#getClass()" title="class or interface in java.lang">getClass</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html#hashCode()" title="class or interface in java.lang">hashCode</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html#notify()" title="class or interface in java.lang">notify</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html#notifyAll()" title="class or interface in java.lang">notifyAll</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html#toString()" title="class or interface in java.lang">toString</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html#wait()" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html#wait(long)" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html#wait(long, int)" title="class or interface in java.lang">wait</A></CODE></TD></TR></TABLE> <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="ResultStyleCompiler(mondrian.olap.Evaluator, mondrian.olap.Validator, java.util.List)"><!-- --></A><H3>ResultStyleCompiler</H3><PRE>public <B>ResultStyleCompiler</B>(<A HREF="../../../mondrian/olap/Evaluator.html" title="interface in mondrian.olap">Evaluator</A> evaluator, <A HREF="../../../mondrian/olap/Validator.html" title="interface in mondrian.olap">Validator</A> validator, <A HREF="http://java.sun.com/javase/6/docs/api/java/util/List.html" title="class or interface in java.util">List</A><<A HREF="../../../mondrian/calc/ResultStyle.html" title="enum in mondrian.calc">ResultStyle</A>> resultStyles)</PRE><DL><DD>Constructor which uses the ExpCompiler.Factory to get the default ExpCompiler as an instance variable - ResultStyleCompiler is a wrapper.<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="compile(mondrian.olap.Exp)"><!-- --></A><H3>compile</H3><PRE>public <A HREF="../../../mondrian/calc/Calc.html" title="interface in mondrian.calc">Calc</A> <B>compile</B>(<A HREF="../../../mondrian/olap/Exp.html" title="interface in mondrian.olap">Exp</A> exp)</PRE><DL><DD><B>Description copied from interface: <CODE><A HREF="../../../mondrian/calc/ExpCompiler.html#compile(mondrian.olap.Exp)">ExpCompiler</A></CODE></B></DD><DD>Compiles an expression.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../mondrian/calc/ExpCompiler.html#compile(mondrian.olap.Exp)">compile</A></CODE> in interface <CODE><A HREF="../../../mondrian/calc/ExpCompiler.html" title="interface in mondrian.calc">ExpCompiler</A></CODE><DT><B>Overrides:</B><DD><CODE><A HREF="../../../mondrian/calc/impl/DelegatingExpCompiler.html#compile(mondrian.olap.Exp)">compile</A></CODE> in class <CODE><A HREF="../../../mondrian/calc/impl/DelegatingExpCompiler.html" title="class in mondrian.calc.impl">DelegatingExpCompiler</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>exp</CODE> - Expression<DT><B>Returns:</B><DD>Compiled expression</DL></DD></DL><HR><A NAME="compileAs(mondrian.olap.Exp, mondrian.olap.type.Type, java.util.List)"><!-- --></A><H3>compileAs</H3><PRE>public <A HREF="../../../mondrian/calc/Calc.html" title="interface in mondrian.calc">Calc</A> <B>compileAs</B>(<A HREF="../../../mondrian/olap/Exp.html" title="interface in mondrian.olap">Exp</A> exp, <A HREF="../../../mondrian/olap/type/Type.html" title="interface in mondrian.olap.type">Type</A> resultType, <A HREF="http://java.sun.com/javase/6/docs/api/java/util/List.html" title="class or interface in java.util">List</A><<A HREF="../../../mondrian/calc/ResultStyle.html" title="enum in mondrian.calc">ResultStyle</A>> resultStyles)</PRE><DL><DD><B>Description copied from interface: <CODE><A HREF="../../../mondrian/calc/ExpCompiler.html#compileAs(mondrian.olap.Exp, mondrian.olap.type.Type, java.util.List)">ExpCompiler</A></CODE></B></DD><DD>Compiles an expression to a given result type. <p>If <code>resultType</code> is not null, casts the expression to that type. Throws an exception if that conversion is not allowed by the type system. <p>The <code>preferredResultStyles</code> parameter specifies a list of desired result styles. It must not be null, but may be empty.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../mondrian/calc/ExpCompiler.html#compileAs(mondrian.olap.Exp, mondrian.olap.type.Type, java.util.List)">compileAs</A></CODE> in interface <CODE><A HREF="../../../mondrian/calc/ExpCompiler.html" title="interface in mondrian.calc">ExpCompiler</A></CODE><DT><B>Overrides:</B><DD><CODE><A HREF="../../../mondrian/calc/impl/DelegatingExpCompiler.html#compileAs(mondrian.olap.Exp, mondrian.olap.type.Type, java.util.List)">compileAs</A></CODE> in class <CODE><A HREF="../../../mondrian/calc/impl/DelegatingExpCompiler.html" title="class in mondrian.calc.impl">DelegatingExpCompiler</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>exp</CODE> - Expression<DD><CODE>resultType</CODE> - Desired result type, or null to use expression's current type<DD><CODE>resultStyles</CODE> - List of result types, in descending order of preference. Never null.<DT><B>Returns:</B><DD>Compiled expression, or null if none can satisfy</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> </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM><a href="http://sourceforge.net/projects/mondrian"><img src="http://sourceforge.net/sflogo.php?group_id=35302&type=1" width="88" height="31" border="0" alt="SourceForge.net_Logo"></a></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../mondrian/olap/fun/ResolverBase.html" title="class in mondrian.olap.fun"><B>PREV CLASS</B></A> <A HREF="../../../mondrian/olap/fun/ResultStyleCompiler.MultiCalc.html" title="class in mondrian.olap.fun"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../index.html?mondrian/olap/fun/ResultStyleCompiler.html" target="_top"><B>FRAMES</B></A> <A HREF="ResultStyleCompiler.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: <A HREF="#nested_class_summary">NESTED</A> | 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_bottom"></A><!-- ======== END OF BOTTOM NAVBAR ======= --><HR></BODY></HTML>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?