Class ScannerConfig

java.lang.Object
org.javagi.base.ProxyInstance
org.gnome.glib.ScannerConfig
All Implemented Interfaces:
Proxy

@Generated("org.javagi.JavaGI") public class ScannerConfig extends ProxyInstance
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 Details

    • ScannerConfig

      public ScannerConfig(MemorySegment address)
      Create a ScannerConfig proxy instance for the provided memory address.
      Parameters:
      address - the memory address of the native object
    • ScannerConfig

      public ScannerConfig(Arena arena)
      Allocate a new ScannerConfig.
      Parameters:
      arena - to control the memory allocation scope
    • ScannerConfig

      public ScannerConfig()
      Allocate a new ScannerConfig. The memory is allocated with Arena.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 field csetSkipCharacters
      csetIdentifierFirst - value for the field csetIdentifierFirst
      csetIdentifierNth - value for the field csetIdentifierNth
      cpairCommentSingle - value for the field cpairCommentSingle
      paddingDummy - value for the field paddingDummy
      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 with Arena.ofAuto().
      Parameters:
      csetSkipCharacters - value for the field csetSkipCharacters
      csetIdentifierFirst - value for the field csetIdentifierFirst
      csetIdentifierNth - value for the field csetIdentifierNth
      cpairCommentSingle - value for the field cpairCommentSingle
      paddingDummy - value for the field paddingDummy
  • Method Details

    • getMemoryLayout

      public static MemoryLayout getMemoryLayout()
      The memory layout of the native struct.
      Returns:
      the memory layout
    • readCsetSkipCharacters

      public String readCsetSkipCharacters()
      Read the value of the field cset_skip_characters.
      Returns:
      The value of the field cset_skip_characters
    • writeCsetSkipCharacters

      public void writeCsetSkipCharacters(String csetSkipCharacters, Arena _arena)
      Write a value in the field cset_skip_characters.
      Parameters:
      csetSkipCharacters - The new value for the field cset_skip_characters
      _arena - to control the memory allocation scope
    • readCsetIdentifierFirst

      public String readCsetIdentifierFirst()
      Read the value of the field cset_identifier_first.
      Returns:
      The value of the field cset_identifier_first
    • writeCsetIdentifierFirst

      public void writeCsetIdentifierFirst(String csetIdentifierFirst, Arena _arena)
      Write a value in the field cset_identifier_first.
      Parameters:
      csetIdentifierFirst - The new value for the field cset_identifier_first
      _arena - to control the memory allocation scope
    • readCsetIdentifierNth

      public String readCsetIdentifierNth()
      Read the value of the field cset_identifier_nth.
      Returns:
      The value of the field cset_identifier_nth
    • writeCsetIdentifierNth

      public void writeCsetIdentifierNth(String csetIdentifierNth, Arena _arena)
      Write a value in the field cset_identifier_nth.
      Parameters:
      csetIdentifierNth - The new value for the field cset_identifier_nth
      _arena - to control the memory allocation scope
    • readCpairCommentSingle

      public String readCpairCommentSingle()
      Read the value of the field cpair_comment_single.
      Returns:
      The value of the field cpair_comment_single
    • writeCpairCommentSingle

      public void writeCpairCommentSingle(String cpairCommentSingle, Arena _arena)
      Write a value in the field cpair_comment_single.
      Parameters:
      cpairCommentSingle - The new value for the field cpair_comment_single
      _arena - to control the memory allocation scope
    • readPaddingDummy

      public int readPaddingDummy()
      Read the value of the field padding_dummy.
      Returns:
      The value of the field padding_dummy
    • writePaddingDummy

      public void writePaddingDummy(int paddingDummy)
      Write a value in the field padding_dummy.
      Parameters:
      paddingDummy - The new value for the field padding_dummy