Package com.smeup.kokos.sdk.rpgle.util
Class DataStructHelper
java.lang.Object
com.smeup.kokos.sdk.rpgle.util.DataStructHelper
Helper class for interacting with RPGLE Data Structures.
Provides methods to get and set field values within a DataStructValue.
-
Method Summary
Modifier and TypeMethodDescriptioncom.smeup.rpgparser.interpreter.TypeGet the type of field of the data structurecom.smeup.rpgparser.interpreter.ValueRetrieves the value of a field in the data structure.voidSets the value of a field in the data structure.
-
Method Details
-
getValue
Retrieves the value of a field in the data structure.- Parameters:
fieldName- the name of the field to retrieve- Returns:
- the value of the specified field
-
setValue
Sets the value of a field in the data structure.- Parameters:
fieldName- the name of the field to setvalue- the value to assign to the specified field
-
getType
Get the type of field of the data structure- Parameters:
fieldName- The name of the field to retrieve the type of- Returns:
- The type of the specified field
-