org.codehaus.janino.util
Class ClassFile.FieldInfo
java.lang.Object
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.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ClassFile.FieldInfo
public ClassFile.FieldInfo(Java.Modifiers modifiers,
short nameIndex,
short descriptorIndex,
List<ClassFile.AttributeInfo> attributes)
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