com.google.javascript.jscomp.graph.LinkedUndirectedGraph.class Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of closure-compiler-unshaded Show documentation
Show all versions of closure-compiler-unshaded Show documentation
Closure Compiler is a JavaScript optimizing compiler. It parses your
JavaScript, analyzes it, removes dead code and rewrites and minimizes
what's left. It also checks syntax, variable references, and types, and
warns about common JavaScript pitfalls. It is used in many of Google's
JavaScript apps, including Gmail, Google Web Search, Google Maps, and
Google Docs.
The newest version!
???? 7J 7com/google/javascript/jscomp/graph/Graph$SimpleSubGraph
-(Lcom/google/javascript/jscomp/graph/Graph;)V 8com/google/javascript/jscomp/graph/LinkedUndirectedGraph
(ZZ)V
,com/google/javascript/jscomp/graph/UndiGraph ()V java/util/LinkedHashMap
nodes Ljava/util/Map; useNodeAnnotations Z useEdgeAnnotations
! "
getNodeOrFail B(Ljava/lang/Object;)Lcom/google/javascript/jscomp/graph/GraphNode; $ Rcom/google/javascript/jscomp/graph/LinkedUndirectedGraph$LinkedUndirectedGraphNode & [com/google/javascript/jscomp/graph/LinkedUndirectedGraph$AnnotatedLinkedUndirectedGraphEdge
% ( ) ?(Lcom/google/javascript/jscomp/graph/UndiGraph$UndiGraphNode;Ljava/lang/Object;Lcom/google/javascript/jscomp/graph/UndiGraph$UndiGraphNode;)V + Rcom/google/javascript/jscomp/graph/LinkedUndirectedGraph$LinkedUndirectedGraphEdge
* (
# . / 0 getNeighborEdges ()Ljava/util/List; 2 3 4 5 6 java/util/List add (Ljava/lang/Object;)Z
8 9 : getUndirectedGraphEdges 6(Ljava/lang/Object;Ljava/lang/Object;)Ljava/util/List; 2 < = > iterator ()Ljava/util/Iterator; @ A B C D java/util/Iterator hasNext ()Z @ F G H next ()Ljava/lang/Object; J :com/google/javascript/jscomp/graph/UndiGraph$UndiGraphEdge 2 L M 6 remove O P Q apply Y(Lcom/google/javascript/jscomp/graph/LinkedUndirectedGraph;)Ljava/util/function/Function; S T U V W
java/util/Map computeIfAbsent C(Ljava/lang/Object;Ljava/util/function/Function;)Ljava/lang/Object; Y :com/google/javascript/jscomp/graph/UndiGraph$UndiGraphNode
[ \ ] getUndirectedGraphNode P(Ljava/lang/Object;)Lcom/google/javascript/jscomp/graph/UndiGraph$UndiGraphNode;
# _ ` 0 neighborList S b c d get &(Ljava/lang/Object;)Ljava/lang/Object; f java/util/ArrayList
e X . I j k l getNodeA 0()Lcom/google/javascript/jscomp/graph/GraphNode; I n o l getNodeB S q r s values ()Ljava/util/Collection;
u v w x y java/util/Collections unmodifiableCollection .(Ljava/util/Collection;)Ljava/util/Collection;
{ | ] createUndirectedGraphNode
u ~ ? unmodifiableList "(Ljava/util/List;)Ljava/util/List; ? < ? java/util/Collection
? ? ? ? ? !com/google/common/base/Predicates
alwaysTrue $()Lcom/google/common/base/Predicate;
? ? ? isConnected I(Ljava/lang/Object;Lcom/google/common/base/Predicate;Ljava/lang/Object;)Z
? ? ? ? equalTo 6(Ljava/lang/Object;)Lcom/google/common/base/Predicate; I ? ? H getValue ? ? ? P 6 com/google/common/base/Predicate ? =com/google/javascript/jscomp/graph/GraphvizGraph$GraphvizEdge ? LinkedUndirectedGraph S ? ? ? size ()I
e ? ? (I)V ? "java/lang/IllegalArgumentException ? ? ? makeConcatWithConstants &(Ljava/lang/Object;)Ljava/lang/String;
? ? ? (Ljava/lang/String;)V 2 ? ? [com/google/javascript/jscomp/graph/LinkedUndirectedGraph$AnnotatedLinkedUndirectedGraphNode
? ? ? (Ljava/lang/Object;)V
# ? ? 0com/google/javascript/jscomp/graph/GraphvizGraph Signature pLjava/util/Map;>; newSubGraph /()Lcom/google/javascript/jscomp/graph/SubGraph; Code LineNumberTable LocalVariableTable this :Lcom/google/javascript/jscomp/graph/LinkedUndirectedGraph; LocalVariableTypeTable BLcom/google/javascript/jscomp/graph/LinkedUndirectedGraph; 7()Lcom/google/javascript/jscomp/graph/SubGraph; create <()Lcom/google/javascript/jscomp/graph/LinkedUndirectedGraph; n()Lcom/google/javascript/jscomp/graph/LinkedUndirectedGraph; MethodParameters connect 9(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)V srcValue Ljava/lang/Object; edgeValue destValue src TLcom/google/javascript/jscomp/graph/LinkedUndirectedGraph$LinkedUndirectedGraphNode; dest edge TLcom/google/javascript/jscomp/graph/LinkedUndirectedGraph$LinkedUndirectedGraphEdge; TN; TE; \Lcom/google/javascript/jscomp/graph/LinkedUndirectedGraph$LinkedUndirectedGraphNode; \Lcom/google/javascript/jscomp/graph/LinkedUndirectedGraph$LinkedUndirectedGraphEdge;
StackMapTable (TN;TE;TN;)V
disconnect '(Ljava/lang/Object;Ljava/lang/Object;)V