Package org.gnome.gtk
Class PropertyExpression
java.lang.Object
org.javagi.base.ProxyInstance
org.gnome.gobject.TypeInstance
org.gnome.gtk.Expression
org.gnome.gtk.PropertyExpression
-
Nested Class Summary
Nested classes/interfaces inherited from class org.gnome.gtk.Expression
Expression.Expression$Impl -
Constructor Summary
ConstructorsConstructorDescriptionPropertyExpression(MemorySegment address) Create a PropertyExpression proxy 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()Returns 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.getPspec()Gets theGParamSpecspecifying the property of a property expression.static @Nullable TypegetType()Get the GType of the PropertyExpression classMethods inherited from class org.gnome.gtk.Expression
bind, evaluate, getValueType, isStatic, ref, unref, watchMethods inherited from class org.gnome.gobject.TypeInstance
callParent, callParent, cast, getMemoryLayout, getPrivate, readGClass, writeGClassMethods inherited from class org.javagi.base.ProxyInstance
equals, handle, hashCode
-
Constructor Details
-
PropertyExpression
Create a PropertyExpression proxy 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
-
asParent
Returns this instance as if it were its parent type. This is mostly synonymous to the Javasuperkeyword, but will set the native typeclass function pointers to the parent type. When overriding a native virtual method in Java, "chaining up" withsuper.methodName()doesn't work, because it invokes the overridden function pointer again. To chain up, callasParent().methodName(). This will call the native function pointer of this virtual method in the typeclass of the parent type.- Overrides:
asParentin classExpression
-
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
-