Class JField
java.lang.Object
org.palladiosimulator.protocom.lang.java.impl.JField
- All Implemented Interfaces:
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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
name()
The name of the field.boolean
type()
Type of the field.The visibility modifier of this field.withInitialization
(String initialization) withModifierVisibility
(String visibility)
-
Constructor Details
-
JField
public JField()
-
-
Method Details
-
name
Description copied from interface:IJField
The name of the field. -
type
Description copied from interface:IJField
Type of the field. -
visibility
Description copied from interface:IJField
The visibility modifier of this field. Default value is PROTECTED.- Specified by:
visibility
in interfaceIJField
-
staticModifier
public boolean staticModifier()- Specified by:
staticModifier
in interfaceIJField
-
finalModifier
public boolean finalModifier()- Specified by:
finalModifier
in interfaceIJField
-
initialization
- Specified by:
initialization
in interfaceIJField
-
withName
-
withType
-
withModifierVisibility
-
withStaticModifier
-
withFinalModifier
-
withInitialization
-
asDefaultSerialVersionUID
-