Class FieldData
java.lang.Object
org.openjdk.jol.info.FieldData
Holds the field information, without the layout.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet contentded group of the field.static FieldDataCreates the synthetic field data.static FieldDatacreate(String hostKlass, String fieldName, String fieldType, boolean isContended, String contendedGroup) Creates the field data.Answers the class for the field holder.booleanAnswers whether the field has contentded annotation.booleanname()Answers the field name.static FieldDataParses the field data from the existing field.refField()Get original Field.toString()Answers the class for the field type
-
Field Details
-
name
-
type
-
klass
-
refField
-
isContended
private final boolean isContended -
contendedGroup
-
-
Constructor Details
-
FieldData
-
-
Method Details
-
create
-
create
public static FieldData create(String hostKlass, String fieldName, String fieldType, boolean isContended, String contendedGroup) Creates the field data.- Parameters:
hostKlass- class name where the field is declaredfieldName- field namefieldType- string representation of field typeisContended- true if the field marked withjdk.internal.vm.annotation.ContendedannotationcontendedGroup- name of the group specified in the@Contendedannotation- Returns:
- field data
-
parse
-
typeClass
Answers the class for the field type- Returns:
- string representation of field type
-
isPrimitive
public boolean isPrimitive() -
hostClass
Answers the class for the field holder.- Returns:
- string representation of holder class
-
name
-
isContended
public boolean isContended()Answers whether the field has contentded annotation.- Returns:
- true, if the field is contended
-
contendedGroup
-
refField
-
toString
-