
com.groupbyinc.flux.script.ScriptContextRegistry.class Maven / Gradle / Ivy
???? 3 ? 0com/groupbyinc/flux/script/ScriptContextRegistry java/lang/Object ScriptContextRegistry.java 1com/groupbyinc/flux/script/ScriptContext$Standard (com/groupbyinc/flux/script/ScriptContext Standard /com/groupbyinc/flux/script/ScriptContext$Plugin Plugin 3com/groupbyinc/flux/script/ScriptService$ScriptType (com/groupbyinc/flux/script/ScriptService
ScriptType Ecom/groupbyinc/flux/common/google/common/collect/ImmutableSet$Builder =com/groupbyinc/flux/common/google/common/collect/ImmutableSet Builder RESERVED_SCRIPT_CONTEXTS ?Lcom/groupbyinc/flux/common/google/common/collect/ImmutableSet; SLcom/groupbyinc/flux/common/google/common/collect/ImmutableSet; scriptContexts ?Lcom/groupbyinc/flux/common/google/common/collect/ImmutableMap; }Lcom/groupbyinc/flux/common/google/common/collect/ImmutableMap; (Ljava/lang/Iterable;)V ()V
! 5com/groupbyinc/flux/common/google/common/collect/Maps #
newHashMap ()Ljava/util/HashMap; % &
$ ' values 6()[Lcom/groupbyinc/flux/script/ScriptContext$Standard; ) *
+ java/lang/Iterable -
java/util/Map / 4[Lcom/groupbyinc/flux/script/ScriptContext$Standard; 1 getKey ()Ljava/lang/String; 3 4
5 put 8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; 7 8 0 9 iterator ()Ljava/util/Iterator; ; < . = java/util/Iterator ? hasNext ()Z A B @ C next ()Ljava/lang/Object; E F @ G validateScriptContext 4(Lcom/groupbyinc/flux/script/ScriptContext$Plugin;)V I J
K
5 "java/lang/IllegalArgumentException N java/lang/StringBuilder P
Q ! script context [ S append -(Ljava/lang/String;)Ljava/lang/StringBuilder; U V
Q W ] cannot be registered twice Y toString [ 4
Q \ (Ljava/lang/String;)V ^
O _ =com/groupbyinc/flux/common/google/common/collect/ImmutableMap a copyOf P(Ljava/util/Map;)Lcom/groupbyinc/flux/common/google/common/collect/ImmutableMap; c d
b e g
scriptContext 3Lcom/groupbyinc/flux/script/ScriptContext$Standard; previousContext *Lcom/groupbyinc/flux/script/ScriptContext; customScriptContext 1Lcom/groupbyinc/flux/script/ScriptContext$Plugin; this 2Lcom/groupbyinc/flux/script/ScriptContextRegistry; customScriptContexts GLjava/lang/Iterable; Ljava/lang/Iterable; MLjava/util/Map; Ljava/util/Map; H()Lcom/groupbyinc/flux/common/google/common/collect/ImmutableCollection; ) v
b w isSupportedContext -(Lcom/groupbyinc/flux/script/ScriptContext;)Z 5 containsKey (Ljava/lang/Object;)Z | }
b ~ ?
getPluginName ? 4
? contains ? }
? [ ? H] is a reserved name, it cannot be registered as a custom script context ? getOperation ? 4
? reservedScriptContexts A()Lcom/groupbyinc/flux/common/google/common/collect/ImmutableSet; builder I()Lcom/groupbyinc/flux/common/google/common/collect/ImmutableSet$Builder; ? ?
? 8()[Lcom/groupbyinc/flux/script/ScriptService$ScriptType; ) ?
? 6[Lcom/groupbyinc/flux/script/ScriptService$ScriptType; ?
\ add [(Ljava/lang/Object;)Lcom/groupbyinc/flux/common/google/common/collect/ImmutableSet$Builder; ? ?
? script ? engine ? build ? ?
?
scriptType 5Lcom/groupbyinc/flux/script/ScriptService$ScriptType; [Lcom/groupbyinc/flux/common/google/common/collect/ImmutableSet$Builder; GLcom/groupbyinc/flux/common/google/common/collect/ImmutableSet$Builder; ? ?
? Signature Code LocalVariableTable LocalVariableTypeTable LineNumberTable
StackMapTable J(Ljava/lang/Iterable;)V t()Lcom/groupbyinc/flux/common/google/common/collect/ImmutableCollection; U()Lcom/groupbyinc/flux/common/google/common/collect/ImmutableSet;
SourceFile InnerClasses 1 ? ? ? p ?*? "? (M? ,N-?66? -2:,? 6? : W????+? > N-? D ? R-? H ? :*? L,? M? : ? :? '? OY? QY? RT? X? M? XZ? X? ]? `????*,? f? h? ? > i j g ) k l O A m n ? o p ? q s ? u ? ? q r ? t ? 6
) * + , . + 4 . O / U 0 g 1 l 2 ? 4 ? 5 ? 6 ? &