java.lang.Object
org.palladiosimulator.protocom.lang.java.impl.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 Details

    • JField

      public JField()
  • Method Details

    • 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
    • staticModifier

      public boolean staticModifier()
      Specified by:
      staticModifier in interface IJField
    • finalModifier

      public boolean finalModifier()
      Specified by:
      finalModifier in interface IJField
    • initialization

      public String initialization()
      Specified by:
      initialization in interface IJField
    • withName

      public JField withName(String name)
    • withType

      public JField withType(String type)
    • withModifierVisibility

      public JField withModifierVisibility(String visibility)
    • withStaticModifier

      public JField withStaticModifier()
    • withFinalModifier

      public JField withFinalModifier()
    • withInitialization

      public JField withInitialization(String initialization)
    • asDefaultSerialVersionUID

      public JField asDefaultSerialVersionUID()