Class ConstantExpression
java.lang.Object
org.javagi.base.ProxyInstance
org.gnome.gobject.TypeInstance
org.gnome.gtk.Expression
org.gnome.gtk.ConstantExpression
- All Implemented Interfaces:
Proxy
A constant value in a
GtkExpression.-
Nested Class Summary
Nested classes/interfaces inherited from class Expression
Expression.Expression$Impl -
Constructor Summary
ConstructorsConstructorDescriptionConstantExpression(MemorySegment address) Create a ConstantExpression instance for the provided memory address.ConstantExpression(Type valueType, Object... varargs) Creates aGtkExpressionthat evaluates to the object given by the arguments. -
Method Summary
Modifier and TypeMethodDescriptionprotected ConstantExpressionasParent()Return this instance as if it were its parent type.static ConstantExpressionCreates an expression that always evaluates to the givenvalue.static MemoryLayoutThe memory layout of the native struct.static @Nullable TypegetType()Get the GType of the ConstantExpression class.getValue()Gets the value that a constant expression evaluates to.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
-
ConstantExpression
Create a ConstantExpression instance for the provided memory address.- Parameters:
address- the memory address of the native object
-
ConstantExpression
-
-
Method Details
-
getType
Get the GType of the ConstantExpression 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
-
forValue
Creates an expression that always evaluates to the givenvalue.- Parameters:
value- aGValue- Returns:
- a new
GtkExpression
-
getValue
-