Class JField

  • All Implemented Interfaces:
    IJField

    public class JField
    extends Object
    implements IJField
    Class representing a field in Java. This is a data class. Since methods are not a compilation unit, they do not inherit GeneratedFile. TODO: Change class to @Data
    • Constructor Detail

      • JField

        public JField()
    • Method Detail

      • name

        public String name()
        Description copied from interface: IJField
        The name of the field.
        Specified by:
        name in interface IJField
      • type

        public String type()
        Description copied from interface: IJField
        Type of the field.
        Specified by:
        type in interface IJField
      • visibility

        public String visibility()
        Description copied from interface: IJField
        The visibility modifier of this field. Default value is PROTECTED.
        Specified by:
        visibility in interface IJField
      • withModifierVisibility

        public JField withModifierVisibility​(String visibility)
      • withStaticModifier

        public JField withStaticModifier()
      • withFinalModifier

        public JField withFinalModifier()
      • withInitialization

        public JField withInitialization​(String initialization)
      • asDefaultSerialVersionUID

        public JField asDefaultSerialVersionUID()