public class ClassData extends MemberData
Modifier and Type | Field and Description |
---|---|
protected java.util.ArrayList<BootstrapMethodData> |
bootstrapMethods |
private java.nio.file.Path |
classFile |
protected java.util.ArrayList<FieldData> |
fields |
protected java.util.ArrayList<InnerClassData> |
innerClasses |
protected int[] |
interfaces |
protected int |
major_version |
protected java.util.ArrayList<MethodData> |
methods |
protected int |
minor_version |
protected ModuleData |
moduleData |
protected NestHostData |
nestHost |
protected NestMembersData |
nestMembers |
protected java.io.PrintWriter |
out |
protected PermittedSubclassesData |
permittedSubclassesData |
protected java.lang.String |
pkgPrefix |
protected ConstantPool |
pool |
protected RecordData |
record |
protected int |
source_cpx |
private TextLines |
sourceLines |
protected int |
super_cpx |
protected int |
this_cpx |
protected Tool |
tool |
access, attrs, cls, invisibleAnnotations, invisibleTypeAnnotations, isDeprecated, isSynthetic, memberType, options, pr_cpx, signature, visibleAnnotations, visibleTypeAnnotations
Constructor and Description |
---|
ClassData(java.io.PrintWriter out,
Tool tool) |
Modifier and Type | Method and Description |
---|---|
private java.util.List<java.io.IOException> |
getIssues() |
java.lang.String |
getSrcLine(int lnum)
Read and resolve the attribute data
|
protected boolean |
handleAttributes(java.io.DataInputStream in,
Tables.AttrTag attrtag,
int attrlen)
Read and resolve the attribute data
|
private boolean |
isModuleUnit() |
void |
print() |
private <T extends AnnotationData> |
printAnnotations(java.util.List<T> annotations) |
private void |
printMemberDataList(java.util.List<? extends MemberData> list) |
private void |
read(java.io.DataInputStream in)
Read and resolve the class data
|
void |
read(java.io.File in) |
void |
read(java.lang.String in) |
protected void |
readFields(java.io.DataInputStream in)
Read and resolve the field data
|
protected void |
readInterfaces(java.io.DataInputStream in)
Read and resolve the interface data
|
protected void |
readMethods(java.io.DataInputStream in)
Read and resolve the method data
|
getAnnotationsCount, init, printAnnotations, printVar, readAttributes
decreaseIndent, getIndentString, increaseIndent, indent, setIndent
protected Tool tool
protected int minor_version
protected int major_version
protected int this_cpx
protected int super_cpx
protected int source_cpx
protected ConstantPool pool
protected int[] interfaces
protected java.util.ArrayList<FieldData> fields
protected java.util.ArrayList<MethodData> methods
protected RecordData record
protected java.util.ArrayList<InnerClassData> innerClasses
protected java.util.ArrayList<BootstrapMethodData> bootstrapMethods
protected ModuleData moduleData
protected NestHostData nestHost
protected NestMembersData nestMembers
protected PermittedSubclassesData permittedSubclassesData
protected java.io.PrintWriter out
protected java.lang.String pkgPrefix
private TextLines sourceLines
private java.nio.file.Path classFile
public ClassData(java.io.PrintWriter out, Tool tool)
public void read(java.io.File in) throws java.io.IOException
java.io.IOException
public void read(java.lang.String in) throws java.io.IOException
java.io.IOException
protected void readFields(java.io.DataInputStream in) throws java.io.IOException
java.io.IOException
protected void readMethods(java.io.DataInputStream in) throws java.io.IOException
java.io.IOException
protected void readInterfaces(java.io.DataInputStream in) throws java.io.IOException
java.io.IOException
protected boolean handleAttributes(java.io.DataInputStream in, Tables.AttrTag attrtag, int attrlen) throws java.io.IOException
handleAttributes
in class MemberData
java.io.IOException
private void read(java.io.DataInputStream in) throws java.io.IOException
java.io.IOException
public java.lang.String getSrcLine(int lnum)
private <T extends AnnotationData> void printAnnotations(java.util.List<T> annotations)
public void print() throws java.io.IOException
print
in class MemberData
java.io.IOException
private boolean isModuleUnit()
private void printMemberDataList(java.util.List<? extends MemberData> list) throws java.io.IOException
java.io.IOException
private java.util.List<java.io.IOException> getIssues()