| Modifier and Type | Class and Description |
|---|---|
| private class |
| Modifier and Type | Field and Description |
|---|---|
| private static volatile boolean | |
| private static final int | |
| private int | |
| private final Map | |
| private static final Logger | |
| private String | |
| private final Class |
| Access | Constructor and Description |
|---|---|
| public | LineNumbers(Class<?>
the class to read line number information from type)Reads line number information from the given class, if available. |
| Modifier and Type | Method and Description |
|---|---|
| public int | |
| public Integer | Returns: the wrapped line number, or null if not availablea field, constructor, or method belonging to the class used during construction member)Get the line number associated with the given member. |
| public String | Returns: the source file name if available, or nullGet the source file name as read from the bytecode. |
| private String |
| alreadyLoggedReadingFailure | back to summary |
|---|---|
| private static volatile boolean alreadyLoggedReadingFailure | |
| ASM_API_LEVEL | back to summary |
|---|---|
| private static final int ASM_API_LEVEL | |
| firstLine | back to summary |
|---|---|
| private int firstLine | |
| lines | back to summary |
|---|---|
| private final Map<String, Integer> lines | |
| logger | back to summary |
|---|---|
| private static final Logger logger | |
| source | back to summary |
|---|---|
| private String source | |
| type | back to summary |
|---|---|
| private final Class<?> type | |
| LineNumbers | back to summary |
|---|---|
| public LineNumbers(Class<?> type) throws IOException Reads line number information from the given class, if available.
| |
| getFirstLine | back to summary |
|---|---|
| public int getFirstLine() Gets the first line number. | |
| getLineNumber | back to summary |
|---|---|
| public Integer getLineNumber(Member member) Get the line number associated with the given member.
| |
| getSource | back to summary |
|---|---|
| public String getSource() Get the source file name as read from the bytecode.
| |
| memberKey | back to summary |
|---|---|
| private String memberKey(Member member) | |
| Modifier and Type | Class and Description |
|---|---|
| pack-priv class | |
| pack-priv class |
| Modifier and Type | Field and Description |
|---|---|
| private int | |
| private String | |
| private String |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void | visit(int
the class version. The minor version is stored in the 16 most significant bits,
and the major version in the 16 least significant bits. version, int the class's access flags (see access, String Opcodes). This parameter also indicates if
the class is deprecated Opcodes#ACC_DEPRECATED or a record Opcodes#ACC_RECORD.the internal name of the class (see name, String Type#getInternalName()).the signature of this class. May be null if the class is not a
generic one, and does not extend or implement generic classes or interfaces. signature, String the internal of name of the super class (see superName, String[] Type#getInternalName()).
For interfaces, the super class is Object. May be null, but only for the
Object class.the internal names of the class's interfaces (see interfaces)Type#getInternalName()). May be null.Overrides org. |
| public AnnotationVisitor | visitAnnotation(String
the class descriptor of the annotation class. desc, boolean true if the annotation is visible at runtime. visible)
Visits an annotation of the class.
|
| public FieldVisitor | visitField(int
the field's access flags (see access, String Opcodes). This parameter also indicates if
the field is synthetic and/or deprecated.the field's name. name, String the field's descriptor (see desc, String Type).the field's signature. May be null if the field's type does not use
generic types. signature, Object the field's initial value. This parameter, which may be null if the
field does not have an initial value, must be an value)Integer, a Float, a Long, a Double or a String (for int, float, long
or String fields respectively). This parameter is only used for static
fields. Its value is ignored for non static fields, which must be initialized through
bytecode instructions in constructors or methods.Overrides org. |
| public void | |
| public MethodVisitor | visitMethod(int
the method's access flags (see access, String Opcodes). This parameter also indicates if
the method is synthetic and/or deprecated.the method's name. name, String the method's descriptor (see desc, String Type).the method's signature. May be null if the method parameters,
return type and exceptions do not use generic types. signature, String[] the internal names of the method's exception classes (see exceptions)Type#getInternalName()). May be null.Overrides org. |
| public AnnotationVisitor | |
| public void | visitSource(String
the name of the source file from which the class was compiled. May be null. source, String additional debug information to compute the correspondence between source and
compiled elements of the class. May be null. debug)Overrides org. |
| line | back to summary |
|---|---|
| private int line | |
| name | back to summary |
|---|---|
| private String name | |
| pendingMethod | back to summary |
|---|---|
| private String pendingMethod | |
| LineNumberReader | back to summary |
|---|---|
| pack-priv LineNumberReader() | |
| visit | back to summary |
|---|---|
| public void visit(int version, int access, String name, String signature, String superName, String[] interfaces) Overrides org. Doc from org. Visits the header of the class.
| |
| visitAnnotation | back to summary |
|---|---|
| public AnnotationVisitor visitAnnotation(String desc, boolean visible) Overrides org. Doc from org. Visits an annotation of the class.
| |
| visitField | back to summary |
|---|---|
| public FieldVisitor visitField(int access, String name, String desc, String signature, Object value) Overrides org. Doc from org. Visits a field of the class.
| |
| visitLineNumber | back to summary |
|---|---|
| public void visitLineNumber(int line, Label start) | |
| visitMethod | back to summary |
|---|---|
| public MethodVisitor visitMethod(int access, String name, String desc, String signature, String[] exceptions) Overrides org. Doc from org. Visits a method of the class. This method must return a new
| |
| visitParameterAnnotation | back to summary |
|---|---|
| public AnnotationVisitor visitParameterAnnotation(int parameter, String desc, boolean visible) | |
| visitSource | back to summary |
|---|---|
| public void visitSource(String source, String debug) Overrides org. Doc from org. Visits the source of the class. | |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public AnnotationVisitor | visitAnnotation(String
the value name. name, String the class descriptor of the nested annotation class. desc)Overrides org. |
| public AnnotationVisitor | visitArray(String
the value name. name)
Visits an array value of the annotation.
|
| public void |
| LineNumberAnnotationVisitor | back to summary |
|---|---|
| pack-priv LineNumberAnnotationVisitor() | |
| visitAnnotation | back to summary |
|---|---|
| public AnnotationVisitor visitAnnotation(String name, String desc) Overrides org. Doc from org. Visits a nested annotation value of the annotation.
| |
| visitArray | back to summary |
|---|---|
| public AnnotationVisitor visitArray(String name) Overrides org. Doc from org. Visits an array value of the annotation. Note that arrays of primitive values (such as byte,
boolean, short, char, int, long, float or double) can be passed as value to
| |
| visitLocalVariable | back to summary |
|---|---|
| public void visitLocalVariable(String name, String desc, String signature, Label start, Label end, int index) | |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public AnnotationVisitor | visitAnnotation(String
the class descriptor of the annotation class. desc, boolean true if the annotation is visible at runtime. visible)
Visits an annotation of this method.
|
| public AnnotationVisitor | visitAnnotationDefault()
Overrides org. |
| public void | visitFieldInsn(int
the opcode of the type instruction to be visited. This opcode is either
GETSTATIC, PUTSTATIC, GETFIELD or PUTFIELD. opcode, String the internal name of the field's owner class (see owner, String Type#getInternalName()).the field's name. name, String the field's descriptor (see desc)
Visits a field instruction.
Type). |
| public void | visitLineNumber(int
a line number. This number refers to the source file from which the class was
compiled. line, Label the first instruction corresponding to this line number. start)
Visits a line number declaration.
|
| LineNumberMethodVisitor | back to summary |
|---|---|
| pack-priv LineNumberMethodVisitor() | |
| visitAnnotation | back to summary |
|---|---|
| public AnnotationVisitor visitAnnotation(String desc, boolean visible) Overrides org. Doc from org. Visits an annotation of this method.
| |
| visitAnnotationDefault | back to summary |
|---|---|
| public AnnotationVisitor visitAnnotationDefault() Overrides org. Doc from org. Visits the default value of this annotation interface method.
| |
| visitFieldInsn | back to summary |
|---|---|
| public void visitFieldInsn(int opcode, String owner, String name, String desc) Overrides org. Doc from org. Visits a field instruction. A field instruction is an instruction that loads or stores the value of a field of an object.
| |
| visitLineNumber | back to summary |
|---|---|
| public void visitLineNumber(int line, Label start) Overrides org. Doc from org. Visits a line number declaration. | |