Package org.gnome.glib
Class ScannerConfig
java.lang.Object
io.github.jwharm.javagi.base.ProxyInstance
org.gnome.glib.ScannerConfig
- All Implemented Interfaces:
Proxy
Specifies the
GScanner
parser configuration. Most settings can
be changed during the parsing phase and will affect the lexical
parsing of the next unpeeked token.-
Constructor Summary
ConstructorDescriptionAllocate a new ScannerConfig.ScannerConfig
(Arena arena) Allocate a new ScannerConfig.ScannerConfig
(MemorySegment address) Create a ScannerConfig proxy instance for the provided memory address.ScannerConfig
(String csetSkipCharacters, String csetIdentifierFirst, String csetIdentifierNth, String cpairCommentSingle, int paddingDummy) Allocate a new ScannerConfig with the fields set to the provided values.ScannerConfig
(String csetSkipCharacters, String csetIdentifierFirst, String csetIdentifierNth, String cpairCommentSingle, int paddingDummy, Arena arena) Allocate a new ScannerConfig with the fields set to the provided values. -
Method Summary
Modifier and TypeMethodDescriptionstatic MemoryLayout
The memory layout of the native struct.Read the value of the fieldcpair_comment_single
.Read the value of the fieldcset_identifier_first
.Read the value of the fieldcset_identifier_nth
.Read the value of the fieldcset_skip_characters
.int
Read the value of the fieldpadding_dummy
.void
writeCpairCommentSingle
(String cpairCommentSingle, Arena _arena) Write a value in the fieldcpair_comment_single
.void
writeCsetIdentifierFirst
(String csetIdentifierFirst, Arena _arena) Write a value in the fieldcset_identifier_first
.void
writeCsetIdentifierNth
(String csetIdentifierNth, Arena _arena) Write a value in the fieldcset_identifier_nth
.void
writeCsetSkipCharacters
(String csetSkipCharacters, Arena _arena) Write a value in the fieldcset_skip_characters
.void
writePaddingDummy
(int paddingDummy) Write a value in the fieldpadding_dummy
.Methods inherited from class io.github.jwharm.javagi.base.ProxyInstance
equals, handle, hashCode
-
Constructor Details
-
ScannerConfig
Create a ScannerConfig proxy instance for the provided memory address.- Parameters:
address
- the memory address of the native object
-
ScannerConfig
Allocate a new ScannerConfig.- Parameters:
arena
- to control the memory allocation scope
-
ScannerConfig
public ScannerConfig()Allocate a new ScannerConfig. The memory is allocated withArena.ofAuto()
. -
ScannerConfig
public ScannerConfig(String csetSkipCharacters, String csetIdentifierFirst, String csetIdentifierNth, String cpairCommentSingle, int paddingDummy, Arena arena) Allocate a new ScannerConfig with the fields set to the provided values.- Parameters:
csetSkipCharacters
- value for the fieldcsetSkipCharacters
csetIdentifierFirst
- value for the fieldcsetIdentifierFirst
csetIdentifierNth
- value for the fieldcsetIdentifierNth
cpairCommentSingle
- value for the fieldcpairCommentSingle
paddingDummy
- value for the fieldpaddingDummy
arena
- to control the memory allocation scope
-
ScannerConfig
public ScannerConfig(String csetSkipCharacters, String csetIdentifierFirst, String csetIdentifierNth, String cpairCommentSingle, int paddingDummy) Allocate a new ScannerConfig with the fields set to the provided values. The memory is allocated withArena.ofAuto()
.- Parameters:
csetSkipCharacters
- value for the fieldcsetSkipCharacters
csetIdentifierFirst
- value for the fieldcsetIdentifierFirst
csetIdentifierNth
- value for the fieldcsetIdentifierNth
cpairCommentSingle
- value for the fieldcpairCommentSingle
paddingDummy
- value for the fieldpaddingDummy
-
-
Method Details
-
getMemoryLayout
The memory layout of the native struct.- Returns:
- the memory layout
-
readCsetSkipCharacters
Read the value of the fieldcset_skip_characters
.- Returns:
- The value of the field
cset_skip_characters
-
writeCsetSkipCharacters
-
readCsetIdentifierFirst
Read the value of the fieldcset_identifier_first
.- Returns:
- The value of the field
cset_identifier_first
-
writeCsetIdentifierFirst
-
readCsetIdentifierNth
Read the value of the fieldcset_identifier_nth
.- Returns:
- The value of the field
cset_identifier_nth
-
writeCsetIdentifierNth
-
readCpairCommentSingle
Read the value of the fieldcpair_comment_single
.- Returns:
- The value of the field
cpair_comment_single
-
writeCpairCommentSingle
-
readPaddingDummy
public int readPaddingDummy()Read the value of the fieldpadding_dummy
.- Returns:
- The value of the field
padding_dummy
-
writePaddingDummy
public void writePaddingDummy(int paddingDummy) Write a value in the fieldpadding_dummy
.- Parameters:
paddingDummy
- The new value for the fieldpadding_dummy
-