Package lib.reports.info
Class FieldInfoImpl
java.lang.Object
lib.reports.info.FieldInfoImpl
- All Implemented Interfaces:
FieldInfo
Class that implements
FieldInfo
-
Constructor Summary
ConstructorsConstructorDescriptionFieldInfoImpl
(String fieldName, String fieldType, String fieldModifiers, Report parentClassReport) Class constructor. -
Method Summary
Modifier and TypeMethodDescriptionGet all the modifiers of the method, if presentGet the name of the fieldGet the type of the fieldGet the full parentClassReport
toString()
-
Constructor Details
-
FieldInfoImpl
public FieldInfoImpl(String fieldName, String fieldType, String fieldModifiers, Report parentClassReport) Class constructor. Build info with data passed as parameters- Parameters:
fieldName
- field namefieldType
- field typefieldModifiers
- field modifiersparentClassReport
- field parent class report- See Also:
-
NodeWithModifiers
-
-
Method Details
-
getFieldName
Description copied from interface:FieldInfo
Get the name of the field- Specified by:
getFieldName
in interfaceFieldInfo
- Returns:
- the name
-
getFieldType
Description copied from interface:FieldInfo
Get the type of the field- Specified by:
getFieldType
in interfaceFieldInfo
- Returns:
- the type name
-
getFieldModifiers
Description copied from interface:FieldInfo
Get all the modifiers of the method, if present- Specified by:
getFieldModifiers
in interfaceFieldInfo
- Returns:
- an
Optional<String>
if the modifiers are present, Empty otherwise
-
getParentClassReport
Description copied from interface:FieldInfo
Get the full parentClassReport
- Specified by:
getParentClassReport
in interfaceFieldInfo
- Returns:
- the parent report
-
toString
-