Package de.inetsoftware.classparser
Class Attributes
- java.lang.Object
-
- de.inetsoftware.classparser.Attributes
-
public class Attributes extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static class
Attributes.AttributeInfo
-
Field Summary
Fields Modifier and Type Field Description private Attributes.AttributeInfo[]
attributes
private ConstantPool
constantPool
-
Constructor Summary
Constructors Constructor Description Attributes(java.io.DataInputStream input, ConstantPool constantPool)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) Attributes.AttributeInfo
get(java.lang.String name)
java.lang.String
getSourceFile()
Get value of SourceFile if available.private Attributes.AttributeInfo[]
readAttributs(java.io.DataInputStream input)
-
-
-
Field Detail
-
attributes
private final Attributes.AttributeInfo[] attributes
-
constantPool
private final ConstantPool constantPool
-
-
Constructor Detail
-
Attributes
Attributes(@Nonnull java.io.DataInputStream input, @Nonnull ConstantPool constantPool) throws java.io.IOException
- Throws:
java.io.IOException
-
-
Method Detail
-
readAttributs
private Attributes.AttributeInfo[] readAttributs(@Nonnull java.io.DataInputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
get
@Nullable Attributes.AttributeInfo get(java.lang.String name)
-
getSourceFile
public java.lang.String getSourceFile() throws java.io.IOException
Get value of SourceFile if available.- Returns:
- the source file name or null.
- Throws:
java.io.IOException
- if an I/O error occurs.
-
-