public interface ClassFile
Modifier and Type | Method and Description |
---|---|
java.lang.String |
classNameCP(int index)
Get the class name at the given constant pool index.
|
java.lang.String |
compilerVersion(java.lang.String ts)
Get the encoded compiler version used to compile the source.
|
Attribute |
createAttribute(java.io.DataInputStream in,
java.lang.String name,
int nameIndex,
int length) |
Field |
createField(java.io.DataInputStream in) |
Method |
createMethod(java.io.DataInputStream in) |
java.lang.String |
encodedClassType(java.lang.String typeSystemKey)
Get the encoded class type for the given type system.
|
Attribute[] |
getAttrs() |
java.net.URI |
getClassFileURI() |
Constant[] |
getConstants() |
Field[] |
getFields() |
InnerClasses |
getInnerClasses() |
int[] |
getInterfaces() |
Method[] |
getMethods() |
int |
getModifiers() |
int |
getSuperClass() |
int |
getThisClass() |
java.lang.String |
name()
Get the name of the class, including the package name.
|
void |
readAttributes(java.io.DataInputStream in)
Read the class's attributes.
|
long |
sourceLastModified(java.lang.String ts)
Get the encoded source modified time.
|
java.net.URI getClassFileURI()
long sourceLastModified(java.lang.String ts)
java.lang.String compilerVersion(java.lang.String ts)
java.lang.String encodedClassType(java.lang.String typeSystemKey)
java.lang.String classNameCP(int index)
java.lang.String name()
void readAttributes(java.io.DataInputStream in) throws java.io.IOException
in
- The stream from which to read.java.io.IOException
- If an error occurs while reading.Method createMethod(java.io.DataInputStream in) throws java.io.IOException
java.io.IOException
Field createField(java.io.DataInputStream in) throws java.io.IOException
java.io.IOException
Attribute createAttribute(java.io.DataInputStream in, java.lang.String name, int nameIndex, int length) throws java.io.IOException
java.io.IOException
Attribute[] getAttrs()
Constant[] getConstants()
Field[] getFields()
InnerClasses getInnerClasses()
int[] getInterfaces()
Method[] getMethods()
int getModifiers()
int getSuperClass()
int getThisClass()