- All Known Subinterfaces:
ClassReader,ConstantPoolBuilder
- All Known Implementing Classes:
ClassReaderImpl,SplitConstantPool,TemporaryConstantPool
Provides read access to the constant pool and bootstrap method table of a
classfile.
-
Method Summary
Modifier and TypeMethodDescriptionintReturns the number of entries in the bootstrap method table.bootstrapMethodEntry(int index) Returns theBootstrapMethodEntryat the specified index within the bootstrap method table.entryByIndex(int index) Returns the entry at the specified index.intReturns the number of entries in the constant pool.
-
Method Details
-
entryByIndex
Returns the entry at the specified index.- Parameters:
index- the index within the pool of the desired entry- Returns:
- the entry at the specified index
-
entryCount
int entryCount()Returns the number of entries in the constant pool.- Returns:
- the number of entries in the constant pool
-
bootstrapMethodEntry
Returns theBootstrapMethodEntryat the specified index within the bootstrap method table.- Parameters:
index- the index within the bootstrap method table of the desired entry- Returns:
- the
BootstrapMethodEntryat the specified index within the bootstrap method table
-
bootstrapMethodCount
int bootstrapMethodCount()Returns the number of entries in the bootstrap method table.- Returns:
- the number of entries in the bootstrap method table
-