janino.net

org.codehaus.janino.util
Class ClassFile.FieldInfo

java.lang.Object
  extended by org.codehaus.janino.util.ClassFile.FieldInfo
Enclosing class:
ClassFile

public static class ClassFile.FieldInfo
extends Object

Representation of a "method_info" structure, as defined by JVMS7 4.5.


Constructor Summary
ClassFile.FieldInfo(Java.Modifiers modifiers, short nameIndex, short descriptorIndex, List<ClassFile.AttributeInfo> attributes)
           
 
Method Summary
 void addAttribute(ClassFile.AttributeInfo attribute)
          Adds the given attribute to this field.
 Java.Annotation[] getAnnotations()
           
 ClassFile.AttributeInfo[] getAttributes()
           
 String getDescriptor(ClassFile classFile)
           
 short getModifierFlags()
           
 String getName(ClassFile classFile)
           
 void store(DataOutputStream dos)
          Writes this object to a DataOutputStream, in the format described inJVMS7 4.5.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClassFile.FieldInfo

public ClassFile.FieldInfo(Java.Modifiers modifiers,
                           short nameIndex,
                           short descriptorIndex,
                           List<ClassFile.AttributeInfo> attributes)
Method Detail

getModifierFlags

public short getModifierFlags()
Returns:
The modifier flags of the field; or'ed values are the constants declared in Mod

getAnnotations

public Java.Annotation[] getAnnotations()
Returns:
The annotations of this field

getName

public String getName(ClassFile classFile)
Returns:
The field's name

getDescriptor

public String getDescriptor(ClassFile classFile)
Returns:
The field descriptor describing this field

getAttributes

public ClassFile.AttributeInfo[] getAttributes()
Returns:
The attributes of this field

addAttribute

public void addAttribute(ClassFile.AttributeInfo attribute)
Adds the given attribute to this field.


store

public void store(DataOutputStream dos)
           throws IOException
Writes this object to a DataOutputStream, in the format described inJVMS7 4.5.

Throws:
IOException

janino.net