Package org.codehaus.janino.util
Class ClassFile.FieldInfo
- java.lang.Object
-
- org.codehaus.janino.util.ClassFile.FieldInfo
-
-
Constructor Summary
Constructors Constructor Description FieldInfo(Java.Modifiers modifiers, short nameIndex, short descriptorIndex, List<ClassFile.AttributeInfo> attributes)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addAttribute(ClassFile.AttributeInfo attribute)
Adds the givenattribute
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 aDataOutputStream
, in the format described inJVMS7 4.5.
-
-
-
Constructor Detail
-
FieldInfo
public 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
-
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 givenattribute
to this field.
-
store
public void store(DataOutputStream dos) throws IOException
Writes this object to aDataOutputStream
, in the format described inJVMS7 4.5.- Throws:
IOException
-
-