com.groupbyinc.flux.common.apache.lucene.util.AttributeSource.class Maven / Gradle / Ivy
???? 4V =com/groupbyinc/flux/common/apache/lucene/util/AttributeSource java/lang/Object AttributeSource.java Ccom/groupbyinc/flux/common/apache/lucene/util/AttributeSource$State State ?com/groupbyinc/flux/common/apache/lucene/util/AttributeSource$3 ?com/groupbyinc/flux/common/apache/lucene/util/AttributeSource$2 ?com/groupbyinc/flux/common/apache/lucene/util/AttributeSource$1
java/util/Map$Entry
java/util/Map Entry
attributes Ljava/util/Map; ?Ljava/util/Map;Lcom/groupbyinc/flux/common/apache/lucene/util/AttributeImpl;>; attributeImpls ?Ljava/util/Map;Lcom/groupbyinc/flux/common/apache/lucene/util/AttributeImpl;>; currentState F[Lcom/groupbyinc/flux/common/apache/lucene/util/AttributeSource$State; factory @Lcom/groupbyinc/flux/common/apache/lucene/util/AttributeFactory; implInterfaces Ljava/lang/ClassValue; fLjava/lang/ClassValue<[Ljava/lang/Class<+Lcom/groupbyinc/flux/common/apache/lucene/util/Attribute;>;>; ()V >com/groupbyinc/flux/common/apache/lucene/util/AttributeFactory " DEFAULT_ATTRIBUTE_FACTORY $ # % C(Lcom/groupbyinc/flux/common/apache/lucene/util/AttributeFactory;)V '
( this ?Lcom/groupbyinc/flux/common/apache/lucene/util/AttributeSource; B(Lcom/groupbyinc/flux/common/apache/lucene/util/AttributeSource;)V !
- &input AttributeSource must not be null / java/util/Objects 1 requireNonNull 8(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object; 3 4
2 5 7 9 ; = input java/util/LinkedHashMap @
A - !AttributeFactory must not be null C getAttributeFactory B()Lcom/groupbyinc/flux/common/apache/lucene/util/AttributeFactory; getAttributeClassesIterator ()Ljava/util/Iterator; keySet ()Ljava/util/Set; I J K java/util/Collections M unmodifiableSet (Ljava/util/Set;)Ljava/util/Set; O P
N Q
java/util/Set S iterator U H T V getAttributeImplsIterator getCurrentState G()Lcom/groupbyinc/flux/common/apache/lucene/util/AttributeSource$State; Y Z
[ ?(Lcom/groupbyinc/flux/common/apache/lucene/util/AttributeSource;Lcom/groupbyinc/flux/common/apache/lucene/util/AttributeSource$State;)V ]
^ emptySet ` J
N a initState ELcom/groupbyinc/flux/common/apache/lucene/util/AttributeSource$State; getAttributeInterfaces %(Ljava/lang/Class;)[Ljava/lang/Class; g java/lang/ClassValue i get %(Ljava/lang/Class;)Ljava/lang/Object; k l
j m [Ljava/lang/Class; o clazz QLjava/lang/Class<+Lcom/groupbyinc/flux/common/apache/lucene/util/AttributeImpl;>; Ljava/lang/Class; addAttributeImpl @(Lcom/groupbyinc/flux/common/apache/lucene/util/AttributeImpl;)V getClass ()Ljava/lang/Class; v w
x containsKey (Ljava/lang/Object;)Z z { | java/lang/Class ~ e f
? put 8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; ? ? ? curInterface MLjava/lang/Class<+Lcom/groupbyinc/flux/common/apache/lucene/util/Attribute;>; att =Lcom/groupbyinc/flux/common/apache/lucene/util/AttributeImpl; addAttribute L(Ljava/lang/Class;)Lcom/groupbyinc/flux/common/apache/lucene/util/Attribute; &(Ljava/lang/Object;)Ljava/lang/Object; k ? ? ;com/groupbyinc/flux/common/apache/lucene/util/AttributeImpl ? isInterface ()Z ? ?
? 7com/groupbyinc/flux/common/apache/lucene/util/Attribute ? isAssignableFrom (Ljava/lang/Class;)Z ? ?
? "java/lang/IllegalArgumentException ? java/lang/StringBuilder ?
? - EaddAttribute() only accepts an interface that extends Attribute, but ? append -(Ljava/lang/String;)Ljava/lang/StringBuilder; ? ?
? ? getName ()Ljava/lang/String; ? ?
? does not fulfil this contract. ? toString ? ?
? ? (Ljava/lang/String;)V ?
? ? createAttributeInstance P(Ljava/lang/Class;)Lcom/groupbyinc/flux/common/apache/lucene/util/AttributeImpl; ? ?
# ? t u
? cast ? ?
? attClass Ljava/lang/Class; attImpl
hasAttributes isEmpty ? ? ? hasAttribute getAttribute ? ?
?
- values ()Ljava/util/Collection; ? ? ? java/util/Collection ? ? V java/util/Iterator ? next ()Ljava/lang/Object; ? ? ? ? attribute ? ? ? hasNext ? ? ? ? ? d ? s c it SLjava/util/Iterator; Ljava/util/Iterator; clearAttributes clear ? !
? ? state
endAttributes end ? !
? ? removeAllAttributes ? captureState clone ? Z
? restoreState H(Lcom/groupbyinc/flux/common/apache/lucene/util/AttributeSource$State;)V %State contains AttributeImpl of type ? ' that is not in in this AttributeSource ? copyTo ? u
? ?
targetImpl hashCode ()I ? ?
? code I equals size ? {
thisState
otherState other obj Ljava/lang/Object; reflectAsString (Z)Ljava/lang/String; \(Lcom/groupbyinc/flux/common/apache/lucene/util/AttributeSource;Ljava/lang/StringBuilder;Z)V
reflectWith E(Lcom/groupbyinc/flux/common/apache/lucene/util/AttributeReflector;)V
prependAttClass Z buffer Ljava/lang/StringBuilder;
? reflector BLcom/groupbyinc/flux/common/apache/lucene/util/AttributeReflector; cloneAttributes A()Lcom/groupbyinc/flux/common/apache/lucene/util/AttributeSource; ?()Lcom/groupbyinc/flux/common/apache/lucene/util/AttributeImpl; ?
? entrySet J ! getKey# ? $ getValue&