📄 unitinterface.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN"><!--NewPage--><HTML><HEAD><!-- Generated by javadoc on Thu Aug 26 16:16:42 CST 1999 --><TITLE>Java Internationalization and Localization Toolkit public api document: Interface UnitInterface</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> </TD> <TD BGCOLOR="#EEEEFF" ID="NavBarCell1"> <A HREF="package-summary.html"><FONT ID="NavBarFont1"><B>Package</B></FONT></A> </TD> <TD BGCOLOR="#FFFFFF" ID="NavBarCell1Rev"> <FONT ID="NavBarFont1Rev"><B>Class</B></FONT> </TD> <TD BGCOLOR="#EEEEFF" ID="NavBarCell1"> <A HREF="package-tree.html"><FONT ID="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" ID="NavBarCell1"> <A HREF="../../../../../deprecated-list.html"><FONT ID="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" ID="NavBarCell1"> <A HREF="../../../../../index-all.html"><FONT ID="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" ID="NavBarCell1"> <A HREF="../../../../../help-doc.html"><FONT ID="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" ID="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../../com/sun/tdc/toolkit/api/TranslatorInterface.html"><B>PREV CLASS</B></A> <A HREF="../../../../../com/sun/tdc/toolkit/api/VerifierInterface.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> <A HREF="UnitInterface.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD></TR><TR><TD VALIGN="top" ID="NavBarCell3"><FONT SIZE="-2"> SUMMARY: INNER | FIELD | CONSTR | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" ID="NavBarCell3"><FONT SIZE="-2">DETAIL: FIELD | CONSTR | <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</FONT><BR>Interface UnitInterface</H2><DL><DT><B>All Known Implementing Classes:</B> <DD><A HREF="../../../../../com/sun/tdc/toolkit/api/internal/Unit.html">Unit</A></DD></DL><HR><DL><DT>public abstract interface <B>UnitInterface</B></DL><P>the basic item of the situation recorder for UnitSource<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> int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/sun/tdc/toolkit/api/UnitInterface.html#getEnd()">getEnd</A></B>()</CODE><BR> get end offset.</TD></TR><TR BGCOLOR="white" ID="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/sun/tdc/toolkit/api/UnitInterface.html#getEndLine()">getEndLine</A></B>()</CODE><BR> the invoke method of members</TD></TR><TR BGCOLOR="white" ID="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/sun/tdc/toolkit/api/UnitInterface.html#getEndOfLine()">getEndOfLine</A></B>()</CODE><BR> the invoke method of members</TD></TR><TR BGCOLOR="white" ID="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> long</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/sun/tdc/toolkit/api/UnitInterface.html#getEndPosition()">getEndPosition</A></B>()</CODE><BR> get the position (line-number and offset) of this unit</TD></TR><TR BGCOLOR="white" ID="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/sun/tdc/toolkit/api/UnitInterface.html#getOffsetOfBOL()">getOffsetOfBOL</A></B>()</CODE><BR> get the offset of the beginning of the line in which this unit is nested</TD></TR><TR BGCOLOR="white" ID="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/sun/tdc/toolkit/api/UnitInterface.html#getOffsetOfEOL()">getOffsetOfEOL</A></B>()</CODE><BR> get the offset of the end of the line in which this unit is nested</TD></TR><TR BGCOLOR="white" ID="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/sun/tdc/toolkit/api/UnitInterface.html#getStart()">getStart</A></B>()</CODE><BR> get start offset.</TD></TR><TR BGCOLOR="white" ID="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/sun/tdc/toolkit/api/UnitInterface.html#getStartLine()">getStartLine</A></B>()</CODE><BR> the invoke method of members</TD></TR><TR BGCOLOR="white" ID="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/sun/tdc/toolkit/api/UnitInterface.html#getStartOfLine()">getStartOfLine</A></B>()</CODE><BR> the invoke method of members</TD></TR><TR BGCOLOR="white" ID="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> long</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/sun/tdc/toolkit/api/UnitInterface.html#getStartPostion()">getStartPostion</A></B>()</CODE><BR> get the position (line-number and offset) of this unit</TD></TR><TR BGCOLOR="white" ID="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/sun/tdc/toolkit/api/UnitInterface.html#isExisting()">isExisting</A></B>()</CODE><BR> if this unit is still existing in the java source file</TD></TR><TR BGCOLOR="white" ID="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../../../com/sun/tdc/toolkit/api/UnitInterface.html#setExisting(boolean)">setExisting</A></B>(boolean v)</CODE><BR> if the whole unit is deleted by the user this method will be invoked in java file</TD></TR></TABLE> <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="getStart()"><!-- --></A><H3>getStart</H3><PRE>public int <B>getStart</B>()</PRE><DL><DD>get start offset.</DL><HR><A NAME="getEnd()"><!-- --></A><H3>getEnd</H3><PRE>public int <B>getEnd</B>()</PRE><DL><DD>get end offset.</DL><HR><A NAME="isExisting()"><!-- --></A><H3>isExisting</H3><PRE>public boolean <B>isExisting</B>()</PRE><DL><DD>if this unit is still existing in the java source file</DL><HR><A NAME="setExisting(boolean)"><!-- --></A><H3>setExisting</H3><PRE>public void <B>setExisting</B>(boolean v)</PRE><DL><DD>if the whole unit is deleted by the user this method will be invoked in java file</DL><HR><A NAME="getStartOfLine()"><!-- --></A><H3>getStartOfLine</H3><PRE>public int <B>getStartOfLine</B>()</PRE><DL><DD>the invoke method of members</DL><HR><A NAME="getEndOfLine()"><!-- --></A><H3>getEndOfLine</H3><PRE>public int <B>getEndOfLine</B>()</PRE><DL><DD>the invoke method of members</DL><HR><A NAME="getStartLine()"><!-- --></A><H3>getStartLine</H3><PRE>public int <B>getStartLine</B>()</PRE><DL><DD>the invoke method of members</DL><HR><A NAME="getEndLine()"><!-- --></A><H3>getEndLine</H3><PRE>public int <B>getEndLine</B>()</PRE><DL><DD>the invoke method of members</DL><HR><A NAME="getOffsetOfBOL()"><!-- --></A><H3>getOffsetOfBOL</H3><PRE>public int <B>getOffsetOfBOL</B>()</PRE><DL><DD>get the offset of the beginning of the line in which this unit is nested<DD><DL><DT><B>Returns:</B><DD>the offset of the beginning of the line where the start of this unit nests.</DL></DD></DL><HR><A NAME="getOffsetOfEOL()"><!-- --></A><H3>getOffsetOfEOL</H3><PRE>public int <B>getOffsetOfEOL</B>()</PRE><DL><DD>get the offset of the end of the line in which this unit is nested<DD><DL><DT><B>Returns:</B><DD>the offset of the end of the line where the end of this unit nests.</DL></DD></DL><HR><A NAME="getStartPostion()"><!-- --></A><H3>getStartPostion</H3><PRE>public long <B>getStartPostion</B>()</PRE><DL><DD>get the position (line-number and offset) of this unit</DL><HR><A NAME="getEndPosition()"><!-- --></A><H3>getEndPosition</H3><PRE>public long <B>getEndPosition</B>()</PRE><DL><DD>get the position (line-number and offset) of this unit</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> </TD> <TD BGCOLOR="#EEEEFF" ID="NavBarCell1"> <A HREF="package-summary.html"><FONT ID="NavBarFont1"><B>Package</B></FONT></A> </TD> <TD BGCOLOR="#FFFFFF" ID="NavBarCell1Rev"> <FONT ID="NavBarFont1Rev"><B>Class</B></FONT> </TD> <TD BGCOLOR="#EEEEFF" ID="NavBarCell1"> <A HREF="package-tree.html"><FONT ID="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" ID="NavBarCell1"> <A HREF="../../../../../deprecated-list.html"><FONT ID="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" ID="NavBarCell1"> <A HREF="../../../../../index-all.html"><FONT ID="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" ID="NavBarCell1"> <A HREF="../../../../../help-doc.html"><FONT ID="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" ID="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../../../com/sun/tdc/toolkit/api/TranslatorInterface.html"><B>PREV CLASS</B></A> <A HREF="../../../../../com/sun/tdc/toolkit/api/VerifierInterface.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> <A HREF="UnitInterface.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD></TR><TR><TD VALIGN="top" ID="NavBarCell3"><FONT SIZE="-2"> SUMMARY: INNER | FIELD | CONSTR | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" ID="NavBarCell3"><FONT SIZE="-2">DETAIL: FIELD | CONSTR | <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 + -