⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 sourcefileinterface.html

📁 是一个加快Java应用程序国际化和本地化开发的工具集。它将大大减少国际化和本地化开发的所消耗的时间和资源。
💻 HTML
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN"><!--NewPage--><HTML><HEAD><!-- Generated by javadoc on Thu Aug 26 16:16:43 CST 1999 --><TITLE>Java Internationalization and Localization Toolkit public api document: Interface  SourceFileInterface</TITLE><LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../../../stylesheet.css" TITLE="Style"></HEAD><BODY BGCOLOR="white"><!-- ========== START OF NAVBAR ========== --><A NAME="navbar_top"><!-- --></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0"><TR><TD COLSPAN=2 BGCOLOR="#EEEEFF" ID="NavBarCell1"><A NAME="navbar_top_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3">  <TR ALIGN="center" VALIGN="top">  <TD BGCOLOR="#EEEEFF" ID="NavBarCell1">    <A HREF="../../../../../../overview-summary.html"><FONT ID="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" ID="NavBarCell1">    <A HREF="package-summary.html"><FONT ID="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#FFFFFF" ID="NavBarCell1Rev"> &nbsp;<FONT ID="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" ID="NavBarCell1">    <A HREF="package-tree.html"><FONT ID="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" ID="NavBarCell1">    <A HREF="../../../../../../deprecated-list.html"><FONT ID="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" ID="NavBarCell1">    <A HREF="../../../../../../index-all.html"><FONT ID="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" ID="NavBarCell1">    <A HREF="../../../../../../help-doc.html"><FONT ID="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>  </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM></EM></TD></TR><TR><TD BGCOLOR="white" ID="NavBarCell2"><FONT SIZE="-2">&nbsp;<A HREF="../../../../../../com/sun/tdc/toolkit/api/internal/ProjectMgrInterface.html"><B>PREV CLASS</B></A>&nbsp;&nbsp;<A HREF="../../../../../../com/sun/tdc/toolkit/api/internal/ToolInterface.html"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" ID="NavBarCell2"><FONT SIZE="-2">  <A HREF="../../../../../../index.html" TARGET="_top"><B>FRAMES</B></A>  &nbsp;&nbsp;<A HREF="SourceFileInterface.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD></TR><TR><TD VALIGN="top" ID="NavBarCell3"><FONT SIZE="-2">  SUMMARY: &nbsp;INNER&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" ID="NavBarCell3"><FONT SIZE="-2">DETAIL: &nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><!-- =========== END OF NAVBAR =========== --><HR><!-- ======== START OF CLASS DATA ======== --><H2><FONT SIZE="-1">com.sun.tdc.toolkit.api.internal</FONT><BR>Interface  SourceFileInterface</H2><DL><DT><B>All Known Implementing Classes:</B> <DD>com.sun.tdc.toolkit.javafile.JavaFile</DD></DL><HR><DL><DT>public abstract interface <B>SourceFileInterface</B></DL><P><HR><P><!-- ======== INNER CLASS SUMMARY ======== --><!-- =========== FIELD SUMMARY =========== --><!-- ======== CONSTRUCTOR SUMMARY ======== --><!-- ========== METHOD SUMMARY =========== --><A NAME="method_summary"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" ID="TableHeadingColor"><TD COLSPAN=2><FONT SIZE="+2"><B>Method Summary</B></FONT></TD></TR><TR BGCOLOR="white" ID="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="../../../../../../com/sun/tdc/toolkit/api/UnitInterface.html">UnitInterface</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../../com/sun/tdc/toolkit/api/internal/SourceFileInterface.html#getClassUnit(com.sun.tdc.toolkit.api.UnitInterface)">getClassUnit</A></B>(<A HREF="../../../../../../com/sun/tdc/toolkit/api/UnitInterface.html">UnitInterface</A>&nbsp;u)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get the class unit which contains a certain unit</TD></TR><TR BGCOLOR="white" ID="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;java.lang.String</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../../com/sun/tdc/toolkit/api/internal/SourceFileInterface.html#getFileName()">getFileName</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;get the file name , jar format should be concerned later</TD></TR><TR BGCOLOR="white" ID="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../../com/sun/tdc/toolkit/api/internal/SourceFileInterface.html#getLineNumber(int)">getLineNumber</A></B>(int&nbsp;n)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get the line number of the metioned position</TD></TR><TR BGCOLOR="white" ID="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../../com/sun/tdc/toolkit/api/internal/SourceFileInterface.html#getLineNumberDiff(int, int)">getLineNumberDiff</A></B>(int&nbsp;n1,                  int&nbsp;n2)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get the line number difference of the metioned positions</TD></TR><TR BGCOLOR="white" ID="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../../com/sun/tdc/toolkit/api/internal/SourceFileInterface.html#getOffsetOfBOL(int)">getOffsetOfBOL</A></B>(int&nbsp;offset)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;get the offset of the beginning of the line in which this offset is nested</TD></TR><TR BGCOLOR="white" ID="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../../com/sun/tdc/toolkit/api/internal/SourceFileInterface.html#getOffsetOfEOL(int)">getOffsetOfEOL</A></B>(int&nbsp;offset)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;get the offset of the end of the line in which this offset is nested</TD></TR><TR BGCOLOR="white" ID="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../../com/sun/tdc/toolkit/api/internal/SourceFileInterface.html#getOffsetOfLine(int)">getOffsetOfLine</A></B>(int&nbsp;n)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get the offset from the beginning of the according line</TD></TR><TR BGCOLOR="white" ID="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="../../../../../../com/sun/tdc/toolkit/api/internal/Unit.html">Unit</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../../com/sun/tdc/toolkit/api/internal/SourceFileInterface.html#insertUnit(int, java.lang.String)">insertUnit</A></B>(int&nbsp;pos,           java.lang.String&nbsp;s)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Insert a String into the document.</TD></TR><TR BGCOLOR="white" ID="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;java.lang.String</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../../com/sun/tdc/toolkit/api/internal/SourceFileInterface.html#toString(com.sun.tdc.toolkit.api.UnitInterface)">toString</A></B>(<A HREF="../../../../../../com/sun/tdc/toolkit/api/UnitInterface.html">UnitInterface</A>&nbsp;u)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get the Unit source</TD></TR><TR BGCOLOR="white" ID="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="../../../../../../com/sun/tdc/toolkit/api/internal/Unit.html">Unit</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../../com/sun/tdc/toolkit/api/internal/SourceFileInterface.html#updateUnit(com.sun.tdc.toolkit.api.internal.Unit, java.lang.String)">updateUnit</A></B>(<A HREF="../../../../../../com/sun/tdc/toolkit/api/internal/Unit.html">Unit</A>&nbsp;unit,           java.lang.String&nbsp;value)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Update the whole unit with the new String  This may cause the error on the document.</TD></TR></TABLE>&nbsp;<P><!-- ============ FIELD DETAIL =========== --><!-- ========= CONSTRUCTOR DETAIL ======== --><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" ID="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Method Detail</B></FONT></TD></TR></TABLE><A NAME="getOffsetOfLine(int)"><!-- --></A><H3>getOffsetOfLine</H3><PRE>public int <B>getOffsetOfLine</B>(int&nbsp;n)</PRE><DL><DD>Get the offset from the beginning of the according line<DD><DL><DT><B>Parameters:</B><DD><CODE>n</CODE> - the offset in the source file.<DT><B>Returns:</B><DD>the offset in a line. If n is not in the scope of  the source file's length, return -1.</DL></DD></DL><HR><A NAME="getOffsetOfBOL(int)"><!-- --></A><H3>getOffsetOfBOL</H3><PRE>public int <B>getOffsetOfBOL</B>(int&nbsp;offset)</PRE><DL><DD>get the offset of the beginning of the line in which this offset is nested<DD><DL><DT><B>Parameters:</B><DD><CODE>offset</CODE> - the offset in the source file<DT><B>Returns:</B><DD>the offset of the beginning of the line</DL></DD></DL><HR><A NAME="getOffsetOfEOL(int)"><!-- --></A><H3>getOffsetOfEOL</H3><PRE>public int <B>getOffsetOfEOL</B>(int&nbsp;offset)</PRE><DL><DD>get the offset of the end of the line in which this offset is nested<DD><DL><DT><B>Parameters:</B><DD><CODE>offset</CODE> - the offset in the source file<DT><B>Returns:</B><DD>the offset of the end of the line</DL></DD></DL><HR><A NAME="getLineNumber(int)"><!-- --></A><H3>getLineNumber</H3><PRE>public int <B>getLineNumber</B>(int&nbsp;n)</PRE><DL><DD>Get the line number of the metioned position<DD><DL><DT><B>Parameters:</B><DD><CODE>n</CODE> - the offset in the source file.<DT><B>Returns:</B><DD>the line number according to the offset.  If no line can be found according to the offset, return -1.</DL></DD></DL><HR><A NAME="getLineNumberDiff(int, int)"><!-- --></A><H3>getLineNumberDiff</H3><PRE>public int <B>getLineNumberDiff</B>(int&nbsp;n1,                             int&nbsp;n2)</PRE><DL><DD>Get the line number difference of the metioned positions<DD><DL><DT><B>Parameters:</B><DD><CODE>n</CODE> - the offset in the source file.<DT><B>Returns:</B><DD>the difference number according to the offset.  If no line can be found according to the offset, return -1.</DL></DD></DL><HR><A NAME="getFileName()"><!-- --></A><H3>getFileName</H3><PRE>public java.lang.String <B>getFileName</B>()</PRE><DL><DD>get the file name , jar format should be concerned later</DL><HR><A NAME="insertUnit(int, java.lang.String)"><!-- --></A><H3>insertUnit</H3><PRE>public <A HREF="../../../../../../com/sun/tdc/toolkit/api/internal/Unit.html">Unit</A> <B>insertUnit</B>(int&nbsp;pos,                       java.lang.String&nbsp;s)</PRE><DL><DD>Insert a String into the document. This method invoked by only the sub class which implement the  document listener. If the user want to do insert something on the  document invoke insertString of Document instead.</DL><HR><A NAME="updateUnit(com.sun.tdc.toolkit.api.internal.Unit, java.lang.String)"><!-- --></A><H3>updateUnit</H3><PRE>public <A HREF="../../../../../../com/sun/tdc/toolkit/api/internal/Unit.html">Unit</A> <B>updateUnit</B>(<A HREF="../../../../../../com/sun/tdc/toolkit/api/internal/Unit.html">Unit</A>&nbsp;unit,                       java.lang.String&nbsp;value)</PRE><DL><DD>Update the whole unit with the new String  This may cause the error on the document. So it must be implemented in JavaDocument.</DL><HR><A NAME="getClassUnit(com.sun.tdc.toolkit.api.UnitInterface)"><!-- --></A><H3>getClassUnit</H3><PRE>public <A HREF="../../../../../../com/sun/tdc/toolkit/api/UnitInterface.html">UnitInterface</A> <B>getClassUnit</B>(<A HREF="../../../../../../com/sun/tdc/toolkit/api/UnitInterface.html">UnitInterface</A>&nbsp;u)</PRE><DL><DD>Get the class unit which contains a certain unit</DL><HR><A NAME="toString(com.sun.tdc.toolkit.api.UnitInterface)"><!-- --></A><H3>toString</H3><PRE>public java.lang.String <B>toString</B>(<A HREF="../../../../../../com/sun/tdc/toolkit/api/UnitInterface.html">UnitInterface</A>&nbsp;u)</PRE><DL><DD>Get the Unit source</DL><!-- ========= END OF CLASS DATA ========= --><HR><!-- ========== START OF NAVBAR ========== --><A NAME="navbar_bottom"><!-- --></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0"><TR><TD COLSPAN=2 BGCOLOR="#EEEEFF" ID="NavBarCell1"><A NAME="navbar_bottom_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3">  <TR ALIGN="center" VALIGN="top">  <TD BGCOLOR="#EEEEFF" ID="NavBarCell1">    <A HREF="../../../../../../overview-summary.html"><FONT ID="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" ID="NavBarCell1">    <A HREF="package-summary.html"><FONT ID="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#FFFFFF" ID="NavBarCell1Rev"> &nbsp;<FONT ID="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" ID="NavBarCell1">    <A HREF="package-tree.html"><FONT ID="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" ID="NavBarCell1">    <A HREF="../../../../../../deprecated-list.html"><FONT ID="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" ID="NavBarCell1">    <A HREF="../../../../../../index-all.html"><FONT ID="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" ID="NavBarCell1">    <A HREF="../../../../../../help-doc.html"><FONT ID="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>  </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM></EM></TD></TR><TR><TD BGCOLOR="white" ID="NavBarCell2"><FONT SIZE="-2">&nbsp;<A HREF="../../../../../../com/sun/tdc/toolkit/api/internal/ProjectMgrInterface.html"><B>PREV CLASS</B></A>&nbsp;&nbsp;<A HREF="../../../../../../com/sun/tdc/toolkit/api/internal/ToolInterface.html"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" ID="NavBarCell2"><FONT SIZE="-2">  <A HREF="../../../../../../index.html" TARGET="_top"><B>FRAMES</B></A>  &nbsp;&nbsp;<A HREF="SourceFileInterface.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD></TR><TR><TD VALIGN="top" ID="NavBarCell3"><FONT SIZE="-2">  SUMMARY: &nbsp;INNER&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" ID="NavBarCell3"><FONT SIZE="-2">DETAIL: &nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><!-- =========== END OF NAVBAR =========== --><HR></BODY></HTML>

⌨️ 快捷键说明

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