Package org.gnome.glib
Class MarkupParser
java.lang.Object
io.github.jwharm.javagi.base.ProxyInstance
org.gnome.glib.MarkupParser
- All Implemented Interfaces:
Proxy
Any of the fields in
GMarkupParser
can be null
, in which case they
will be ignored. Except for the error
function, any of these callbacks
can set an error; in particular the MarkupError.UNKNOWN_ELEMENT
,
MarkupError.UNKNOWN_ATTRIBUTE
, and MarkupError.INVALID_CONTENT
errors are intended to be set from these callbacks. If you set an error
from a callback, g_markup_parse_context_parse() will report that error
back to its caller.-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
Functional interface declaration of theEndElementCallback
callback.static interface
Functional interface declaration of theErrorCallback
callback.static interface
Functional interface declaration of thePassthroughCallback
callback.static interface
Functional interface declaration of theStartElementCallback
callback.static interface
Functional interface declaration of theTextCallback
callback. -
Constructor Summary
ConstructorDescriptionAllocate a new MarkupParser.MarkupParser
(Arena arena) Allocate a new MarkupParser.MarkupParser
(MemorySegment address) Create a MarkupParser proxy instance for the provided memory address. -
Method Summary
Modifier and TypeMethodDescriptionstatic MemoryLayout
The memory layout of the native struct.void
overrideEndElement
(MarkupParser.EndElementCallback endElement, Arena _arena) Write a value in the fieldend_element
.void
overrideError
(MarkupParser.ErrorCallback error, Arena _arena) Write a value in the fielderror
.void
overridePassthrough
(MarkupParser.PassthroughCallback passthrough, Arena _arena) Write a value in the fieldpassthrough
.void
overrideStartElement
(MarkupParser.StartElementCallback startElement, Arena _arena) Write a value in the fieldstart_element
.void
overrideText
(MarkupParser.TextCallback text, Arena _arena) Write a value in the fieldtext
.Methods inherited from class io.github.jwharm.javagi.base.ProxyInstance
equals, handle, hashCode
-
Constructor Details
-
MarkupParser
Create a MarkupParser proxy instance for the provided memory address.- Parameters:
address
- the memory address of the native object
-
MarkupParser
Allocate a new MarkupParser.- Parameters:
arena
- to control the memory allocation scope
-
MarkupParser
public MarkupParser()Allocate a new MarkupParser. The memory is allocated withArena.ofAuto()
.
-
-
Method Details
-
getMemoryLayout
The memory layout of the native struct.- Returns:
- the memory layout
-
overrideStartElement
Write a value in the fieldstart_element
.- Parameters:
startElement
- The new value for the fieldstart_element
_arena
- to control the memory allocation scope
-
overrideEndElement
Write a value in the fieldend_element
.- Parameters:
endElement
- The new value for the fieldend_element
_arena
- to control the memory allocation scope
-
overrideText
Write a value in the fieldtext
.- Parameters:
text
- The new value for the fieldtext
_arena
- to control the memory allocation scope
-
overridePassthrough
Write a value in the fieldpassthrough
.- Parameters:
passthrough
- The new value for the fieldpassthrough
_arena
- to control the memory allocation scope
-
overrideError
Write a value in the fielderror
.- Parameters:
error
- The new value for the fielderror
_arena
- to control the memory allocation scope
-