Package org.gnome.glib
Class ScannerConfig
java.lang.Object
org.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
ConstructorsConstructorDescriptionAllocate 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 MemoryLayoutThe 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.intRead the value of the fieldpadding_dummy.voidwriteCpairCommentSingle(String cpairCommentSingle, Arena _arena) Write a value in the fieldcpair_comment_single.voidwriteCsetIdentifierFirst(String csetIdentifierFirst, Arena _arena) Write a value in the fieldcset_identifier_first.voidwriteCsetIdentifierNth(String csetIdentifierNth, Arena _arena) Write a value in the fieldcset_identifier_nth.voidwriteCsetSkipCharacters(String csetSkipCharacters, Arena _arena) Write a value in the fieldcset_skip_characters.voidwritePaddingDummy(int paddingDummy) Write a value in the fieldpadding_dummy.Methods inherited from class org.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 fieldcsetSkipCharacterscsetIdentifierFirst- value for the fieldcsetIdentifierFirstcsetIdentifierNth- value for the fieldcsetIdentifierNthcpairCommentSingle- value for the fieldcpairCommentSinglepaddingDummy- value for the fieldpaddingDummyarena- 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 fieldcsetSkipCharacterscsetIdentifierFirst- value for the fieldcsetIdentifierFirstcsetIdentifierNth- value for the fieldcsetIdentifierNthcpairCommentSingle- value for the fieldcpairCommentSinglepaddingDummy- 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
-