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>
|
---|
7 | ConstantPool (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">
|
---|
15 | function 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> </TD>
|
---|
36 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
|
---|
37 | <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
|
---|
38 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
|
---|
39 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
|
---|
40 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
|
---|
41 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </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 | <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>
|
---|
53 | <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>
|
---|
56 | <A HREF="ConstantPool.html" target="_top"><B>NO FRAMES</B></A>
|
---|
57 | <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: NESTED | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
|
---|
73 | <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
---|
74 | DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <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">
|
---|
84 | org.apache.tools.ant.taskdefs.optional.depend.constantpool</FONT>
|
---|
85 | <BR>
|
---|
86 | Class ConstantPool</H2>
|
---|
87 | <PRE>
|
---|
88 | java.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>
|
---|
96 | The 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 | Initialise the constant pool.</TD>
|
---|
127 | </TR>
|
---|
128 | </TABLE>
|
---|
129 |
|
---|
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> 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> entry)</CODE>
|
---|
142 |
|
---|
143 | <BR>
|
---|
144 | 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> 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 className)</CODE>
|
---|
150 |
|
---|
151 | <BR>
|
---|
152 | 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> 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 constantValue)</CODE>
|
---|
158 |
|
---|
159 | <BR>
|
---|
160 | 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> <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 index)</CODE>
|
---|
166 |
|
---|
167 | <BR>
|
---|
168 | 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> 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 fieldClassName,
|
---|
174 | java.lang.String fieldName,
|
---|
175 | java.lang.String fieldType)</CODE>
|
---|
176 |
|
---|
177 | <BR>
|
---|
178 | 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> 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 interfaceMethodClassName,
|
---|
185 | java.lang.String interfaceMethodName,
|
---|
186 | java.lang.String interfaceMethodType)</CODE>
|
---|
187 |
|
---|
188 | <BR>
|
---|
189 | 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> 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 methodClassName,
|
---|
196 | java.lang.String methodName,
|
---|
197 | java.lang.String methodType)</CODE>
|
---|
198 |
|
---|
199 | <BR>
|
---|
200 | 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> 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 name,
|
---|
207 | java.lang.String type)</CODE>
|
---|
208 |
|
---|
209 | <BR>
|
---|
210 | 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> 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 value)</CODE>
|
---|
217 |
|
---|
218 | <BR>
|
---|
219 | 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> 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 classStream)</CODE>
|
---|
225 |
|
---|
226 | <BR>
|
---|
227 | 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> 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 | 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> 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 | 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> 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 | Dump the constant pool to a string.</TD>
|
---|
252 | </TR>
|
---|
253 | </TABLE>
|
---|
254 | <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 |
|
---|
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>
|
---|
280 | ConstantPool</H3>
|
---|
281 | <PRE>
|
---|
282 | public <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>
|
---|
299 | read</H3>
|
---|
300 | <PRE>
|
---|
301 | public void <B>read</B>(java.io.DataInputStream 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>
|
---|
316 | size</H3>
|
---|
317 | <PRE>
|
---|
318 | public 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>
|
---|
330 | addEntry</H3>
|
---|
331 | <PRE>
|
---|
332 | public 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> 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>
|
---|
345 | resolve</H3>
|
---|
346 | <PRE>
|
---|
347 | public 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>
|
---|
360 | getEntry</H3>
|
---|
361 | <PRE>
|
---|
362 | public <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 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>
|
---|
374 | getUTF8Entry</H3>
|
---|
375 | <PRE>
|
---|
376 | public int <B>getUTF8Entry</B>(java.lang.String 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>
|
---|
389 | getClassEntry</H3>
|
---|
390 | <PRE>
|
---|
391 | public int <B>getClassEntry</B>(java.lang.String 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>
|
---|
405 | getConstantEntry</H3>
|
---|
406 | <PRE>
|
---|
407 | public int <B>getConstantEntry</B>(java.lang.Object 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>
|
---|
421 | getMethodRefEntry</H3>
|
---|
422 | <PRE>
|
---|
423 | public int <B>getMethodRefEntry</B>(java.lang.String methodClassName,
|
---|
424 | java.lang.String methodName,
|
---|
425 | java.lang.String 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>
|
---|
440 | getInterfaceMethodRefEntry</H3>
|
---|
441 | <PRE>
|
---|
442 | public int <B>getInterfaceMethodRefEntry</B>(java.lang.String interfaceMethodClassName,
|
---|
443 | java.lang.String interfaceMethodName,
|
---|
444 | java.lang.String 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>
|
---|
460 | getFieldRefEntry</H3>
|
---|
461 | <PRE>
|
---|
462 | public int <B>getFieldRefEntry</B>(java.lang.String fieldClassName,
|
---|
463 | java.lang.String fieldName,
|
---|
464 | java.lang.String 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>
|
---|
479 | getNameAndTypeEntry</H3>
|
---|
480 | <PRE>
|
---|
481 | public int <B>getNameAndTypeEntry</B>(java.lang.String name,
|
---|
482 | java.lang.String 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>
|
---|
496 | toString</H3>
|
---|
497 | <PRE>
|
---|
498 | public 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> </TD>
|
---|
521 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
|
---|
522 | <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
|
---|
523 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
|
---|
524 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
|
---|
525 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
|
---|
526 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </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 | <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>
|
---|
538 | <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>
|
---|
541 | <A HREF="ConstantPool.html" target="_top"><B>NO FRAMES</B></A>
|
---|
542 | <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: NESTED | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
|
---|
558 | <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
---|
559 | DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <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>
|
---|
566 | Copyright © 2000-2007 Apache Software Foundation. All Rights Reserved.
|
---|
567 | </BODY>
|
---|
568 | </HTML>
|
---|