Package de.inetsoftware.classparser
Class FieldInfo
- java.lang.Object
-
- de.inetsoftware.classparser.FieldInfo
-
public class FieldInfo extends java.lang.Object
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
Fields Modifier and Type Field Description private int
accessFlags
private Attributes
attributes
private java.lang.String
description
private java.lang.String
name
-
Constructor Summary
Constructors Constructor Description FieldInfo(java.io.DataInputStream input, ConstantPool constantPool)
Read a single FieldInfo.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getAccessFlags()
Get the access flags of the method.java.lang.String
getName()
Get the name of the fieldjava.lang.String
getType()
Get the type of the field.boolean
isStatic()
If this field is static or not
-
-
-
Field Detail
-
accessFlags
private final int accessFlags
-
name
private final java.lang.String name
-
description
private final java.lang.String description
-
attributes
private final Attributes attributes
-
-
Constructor Detail
-
FieldInfo
FieldInfo(java.io.DataInputStream input, ConstantPool constantPool) throws java.io.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:
java.io.IOException
-
-
Method Detail
-
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
public java.lang.String getName()
Get the name of the field- Returns:
- the name
-
getType
public java.lang.String getType()
Get the type of the field.- Returns:
- the type
-
-