Class BoolFilter

All Implemented Interfaces:
Proxy

@Generated("org.javagi.JavaGI") public class BoolFilter extends Filter
Evaluates a boolean expression to determine whether to include items.
  • Constructor Details

    • BoolFilter

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

      public BoolFilter(@Nullable Expression expression)
      Creates a new bool filter.
      Parameters:
      expression - the expression to evaluate
    • BoolFilter

      public BoolFilter()
      Create a new BoolFilter.
  • Method Details

    • getType

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

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

      protected BoolFilter 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 Filter
      Returns:
      the instance as if it were its parent type
    • getExpression

      public @Nullable Expression getExpression()
      Gets the expression that the filter evaluates for each item.
      Returns:
      the expression
    • getInvert

      public boolean getInvert()
      Returns whether the filter inverts the expression.
      Returns:
      true if the filter inverts
    • setExpression

      public void setExpression(@Nullable Expression expression)

      Sets the expression that the filter uses to check if items should be filtered.

      The expression must have a value type of G_TYPE_BOOLEAN.

      Parameters:
      expression - the expression
    • setInvert

      public void setInvert(boolean invert)
      Sets whether the filter should invert the expression.
      Parameters:
      invert - true to invert
    • builder

      public static BoolFilter.Builder<? extends BoolFilter.Builder> builder()
      A BoolFilter.Builder object constructs a BoolFilter with the specified properties. Use the various set...() methods to set properties, and finish construction with BoolFilter.Builder.build().
      Returns:
      the builder object