Package de.inetsoftware.classparser
Class FieldInfo
- java.lang.Object
-
- de.inetsoftware.classparser.FieldInfo
-
public class FieldInfo extends java.lang.ObjectDescribed 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 intaccessFlagsprivate Attributesattributesprivate java.lang.Stringdescriptionprivate java.lang.Stringname
-
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 intgetAccessFlags()Get the access flags of the method.java.lang.StringgetName()Get the name of the fieldjava.lang.StringgetType()Get the type of the field.booleanisStatic()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.IOExceptionRead 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
-
-