java.lang.Object | |
↳ | sun.tools.java.BinaryConstantPool |
This class is used to represent a constant table once it is read from a class file. WARNING: The contents of this source file are not part of any supported API. Code that depends on them does so at its own risk: they are subject to change or removal without notice.
[Expand]
Inherited Fields | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
From interface
sun.tools.java.Constants
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
From interface
sun.tools.java.RuntimeConstants
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Create a hash table of all the items in the constant pool that could
possibly be referenced from the outside.
| |||||||||||
get the n-th constant from the constant pool
| |||||||||||
get the type of constant given an index
| |||||||||||
get class declaration
| |||||||||||
get class declaration
| |||||||||||
Get a list of dependencies, ie: all the classes referenced in this
constant pool.
| |||||||||||
get an identifier
| |||||||||||
get a integer
| |||||||||||
get a string
| |||||||||||
get a type from a type signature
| |||||||||||
get a value
| |||||||||||
Find the index of an Object in the constant pool
| |||||||||||
Find the index of an ascii string in the constant pool.
| |||||||||||
Write out the contents of the constant pool, including any additions
that have been added.
|
[Expand]
Inherited Methods | |||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Create a hash table of all the items in the constant pool that could possibly be referenced from the outside.
get the type of constant given an index
Get a list of dependencies, ie: all the classes referenced in this constant pool.
get a integer
Find the index of an Object in the constant pool
Find the index of an ascii string in the constant pool. If it's not in the constant pool, then add it at the end.
Write out the contents of the constant pool, including any additions that have been added.
IOException |
---|