javaFieldDef

The <javaFieldDef> element represents the FieldDeclaration of a class declaration.

Description

The variables of a class type are introduced by the field declarations:

FieldDeclaration:
      FieldModifiersopt   Data Type    VariableDeclarators  

A field definition can include a set of attributes, a new modifier, a valid combination of the four access modifiers, and a static modifier. Also, a field declaration can include a read-only modifier or a volatile modifier, but not both. The public, protected, and private access modifiers are introduced by the <javaFieldAccess> element. The FieldModifiers and Data Type apply to all the decorators in the declaration.

Contained by

javaFieldDetail

Contains

apiData, javaFieldAccess, javaFieldArray, javaFieldClass, javaFieldInterface, javaFieldPrimitive, javaFinalField, javaStaticField, javaTransientField, javaVolatileField

Content model

( (javaFinalField) (optional) then (javaStaticField) (optional) then (javaTransientField) (optional) then (javaVolatileField) (optional) then (javaFieldAccess) (optional) then (javaFieldClass or javaFieldInterface or javaFieldPrimitive) then (javaFieldArray) (any number) then (apiData) (optional))

Inheritance

topic/section reference/section apiRef/apiDef apiValue/apiValueDef