com.groupbyinc.flux.common.sun.jna.Union.class Maven / Gradle / Ivy
???? 2 ? (com/groupbyinc/flux/common/sun/jna/Union ,com/groupbyinc/flux/common/sun/jna/Structure
Union.java 8com/groupbyinc/flux/common/sun/jna/Structure$StructField StructField activeField :Lcom/groupbyinc/flux/common/sun/jna/Structure$StructField; ()V
this *Lcom/groupbyinc/flux/common/sun/jna/Union; /(Lcom/groupbyinc/flux/common/sun/jna/Pointer;)V
p ,Lcom/groupbyinc/flux/common/sun/jna/Pointer; 0(Lcom/groupbyinc/flux/common/sun/jna/Pointer;I)V
alignType I 2(Lcom/groupbyinc/flux/common/sun/jna/TypeMapper;)V
mapper /Lcom/groupbyinc/flux/common/sun/jna/TypeMapper; _(Lcom/groupbyinc/flux/common/sun/jna/Pointer;ILcom/groupbyinc/flux/common/sun/jna/TypeMapper;)V
!
getFieldOrder ()Ljava/util/List; getFieldList % $
& java/util/ArrayList ( java/util/List * size ()I , - + . (I)V 0
) 1 iterator ()Ljava/util/Iterator; 3 4 + 5 java/util/Iterator 7 hasNext ()Z 9 : 8 ; next ()Ljava/lang/Object; = > 8 ? java/lang/reflect/Field A getName ()Ljava/lang/String; C D
B E add (Ljava/lang/Object;)Z G H + I f Ljava/lang/reflect/Field; flist +Ljava/util/List; Ljava/util/List; list $Ljava/util/List; setType (Ljava/lang/Class;)V ensureAllocated T
U fields ()Ljava/util/Map; W X
Y
java/util/Map [ values ()Ljava/util/Collection; ] ^ \ _ java/util/Collection a b 5 type Ljava/lang/Class; d e f
h "java/lang/IllegalArgumentException j java/lang/StringBuilder l
m
No field of type o append -(Ljava/lang/String;)Ljava/lang/StringBuilder; q r
m s -(Ljava/lang/Object;)Ljava/lang/StringBuilder; q u
m v in x toString z D
m { (Ljava/lang/String;)V }
k ~ Ljava/lang/Class<*>; get &(Ljava/lang/Object;)Ljava/lang/Object; ? ? \ ? No field named ? fieldName Ljava/lang/String; readField &(Ljava/lang/String;)Ljava/lang/Object; R }
? ? ?
?
writeField ? }
? '(Ljava/lang/String;Ljava/lang/Object;)V ? ?
? value Ljava/lang/Object;
getTypedValue %(Ljava/lang/Class;)Ljava/lang/Object; read ?
? field ? L ?
getFieldValue -(Ljava/lang/reflect/Field;)Ljava/lang/Object; ? ?
?
setTypedValue java/lang/Object ? getClass ()Ljava/lang/Class; ? ?
? ? findField M(Ljava/lang/Class;)Lcom/groupbyinc/flux/common/sun/jna/Structure$StructField; ? ?
?
setFieldValue .(Ljava/lang/reflect/Field;Ljava/lang/Object;)V ? ?
? object java/lang/Class ? isAssignableFrom (Ljava/lang/Class;)Z ? ?
? ? =(Lcom/groupbyinc/flux/common/sun/jna/Structure$StructField;)V ? ?
? N(Lcom/groupbyinc/flux/common/sun/jna/Structure$StructField;)Ljava/lang/Object; java/lang/String ? *com/groupbyinc/flux/common/sun/jna/WString ? ? ?
? getNativeAlignment '(Ljava/lang/Class;Ljava/lang/Object;Z)I ? ?
? isFirstElement Z Code LocalVariableTable LineNumberTable LocalVariableTypeTable
StackMapTable Signature &()Ljava/util/List; (Ljava/lang/Class<*>;)V ((Ljava/lang/Class<*>;)Ljava/lang/Object; P(Ljava/lang/Class<*>;)Lcom/groupbyinc/flux/common/sun/jna/Structure$StructField; *(Ljava/lang/Class<*>;Ljava/lang/Object;Z)I
SourceFile InnerClasses!
? / *? ? ? ? . ? > *+? ? ? ?
1 2 ? I *+? ? ? ?
5 6 ? > *+? ? ? ?
9 : ? T *+-? "? ? * ?
= > # $ ? ? ?*? 'L? )Y+? / ? 2M+? 6 N-? < ? -? @ ? B:,? F? J W???,? ? * . K L ? : M O , P O ? : M N , P Q ? E F G . H : I = J ? ? + + 8? " ? ? R S ? ? [*? V*? Z? ` ? c M,? < ? ,? @ ? N-? g+? *-? i??? kY? mY? np? t+? wy? t*? w? |? ? ? &