Package org.freedesktop.wayland.util
Class InterfaceMeta
java.lang.Object
org.freedesktop.wayland.util.InterfaceMeta
Wrapper class for any Java type to get or create a native wayland interface for use with the native wayland
library. To get a native wayland interface for a given Java type, use
get(Class)
.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
static InterfaceMeta
Scans this type forInterface
annotations and creates a native context if possible.getName()
int
hashCode()
protected static InterfaceMeta
maybeCreate
(Class<?> type)
-
Field Details
-
NO_INTERFACE
-
wlInterfacePointer
-
-
Constructor Details
-
InterfaceMeta
-
-
Method Details
-
getNativeWlInterface
-
get
Scans this type forInterface
annotations and creates a native context if possible.- Parameters:
type
- Any Java type.- Returns:
- The associated
InterfaceMeta
orNO_INTERFACE
if the type does not have a wayland interface associated with it.
-
maybeCreate
-
getName
-
hashCode
-
equals
-