com.google.javascript.jscomp.graph.Graph.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!
???? 7 ?
java/lang/Object ()V
(com/google/javascript/jscomp/graph/Graph isConnected 9(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Z
connect 9(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)V
getNodeDegree (Ljava/lang/Object;)I
getNode B(Ljava/lang/Object;)Lcom/google/javascript/jscomp/graph/GraphNode; "java/lang/IllegalArgumentException makeConcatWithConstants &(Ljava/lang/Object;)Ljava/lang/String;
! (Ljava/lang/String;)V
# $ % getNodes ()Ljava/util/Collection; ' ( ) * + java/util/Collection iterator ()Ljava/util/Iterator; - . / 0 1 java/util/Iterator hasNext ()Z - 3 4 5 next ()Ljava/lang/Object; 7 ,com/google/javascript/jscomp/graph/GraphNode 6 9 : ;
setAnnotation 2(Lcom/google/javascript/jscomp/graph/Annotation;)V
= > ? getEdges ()Ljava/util/List; A ( B java/util/List D 2com/google/javascript/jscomp/graph/Graph$GraphEdge C 9 G H I nodeAnnotationStack Ljava/util/Deque; K java/util/ArrayDeque
J
N O P pushAnnotations *(Ljava/util/Deque;Ljava/util/Collection;)V R )Popping node annotations without pushing.
T U V W X $com/google/common/base/Preconditions checkNotNull 8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
Z [ \ popAnnotations (Ljava/util/Deque;)V ^ _ I edgeAnnotationStack a )Popping edge annotations without pushing. c =com/google/javascript/jscomp/graph/Graph$GraphAnnotationState ' e f g size ()I
b i j (I)V l m n o p java/util/Deque push (Ljava/lang/Object;)V r .com/google/javascript/jscomp/graph/Annotatable l t u 5 peek w 8com/google/javascript/jscomp/graph/Graph$AnnotationState q y z {
getAnnotation 1()Lcom/google/javascript/jscomp/graph/Annotation;
v } ~ b(Lcom/google/javascript/jscomp/graph/Annotatable;Lcom/google/javascript/jscomp/graph/Annotation;)V
b ? ? ? add (Ljava/lang/Object;)Z q 9 l ? ? 5 pop
b ( v ? ? ? first 0Lcom/google/javascript/jscomp/graph/Annotatable; v ? ? ? second /Lcom/google/javascript/jscomp/graph/Annotation; ? 1com/google/javascript/jscomp/graph/AdjacencyGraph Signature RLjava/util/Deque; Code LineNumberTable LocalVariableTable this *Lcom/google/javascript/jscomp/graph/Graph; LocalVariableTypeTable 2Lcom/google/javascript/jscomp/graph/Graph; MethodParameters n1 edge n2 (TN;TE;TN;)V
disconnect '(Ljava/lang/Object;Ljava/lang/Object;)V (TN;TN;)V connectIfNotFound Ljava/lang/Object; TN; TE;
StackMapTable
createNode value ;(TN;)Lcom/google/javascript/jscomp/graph/GraphNode; Q()Ljava/util/Collection<+Lcom/google/javascript/jscomp/graph/GraphNode;>; getNodeCount Q()Ljava/util/List<+Lcom/google/javascript/jscomp/graph/Graph$GraphEdge;>; 6(Ljava/lang/Object;Ljava/lang/Object;)Ljava/util/List; W(TN;TN;)Ljava/util/List<+Lcom/google/javascript/jscomp/graph/Graph$GraphEdge;>; (TN;)I getWeight getNeighborNodes $(Ljava/lang/Object;)Ljava/util/List; M(TN;)Ljava/util/List;>; getFirstEdge Z(Ljava/lang/Object;Ljava/lang/Object;)Lcom/google/javascript/jscomp/graph/Graph$GraphEdge; D(TN;TN;)Lcom/google/javascript/jscomp/graph/Graph$GraphEdge; hasNode n (TN;)Z '(Ljava/lang/Object;Ljava/lang/Object;)Z (TN;TN;)Z e (TN;TE;TN;)Z
getNodeOrFail val node .Lcom/google/javascript/jscomp/graph/GraphNode; TT; C;>(TN;)TT; clearNodeAnnotations 6Lcom/google/javascript/jscomp/graph/GraphNode; clearEdgeAnnotations 4Lcom/google/javascript/jscomp/graph/Graph$GraphEdge; ; pushNodeAnnotations popNodeAnnotations pushEdgeAnnotations popEdgeAnnotations h stack haveAnnotations Ljava/util/Collection; ILjava/util/Collection<+Lcom/google/javascript/jscomp/graph/Annotatable;>; ?(Ljava/util/Deque;Ljava/util/Collection<+Lcom/google/javascript/jscomp/graph/Annotatable;>;)V as :Lcom/google/javascript/jscomp/graph/Graph$AnnotationState; U(Ljava/util/Deque;)V wLjava/lang/Object;Lcom/google/javascript/jscomp/graph/AdjacencyGraph;
SourceFile
Graph.java NestMembers ? 7com/google/javascript/jscomp/graph/Graph$SimpleSubGraph BootstrapMethods ?
? ? ? ? $java/lang/invoke/StringConcatFactory ?(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/invoke/CallSite; ? does not exist in graph InnerClasses GraphEdge GraphAnnotationState AnnotationState SimpleSubGraph ? %java/lang/invoke/MethodHandles$Lookup ? java/lang/invoke/MethodHandles Lookup! ? H I ? ? _ I ? ? ? A *? ? ? 3 ? ? ? ? ? ? ?
? ? ? ? ? ? ? ? ? ? ? ? ? ? ? *+,-? ?
*+,-?
? ? r
s u ? * ? ? ? ? ? ? ? ? ? * ? ? ? ? ? ? ? ? ? ?
? ? ? ? ? ? ? ? ? ? $ % ? ? ? g > ? ? ? > ? ? ? ? ? ? ? ? ? ? ? ? V *+? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? i *+? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? @ ? ? ? ? ? ? ? ? ? ? ?
? ? ? ? ? ? ? ? *+? M,? ? Y+? ? ?,? ? ? ?
? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? 6 ? ? ? ? ? ? ? (*? "? & L+? , ? +? 2 ? 6M,? 8 ??? ? ? ? $ ? ' ? ? ? ? ( ? ? ? ? ? ( ? ? ? ?
-? ? ? ? (*?