source: other-projects/trunk/gs3-release-maker/apache-ant-1.6.5/build/javadocs/org/apache/tools/ant/taskdefs/optional/depend/constantpool/ConstantPool.html@ 14627

Last change on this file since 14627 was 14627, checked in by oranfry, 17 years ago

initial import of the gs3-release-maker

File size: 24.0 KB
Line 
1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
2<!--NewPage-->
3<HTML>
4<HEAD>
5<!-- Generated by javadoc (build 1.4.2_13) on Mon Oct 01 14:33:25 NZST 2007 -->
6<TITLE>
7ConstantPool (Apache Ant API)
8</TITLE>
9
10<META NAME="keywords" CONTENT="org.apache.tools.ant.taskdefs.optional.depend.constantpool.ConstantPool class">
11
12<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../../../../../stylesheet.css" TITLE="Style">
13
14<SCRIPT type="text/javascript">
15function windowTitle()
16{
17 parent.document.title="ConstantPool (Apache Ant API)";
18}
19</SCRIPT>
20
21</HEAD>
22
23<BODY BGCOLOR="white" onload="windowTitle();">
24
25
26<!-- ========= START OF TOP NAVBAR ======= -->
27<A NAME="navbar_top"><!-- --></A>
28<A HREF="#skip-navbar_top" title="Skip navigation links"></A>
29<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
30<TR>
31<TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
32<A NAME="navbar_top_firstrow"><!-- --></A>
33<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
34 <TR ALIGN="center" VALIGN="top">
35 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
36 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
37 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
38 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
39 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
40 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
41 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
42 </TR>
43</TABLE>
44</TD>
45<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
46</EM>
47</TD>
48</TR>
49
50<TR>
51<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
52&nbsp;<A HREF="../../../../../../../../org/apache/tools/ant/taskdefs/optional/depend/constantpool/ConstantCPInfo.html" title="class in org.apache.tools.ant.taskdefs.optional.depend.constantpool"><B>PREV CLASS</B></A>&nbsp;
53&nbsp;<A HREF="../../../../../../../../org/apache/tools/ant/taskdefs/optional/depend/constantpool/ConstantPoolEntry.html" title="class in org.apache.tools.ant.taskdefs.optional.depend.constantpool"><B>NEXT CLASS</B></A></FONT></TD>
54<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
55 <A HREF="../../../../../../../../index.html" target="_top"><B>FRAMES</B></A> &nbsp;
56&nbsp;<A HREF="ConstantPool.html" target="_top"><B>NO FRAMES</B></A> &nbsp;
57&nbsp;<SCRIPT type="text/javascript">
58 <!--
59 if(window==top) {
60 document.writeln('<A HREF="../../../../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
61 }
62 //-->
63</SCRIPT>
64<NOSCRIPT>
65 <A HREF="../../../../../../../../allclasses-noframe.html"><B>All Classes</B></A>
66</NOSCRIPT>
67
68</FONT></TD>
69</TR>
70<TR>
71<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
72 SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
73<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
74DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
75</TR>
76</TABLE>
77<A NAME="skip-navbar_top"></A>
78<!-- ========= END OF TOP NAVBAR ========= -->
79
80<HR>
81<!-- ======== START OF CLASS DATA ======== -->
82<H2>
83<FONT SIZE="-1">
84org.apache.tools.ant.taskdefs.optional.depend.constantpool</FONT>
85<BR>
86Class ConstantPool</H2>
87<PRE>
88java.lang.Object
89 <IMG SRC="../../../../../../../../resources/inherit.gif" ALT="extended by"><B>org.apache.tools.ant.taskdefs.optional.depend.constantpool.ConstantPool</B>
90</PRE>
91<HR>
92<DL>
93<DT>public class <B>ConstantPool</B><DT>extends java.lang.Object</DL>
94
95<P>
96The constant pool of a Java class. The constant pool is a collection of
97 constants used in a Java class file. It stores strings, constant values,
98 class names, method names, field names etc.
99<P>
100
101<P>
102<DL>
103<DT><B>See Also:</B><DD><a href="http://java.sun.com/docs/books/vmspec/">The Java Virtual
104 Machine Specification</a></DL>
105<HR>
106
107<P>
108<!-- ======== NESTED CLASS SUMMARY ======== -->
109
110
111<!-- =========== FIELD SUMMARY =========== -->
112
113
114<!-- ======== CONSTRUCTOR SUMMARY ======== -->
115
116<A NAME="constructor_summary"><!-- --></A>
117<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
118<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
119<TD COLSPAN=2><FONT SIZE="+2">
120<B>Constructor Summary</B></FONT></TD>
121</TR>
122<TR BGCOLOR="white" CLASS="TableRowColor">
123<TD><CODE><B><A HREF="../../../../../../../../org/apache/tools/ant/taskdefs/optional/depend/constantpool/ConstantPool.html#ConstantPool()">ConstantPool</A></B>()</CODE>
124
125<BR>
126&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Initialise the constant pool.</TD>
127</TR>
128</TABLE>
129&nbsp;
130<!-- ========== METHOD SUMMARY =========== -->
131
132<A NAME="method_summary"><!-- --></A>
133<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
134<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
135<TD COLSPAN=2><FONT SIZE="+2">
136<B>Method Summary</B></FONT></TD>
137</TR>
138<TR BGCOLOR="white" CLASS="TableRowColor">
139<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
140<CODE>&nbsp;int</CODE></FONT></TD>
141<TD><CODE><B><A HREF="../../../../../../../../org/apache/tools/ant/taskdefs/optional/depend/constantpool/ConstantPool.html#addEntry(org.apache.tools.ant.taskdefs.optional.depend.constantpool.ConstantPoolEntry)">addEntry</A></B>(<A HREF="../../../../../../../../org/apache/tools/ant/taskdefs/optional/depend/constantpool/ConstantPoolEntry.html" title="class in org.apache.tools.ant.taskdefs.optional.depend.constantpool">ConstantPoolEntry</A>&nbsp;entry)</CODE>
142
143<BR>
144&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Add an entry to the constant pool.</TD>
145</TR>
146<TR BGCOLOR="white" CLASS="TableRowColor">
147<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
148<CODE>&nbsp;int</CODE></FONT></TD>
149<TD><CODE><B><A HREF="../../../../../../../../org/apache/tools/ant/taskdefs/optional/depend/constantpool/ConstantPool.html#getClassEntry(java.lang.String)">getClassEntry</A></B>(java.lang.String&nbsp;className)</CODE>
150
151<BR>
152&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get the index of a given CONSTANT_CLASS entry in the constant pool.</TD>
153</TR>
154<TR BGCOLOR="white" CLASS="TableRowColor">
155<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
156<CODE>&nbsp;int</CODE></FONT></TD>
157<TD><CODE><B><A HREF="../../../../../../../../org/apache/tools/ant/taskdefs/optional/depend/constantpool/ConstantPool.html#getConstantEntry(java.lang.Object)">getConstantEntry</A></B>(java.lang.Object&nbsp;constantValue)</CODE>
158
159<BR>
160&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get the index of a given constant value entry in the constant pool.</TD>
161</TR>
162<TR BGCOLOR="white" CLASS="TableRowColor">
163<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
164<CODE>&nbsp;<A HREF="../../../../../../../../org/apache/tools/ant/taskdefs/optional/depend/constantpool/ConstantPoolEntry.html" title="class in org.apache.tools.ant.taskdefs.optional.depend.constantpool">ConstantPoolEntry</A></CODE></FONT></TD>
165<TD><CODE><B><A HREF="../../../../../../../../org/apache/tools/ant/taskdefs/optional/depend/constantpool/ConstantPool.html#getEntry(int)">getEntry</A></B>(int&nbsp;index)</CODE>
166
167<BR>
168&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get an constant pool entry at a particular index.</TD>
169</TR>
170<TR BGCOLOR="white" CLASS="TableRowColor">
171<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
172<CODE>&nbsp;int</CODE></FONT></TD>
173<TD><CODE><B><A HREF="../../../../../../../../org/apache/tools/ant/taskdefs/optional/depend/constantpool/ConstantPool.html#getFieldRefEntry(java.lang.String, java.lang.String, java.lang.String)">getFieldRefEntry</A></B>(java.lang.String&nbsp;fieldClassName,
174 java.lang.String&nbsp;fieldName,
175 java.lang.String&nbsp;fieldType)</CODE>
176
177<BR>
178&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get the index of a given CONSTANT_FIELDREF entry in the constant
179 pool.</TD>
180</TR>
181<TR BGCOLOR="white" CLASS="TableRowColor">
182<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
183<CODE>&nbsp;int</CODE></FONT></TD>
184<TD><CODE><B><A HREF="../../../../../../../../org/apache/tools/ant/taskdefs/optional/depend/constantpool/ConstantPool.html#getInterfaceMethodRefEntry(java.lang.String, java.lang.String, java.lang.String)">getInterfaceMethodRefEntry</A></B>(java.lang.String&nbsp;interfaceMethodClassName,
185 java.lang.String&nbsp;interfaceMethodName,
186 java.lang.String&nbsp;interfaceMethodType)</CODE>
187
188<BR>
189&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get the index of a given CONSTANT_INTERFACEMETHODREF entry in the
190 constant pool.</TD>
191</TR>
192<TR BGCOLOR="white" CLASS="TableRowColor">
193<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
194<CODE>&nbsp;int</CODE></FONT></TD>
195<TD><CODE><B><A HREF="../../../../../../../../org/apache/tools/ant/taskdefs/optional/depend/constantpool/ConstantPool.html#getMethodRefEntry(java.lang.String, java.lang.String, java.lang.String)">getMethodRefEntry</A></B>(java.lang.String&nbsp;methodClassName,
196 java.lang.String&nbsp;methodName,
197 java.lang.String&nbsp;methodType)</CODE>
198
199<BR>
200&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get the index of a given CONSTANT_METHODREF entry in the constant
201 pool.</TD>
202</TR>
203<TR BGCOLOR="white" CLASS="TableRowColor">
204<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
205<CODE>&nbsp;int</CODE></FONT></TD>
206<TD><CODE><B><A HREF="../../../../../../../../org/apache/tools/ant/taskdefs/optional/depend/constantpool/ConstantPool.html#getNameAndTypeEntry(java.lang.String, java.lang.String)">getNameAndTypeEntry</A></B>(java.lang.String&nbsp;name,
207 java.lang.String&nbsp;type)</CODE>
208
209<BR>
210&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get the index of a given CONSTANT_NAMEANDTYPE entry in the constant
211 pool.</TD>
212</TR>
213<TR BGCOLOR="white" CLASS="TableRowColor">
214<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
215<CODE>&nbsp;int</CODE></FONT></TD>
216<TD><CODE><B><A HREF="../../../../../../../../org/apache/tools/ant/taskdefs/optional/depend/constantpool/ConstantPool.html#getUTF8Entry(java.lang.String)">getUTF8Entry</A></B>(java.lang.String&nbsp;value)</CODE>
217
218<BR>
219&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get the index of a given UTF8 constant pool entry.</TD>
220</TR>
221<TR BGCOLOR="white" CLASS="TableRowColor">
222<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
223<CODE>&nbsp;void</CODE></FONT></TD>
224<TD><CODE><B><A HREF="../../../../../../../../org/apache/tools/ant/taskdefs/optional/depend/constantpool/ConstantPool.html#read(java.io.DataInputStream)">read</A></B>(java.io.DataInputStream&nbsp;classStream)</CODE>
225
226<BR>
227&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Read the constant pool from a class input stream.</TD>
228</TR>
229<TR BGCOLOR="white" CLASS="TableRowColor">
230<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
231<CODE>&nbsp;void</CODE></FONT></TD>
232<TD><CODE><B><A HREF="../../../../../../../../org/apache/tools/ant/taskdefs/optional/depend/constantpool/ConstantPool.html#resolve()">resolve</A></B>()</CODE>
233
234<BR>
235&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Resolve the entries in the constant pool.</TD>
236</TR>
237<TR BGCOLOR="white" CLASS="TableRowColor">
238<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
239<CODE>&nbsp;int</CODE></FONT></TD>
240<TD><CODE><B><A HREF="../../../../../../../../org/apache/tools/ant/taskdefs/optional/depend/constantpool/ConstantPool.html#size()">size</A></B>()</CODE>
241
242<BR>
243&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get the size of the constant pool.</TD>
244</TR>
245<TR BGCOLOR="white" CLASS="TableRowColor">
246<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
247<CODE>&nbsp;java.lang.String</CODE></FONT></TD>
248<TD><CODE><B><A HREF="../../../../../../../../org/apache/tools/ant/taskdefs/optional/depend/constantpool/ConstantPool.html#toString()">toString</A></B>()</CODE>
249
250<BR>
251&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Dump the constant pool to a string.</TD>
252</TR>
253</TABLE>
254&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
255<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
256<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
257<TD><B>Methods inherited from class java.lang.Object</B></TD>
258</TR>
259<TR BGCOLOR="white" CLASS="TableRowColor">
260<TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait</CODE></TD>
261</TR>
262</TABLE>
263&nbsp;
264<P>
265
266<!-- ============ FIELD DETAIL =========== -->
267
268
269<!-- ========= CONSTRUCTOR DETAIL ======== -->
270
271<A NAME="constructor_detail"><!-- --></A>
272<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
273<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
274<TD COLSPAN=1><FONT SIZE="+2">
275<B>Constructor Detail</B></FONT></TD>
276</TR>
277</TABLE>
278
279<A NAME="ConstantPool()"><!-- --></A><H3>
280ConstantPool</H3>
281<PRE>
282public <B>ConstantPool</B>()</PRE>
283<DL>
284<DD>Initialise the constant pool.
285<P>
286</DL>
287
288<!-- ============ METHOD DETAIL ========== -->
289
290<A NAME="method_detail"><!-- --></A>
291<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
292<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
293<TD COLSPAN=1><FONT SIZE="+2">
294<B>Method Detail</B></FONT></TD>
295</TR>
296</TABLE>
297
298<A NAME="read(java.io.DataInputStream)"><!-- --></A><H3>
299read</H3>
300<PRE>
301public void <B>read</B>(java.io.DataInputStream&nbsp;classStream)
302 throws java.io.IOException</PRE>
303<DL>
304<DD>Read the constant pool from a class input stream.
305<P>
306<DD><DL>
307<DT><B>Parameters:</B><DD><CODE>classStream</CODE> - the DataInputStream of a class file.
308<DT><B>Throws:</B>
309<DD><CODE>java.io.IOException</CODE> - if there is a problem reading the constant pool
310 from the stream</DL>
311</DD>
312</DL>
313<HR>
314
315<A NAME="size()"><!-- --></A><H3>
316size</H3>
317<PRE>
318public int <B>size</B>()</PRE>
319<DL>
320<DD>Get the size of the constant pool.
321<P>
322<DD><DL>
323
324<DT><B>Returns:</B><DD>the size of the constant pool</DL>
325</DD>
326</DL>
327<HR>
328
329<A NAME="addEntry(org.apache.tools.ant.taskdefs.optional.depend.constantpool.ConstantPoolEntry)"><!-- --></A><H3>
330addEntry</H3>
331<PRE>
332public int <B>addEntry</B>(<A HREF="../../../../../../../../org/apache/tools/ant/taskdefs/optional/depend/constantpool/ConstantPoolEntry.html" title="class in org.apache.tools.ant.taskdefs.optional.depend.constantpool">ConstantPoolEntry</A>&nbsp;entry)</PRE>
333<DL>
334<DD>Add an entry to the constant pool.
335<P>
336<DD><DL>
337<DT><B>Parameters:</B><DD><CODE>entry</CODE> - the new entry to be added to the constant pool.
338<DT><B>Returns:</B><DD>the index into the constant pool at which the entry is
339 stored.</DL>
340</DD>
341</DL>
342<HR>
343
344<A NAME="resolve()"><!-- --></A><H3>
345resolve</H3>
346<PRE>
347public void <B>resolve</B>()</PRE>
348<DL>
349<DD>Resolve the entries in the constant pool. Resolution of the constant
350 pool involves transforming indexes to other constant pool entries
351 into the actual data for that entry.
352<P>
353<DD><DL>
354</DL>
355</DD>
356</DL>
357<HR>
358
359<A NAME="getEntry(int)"><!-- --></A><H3>
360getEntry</H3>
361<PRE>
362public <A HREF="../../../../../../../../org/apache/tools/ant/taskdefs/optional/depend/constantpool/ConstantPoolEntry.html" title="class in org.apache.tools.ant.taskdefs.optional.depend.constantpool">ConstantPoolEntry</A> <B>getEntry</B>(int&nbsp;index)</PRE>
363<DL>
364<DD>Get an constant pool entry at a particular index.
365<P>
366<DD><DL>
367<DT><B>Parameters:</B><DD><CODE>index</CODE> - the index into the constant pool.
368<DT><B>Returns:</B><DD>the constant pool entry at that index.</DL>
369</DD>
370</DL>
371<HR>
372
373<A NAME="getUTF8Entry(java.lang.String)"><!-- --></A><H3>
374getUTF8Entry</H3>
375<PRE>
376public int <B>getUTF8Entry</B>(java.lang.String&nbsp;value)</PRE>
377<DL>
378<DD>Get the index of a given UTF8 constant pool entry.
379<P>
380<DD><DL>
381<DT><B>Parameters:</B><DD><CODE>value</CODE> - the string value of the UTF8 entry.
382<DT><B>Returns:</B><DD>the index at which the given string occurs in the constant
383 pool or -1 if the value does not occur.</DL>
384</DD>
385</DL>
386<HR>
387
388<A NAME="getClassEntry(java.lang.String)"><!-- --></A><H3>
389getClassEntry</H3>
390<PRE>
391public int <B>getClassEntry</B>(java.lang.String&nbsp;className)</PRE>
392<DL>
393<DD>Get the index of a given CONSTANT_CLASS entry in the constant pool.
394<P>
395<DD><DL>
396<DT><B>Parameters:</B><DD><CODE>className</CODE> - the name of the class for which the class entry
397 index is required.
398<DT><B>Returns:</B><DD>the index at which the given class entry occurs in the
399 constant pool or -1 if the value does not occur.</DL>
400</DD>
401</DL>
402<HR>
403
404<A NAME="getConstantEntry(java.lang.Object)"><!-- --></A><H3>
405getConstantEntry</H3>
406<PRE>
407public int <B>getConstantEntry</B>(java.lang.Object&nbsp;constantValue)</PRE>
408<DL>
409<DD>Get the index of a given constant value entry in the constant pool.
410<P>
411<DD><DL>
412<DT><B>Parameters:</B><DD><CODE>constantValue</CODE> - the constant value for which the index is
413 required.
414<DT><B>Returns:</B><DD>the index at which the given value entry occurs in the
415 constant pool or -1 if the value does not occur.</DL>
416</DD>
417</DL>
418<HR>
419
420<A NAME="getMethodRefEntry(java.lang.String, java.lang.String, java.lang.String)"><!-- --></A><H3>
421getMethodRefEntry</H3>
422<PRE>
423public int <B>getMethodRefEntry</B>(java.lang.String&nbsp;methodClassName,
424 java.lang.String&nbsp;methodName,
425 java.lang.String&nbsp;methodType)</PRE>
426<DL>
427<DD>Get the index of a given CONSTANT_METHODREF entry in the constant
428 pool.
429<P>
430<DD><DL>
431<DT><B>Parameters:</B><DD><CODE>methodClassName</CODE> - the name of the class which contains the
432 method being referenced.<DD><CODE>methodName</CODE> - the name of the method being referenced.<DD><CODE>methodType</CODE> - the type descriptor of the method being referenced.
433<DT><B>Returns:</B><DD>the index at which the given method ref entry occurs in the
434 constant pool or -1 if the value does not occur.</DL>
435</DD>
436</DL>
437<HR>
438
439<A NAME="getInterfaceMethodRefEntry(java.lang.String, java.lang.String, java.lang.String)"><!-- --></A><H3>
440getInterfaceMethodRefEntry</H3>
441<PRE>
442public int <B>getInterfaceMethodRefEntry</B>(java.lang.String&nbsp;interfaceMethodClassName,
443 java.lang.String&nbsp;interfaceMethodName,
444 java.lang.String&nbsp;interfaceMethodType)</PRE>
445<DL>
446<DD>Get the index of a given CONSTANT_INTERFACEMETHODREF entry in the
447 constant pool.
448<P>
449<DD><DL>
450<DT><B>Parameters:</B><DD><CODE>interfaceMethodClassName</CODE> - the name of the interface which
451 contains the method being referenced.<DD><CODE>interfaceMethodName</CODE> - the name of the method being referenced.<DD><CODE>interfaceMethodType</CODE> - the type descriptor of the method being
452 referenced.
453<DT><B>Returns:</B><DD>the index at which the given method ref entry occurs in the
454 constant pool or -1 if the value does not occur.</DL>
455</DD>
456</DL>
457<HR>
458
459<A NAME="getFieldRefEntry(java.lang.String, java.lang.String, java.lang.String)"><!-- --></A><H3>
460getFieldRefEntry</H3>
461<PRE>
462public int <B>getFieldRefEntry</B>(java.lang.String&nbsp;fieldClassName,
463 java.lang.String&nbsp;fieldName,
464 java.lang.String&nbsp;fieldType)</PRE>
465<DL>
466<DD>Get the index of a given CONSTANT_FIELDREF entry in the constant
467 pool.
468<P>
469<DD><DL>
470<DT><B>Parameters:</B><DD><CODE>fieldClassName</CODE> - the name of the class which contains the field
471 being referenced.<DD><CODE>fieldName</CODE> - the name of the field being referenced.<DD><CODE>fieldType</CODE> - the type descriptor of the field being referenced.
472<DT><B>Returns:</B><DD>the index at which the given field ref entry occurs in the
473 constant pool or -1 if the value does not occur.</DL>
474</DD>
475</DL>
476<HR>
477
478<A NAME="getNameAndTypeEntry(java.lang.String, java.lang.String)"><!-- --></A><H3>
479getNameAndTypeEntry</H3>
480<PRE>
481public int <B>getNameAndTypeEntry</B>(java.lang.String&nbsp;name,
482 java.lang.String&nbsp;type)</PRE>
483<DL>
484<DD>Get the index of a given CONSTANT_NAMEANDTYPE entry in the constant
485 pool.
486<P>
487<DD><DL>
488<DT><B>Parameters:</B><DD><CODE>name</CODE> - the name<DD><CODE>type</CODE> - the type
489<DT><B>Returns:</B><DD>the index at which the given NameAndType entry occurs in the
490 constant pool or -1 if the value does not occur.</DL>
491</DD>
492</DL>
493<HR>
494
495<A NAME="toString()"><!-- --></A><H3>
496toString</H3>
497<PRE>
498public java.lang.String <B>toString</B>()</PRE>
499<DL>
500<DD>Dump the constant pool to a string.
501<P>
502<DD><DL>
503
504<DT><B>Returns:</B><DD>the constant pool entries as strings</DL>
505</DD>
506</DL>
507<!-- ========= END OF CLASS DATA ========= -->
508<HR>
509
510
511<!-- ======= START OF BOTTOM NAVBAR ====== -->
512<A NAME="navbar_bottom"><!-- --></A>
513<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
514<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
515<TR>
516<TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
517<A NAME="navbar_bottom_firstrow"><!-- --></A>
518<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
519 <TR ALIGN="center" VALIGN="top">
520 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
521 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
522 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
523 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
524 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
525 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
526 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
527 </TR>
528</TABLE>
529</TD>
530<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
531</EM>
532</TD>
533</TR>
534
535<TR>
536<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
537&nbsp;<A HREF="../../../../../../../../org/apache/tools/ant/taskdefs/optional/depend/constantpool/ConstantCPInfo.html" title="class in org.apache.tools.ant.taskdefs.optional.depend.constantpool"><B>PREV CLASS</B></A>&nbsp;
538&nbsp;<A HREF="../../../../../../../../org/apache/tools/ant/taskdefs/optional/depend/constantpool/ConstantPoolEntry.html" title="class in org.apache.tools.ant.taskdefs.optional.depend.constantpool"><B>NEXT CLASS</B></A></FONT></TD>
539<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
540 <A HREF="../../../../../../../../index.html" target="_top"><B>FRAMES</B></A> &nbsp;
541&nbsp;<A HREF="ConstantPool.html" target="_top"><B>NO FRAMES</B></A> &nbsp;
542&nbsp;<SCRIPT type="text/javascript">
543 <!--
544 if(window==top) {
545 document.writeln('<A HREF="../../../../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
546 }
547 //-->
548</SCRIPT>
549<NOSCRIPT>
550 <A HREF="../../../../../../../../allclasses-noframe.html"><B>All Classes</B></A>
551</NOSCRIPT>
552
553</FONT></TD>
554</TR>
555<TR>
556<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
557 SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
558<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
559DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
560</TR>
561</TABLE>
562<A NAME="skip-navbar_bottom"></A>
563<!-- ======== END OF BOTTOM NAVBAR ======= -->
564
565<HR>
566Copyright © 2000-2007 Apache Software Foundation. All Rights Reserved.
567</BODY>
568</HTML>
Note: See TracBrowser for help on using the repository browser.