Class PropertyExpression
java.lang.Object
org.javagi.base.ProxyInstance
org.gnome.gobject.TypeInstance
org.gnome.gtk.Expression
org.gnome.gtk.PropertyExpression
- All Implemented Interfaces:
Proxy
A
GObject property value in a GtkExpression.-
Nested Class Summary
Nested classes/interfaces inherited from class Expression
Expression.Expression$Impl -
Constructor Summary
ConstructorsConstructorDescriptionPropertyExpression(MemorySegment address) Create a PropertyExpression instance for the provided memory address.PropertyExpression(Type thisType, @Nullable Expression expression, String propertyName) Creates an expression that looks up a property. -
Method Summary
Modifier and TypeMethodDescriptionprotected PropertyExpressionasParent()Return this instance as if it were its parent type.static PropertyExpressionforPspec(@Nullable Expression expression, ParamSpec pspec) Creates an expression that looks up a property.@Nullable ExpressionGets the expression specifying the object of a property expression.static MemoryLayoutThe memory layout of the native struct.getPspec()Gets theGParamSpecspecifying the property of a property expression.static @Nullable TypegetType()Get the GType of the PropertyExpression class.Methods inherited from class Expression
bind, evaluate, getValueType, isStatic, ref, unref, watchMethods inherited from class TypeInstance
callParent, callParent, cast, getPrivate, readGClass, writeGClassMethods inherited from class ProxyInstance
equals, handle, hashCode
-
Constructor Details
-
PropertyExpression
Create a PropertyExpression instance for the provided memory address.- Parameters:
address- the memory address of the native object
-
PropertyExpression
Creates an expression that looks up a property.
The object to use is found by evaluating the
expression, or using thethisargument whenexpressionisNULL.If the resulting object conforms to
this_type, its property namedproperty_namewill be queried. Otherwise, this expression's evaluation will fail.The given
this_typemust have a property withproperty_name.- Parameters:
thisType- The type to expect for the this typeexpression- Expression to evaluate to get the object to query orNULLto query thethisobjectpropertyName- name of the property
-
-
Method Details
-
getType
Get the GType of the PropertyExpression class.- Returns:
- the GType
-
getMemoryLayout
The memory layout of the native struct.- Returns:
- the memory layout
-
asParent
Return this instance as if it were its parent type. Comparable to the Javasuperkeyword, but ensures the parent typeclass is also used in native code.- Overrides:
asParentin classExpression- Returns:
- the instance as if it were its parent type
-
forPspec
Creates an expression that looks up a property.
The object to use is found by evaluating the
expression, or using thethisargument whenexpressionisNULL.If the resulting object conforms to
this_type, its property specified bypspecwill be queried. Otherwise, this expression's evaluation will fail.- Parameters:
expression- Expression to evaluate to get the object to query orNULLto query thethisobjectpspec- theGParamSpecfor the property to query- Returns:
- a new
GtkExpression
-
getExpression
Gets the expression specifying the object of a property expression.- Returns:
- the object expression
-
getPspec
Gets theGParamSpecspecifying the property of a property expression.- Returns:
- the
GParamSpecfor the property
-