ClassReader (Java SE 26 & JDK 26)
- All Superinterfaces:
ConstantPool, Iterable<PoolEntry>
-
Method Summary
intReturns the length of the
classfile, in number of bytes.voidCopy a range of bytes from the
classfile to aBufWriter.Returns the table of custom attribute mappers.
intflags()Returns the access flags for the class, as a bit mask.
byte[]readBytes(int offset, int len) Returns a copy of the bytes at the specified range in the
classfile.doublereadDouble(int offset) Returns the double value at the specified offset within the
classfile.readEntry(int offset) Returns the constant pool entry whose index is given at the specified offset within the
classfile.readEntry(int offset, Class<T> cls) Returns the constant pool entry of a given type whose index is given at the specified offset within the
classfile.readEntryOrNull(int offset) Returns the constant pool entry whose index is given at the specified offset within the
classfile, ornullif the index at the specified offset is zero.readEntryOrNull(int offset, Class<T> cls) Returns the constant pool entry of a given type whose index is given at the specified offset within the
classfile, ornullif the index at the specified offset is zero.floatreadFloat(int offset) Returns the float value at the specified offset within the
classfile.intreadInt(int offset) Returns the signed int at the specified offset within the
classfile.longreadLong(int offset) Returns the signed long at the specified offset within the
classfile.intreadS1(int offset) Returns the signed byte at the specified offset within the
classfile.intreadS2(int offset) Returns the signed byte at the specified offset within the
classfile.intreadU1(int offset) Returns the unsigned byte at the specified offset within the
classfile.intreadU2(int offset) Returns the
u2at the specified offset within theclassfile.Returns the constant pool entry describing the name of the superclass, if any.
Returns the constant pool entry describing the name of class.
Methods declared in interface Iterable
default voidPerforms the given action for each element of the
Iterableuntil all elements have been processed or the action throws an exception.Creates a
Spliteratorover the elements described by thisIterable.
-
Method Details
-
customAttributes
-
flags
-
thisClassEntry
-
superclassEntry
-
classfileLength
-
readEntry
-
readEntry
-
readEntryOrNull
-
readEntryOrNull
-
readU1
-
readU2
-
readS1
-
readS2
-
readInt
-
readLong
-
readFloat
-
readDouble
-
readBytes
-
copyBytesTo
-