Class PropertyExpression

All Implemented Interfaces:
Proxy

@Generated("org.javagi.JavaGI") public class PropertyExpression extends Expression
A GObject property value in a GtkExpression.
  • Constructor Details

    • PropertyExpression

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

      public PropertyExpression(Type thisType, @Nullable Expression expression, String propertyName)

      Creates an expression that looks up a property.

      The object to use is found by evaluating the expression, or using the this argument when expression is NULL.

      If the resulting object conforms to this_type, its property named property_name will be queried. Otherwise, this expression's evaluation will fail.

      The given this_type must have a property with property_name.

      Parameters:
      thisType - The type to expect for the this type
      expression - Expression to evaluate to get the object to query or NULL to query the this object
      propertyName - name of the property
  • Method Details

    • getType

      public static @Nullable Type getType()
      Get the GType of the PropertyExpression class.
      Returns:
      the GType
    • getMemoryLayout

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

      protected PropertyExpression asParent()
      Return this instance as if it were its parent type. Comparable to the Java super keyword, but ensures the parent typeclass is also used in native code.
      Overrides:
      asParent in class Expression
      Returns:
      the instance as if it were its parent type
    • forPspec

      public static PropertyExpression forPspec(@Nullable Expression expression, ParamSpec pspec)

      Creates an expression that looks up a property.

      The object to use is found by evaluating the expression, or using the this argument when expression is NULL.

      If the resulting object conforms to this_type, its property specified by pspec will be queried. Otherwise, this expression's evaluation will fail.

      Parameters:
      expression - Expression to evaluate to get the object to query or NULL to query the this object
      pspec - the GParamSpec for the property to query
      Returns:
      a new GtkExpression
    • getExpression

      public @Nullable Expression getExpression()
      Gets the expression specifying the object of a property expression.
      Returns:
      the object expression
    • getPspec

      public ParamSpec getPspec()
      Gets the GParamSpec specifying the property of a property expression.
      Returns:
      the GParamSpec for the property