Class: FunctionCallStructField
Function Call field with a string value.
public final class FunctionCallStructField extends FunctionCallField
Constructor: FunctionCallStructField(String fieldName)
Constructs the field with a name and no component fields.
Declaration
public FunctionCallStructField(String fieldName)
Parameters
Parameter | Value |
---|---|
fieldName | The field name. |
Returns
None
Exceptions
Exception type | Reason |
---|---|
IllegalArgumentException | The fieldName is null or empty. |
Constructor: FunctionCallStructField(String fieldName, FunctionCallField[] fieldList)
Constructs the field with a name and component fields.
Declaration
public FunctionCallStructField(String fieldName, FunctionCallField[] fieldList)
Parameters
Parameter | Value |
---|---|
fieldName | The field name. |
fieldList | The component fields. |
Returns
None
Exceptions
Exception type | Reason |
---|---|
IllegalArgumentException | The fieldName is null or empty. |
Method: size
The number of fields in the struct.
Declaration
public int size()
Parameters
None
Returns
Returns the number of fields in the struct.
Exceptions
Method: keyList
A new array containing all the field names in the struct, or an empty array if the struct has no fields.
Declaration
public String[] keyList()
Parameters
None
Returns
Returns a new array containing all of the field names in the struct, or an empty array if the struct has no fields.
Exceptions
None
Method: values
A new array containing all the fields in the struct, or an empty array if the struct has no fields.
Declaration
public String[] values()
Parameters
None
Returns
Returns a new array containing all of the fields in the struct, or an empty array if the struct has no fields.
Exceptions
None
Method: getField
Gets a field from the structure by name.
Declaration
public FunctionCallField getField(String key)
Parameters
Parameter | Value |
---|---|
key | The name of the field to get from the structure. |
Returns
Returns the field from the structure (null if the structure doesn't contain a field with this name).
Exceptions
None
Method: getField
Gets a field from the structure by index.
Declaration
public FunctionCallField getField(int index)
Parameters
Parameter | Value |
---|---|
index | The 0-based index location of the field in the structure. |
Returns
Returns the field from the structure (null if the index is negative or exceeds the bounds of the structure).
Exceptions
None
Method: addField
Inserts a field at the end of the structure.
Declaration
public void addField(FunctionCallField field)
Parameters
Parameter | Value |
---|---|
field | The field to add at the end of the structure's content. This value must not be null. |
Returns
None
Exceptions
Exception type | Reason |
---|---|
IllegalArgumentException | The field is null. |
Loading...
There was a problem loading this topic