Package de.inetsoftware.classparser
Class FieldInfo
java.lang.Object
de.inetsoftware.classparser.FieldInfo
Described a Field of a class.
http://docs.oracle.com/javase/specs/jvms/se7/html/jvms-4.html#jvms-4.5
http://docs.oracle.com/javase/specs/jvms/se5.0/html/ClassFile.doc.html#2877
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final int
private final Attributes
private final String
private final String
-
Constructor Summary
ConstructorsConstructorDescriptionFieldInfo
(DataInputStream input, ConstantPool constantPool) Read a single FieldInfo. -
Method Summary
-
Field Details
-
accessFlags
private final int accessFlags -
name
-
description
-
attributes
-
-
Constructor Details
-
FieldInfo
FieldInfo(DataInputStream input, ConstantPool constantPool) throws IOException Read a single FieldInfo. http://docs.oracle.com/javase/specs/jvms/se7/html/jvms-4.html#jvms-4.5 http://docs.oracle.com/javase/specs/jvms/se5.0/html/ClassFile.doc.html#2877- Parameters:
input
-constantPool
-- Throws:
IOException
-
-
Method Details
-
getAccessFlags
public int getAccessFlags()Get the access flags of the method. http://docs.oracle.com/javase/specs/jvms/se7/html/jvms-4.html#jvms-4.5-200-A http://docs.oracle.com/javase/specs/jvms/se5.0/html/ClassFile.doc.html#87652- Returns:
- the flags
-
isStatic
public boolean isStatic()If this field is static or not- Returns:
- true, if static
-
getName
Get the name of the field- Returns:
- the name
-
getType
Get the type of the field.- Returns:
- the type
-