classes.de.datasecs.hydra.shared.protocol.HydraProtocol.class Maven / Gradle / Ivy
???? 4+
? ?
? A ? A ? A ? ?
? A ?
? ? ? ?
? ? ? ? ? ? ? ?
?
? ?
? ?
? ?
? ? ?
? ?
? ? ?
? ?
? ? ? ? ? ? ? ? A ?
?
? ? ? ? ? ? ? ? ?
?
/ ? ? A ? ? ? ? ? A ? ? ? ? ?
/ ?
/ ?
? ? ? ? ?
/ ? ? packets Ljava/util/Map; Signature gLjava/util/Map;>; packetBytes gLjava/util/Map;Ljava/lang/Byte;>; packetListenerMethods ?Ljava/util/Map;Ljava/lang/reflect/Method;>; sessions Ljava/util/Set; ;Ljava/util/Set;
clientSession *Lde/datasecs/hydra/shared/handler/Session; packetListener HLde/datasecs/hydra/shared/protocol/packets/listener/HydraPacketListener; sessionListener @Lde/datasecs/hydra/shared/handler/listener/HydraSessionListener; ()V Code LineNumberTable LocalVariableTable this 1Lde/datasecs/hydra/shared/protocol/HydraProtocol; createPacket 5(B)Lde/datasecs/hydra/shared/protocol/packets/Packet; e (Ljava/lang/ReflectiveOperationException; id B
StackMapTable ? getPacketId 5(Lde/datasecs/hydra/shared/protocol/packets/Packet;)B packet 2Lde/datasecs/hydra/shared/protocol/packets/Packet; registerPacket (Ljava/lang/Class;)V clazz Ljava/lang/Class; packetId 4Lde/datasecs/hydra/shared/protocol/packets/PacketId; LocalVariableTypeTable FLjava/lang/Class<+Lde/datasecs/hydra/shared/protocol/packets/Packet;>; ? I(Ljava/lang/Class<+Lde/datasecs/hydra/shared/protocol/packets/Packet;>;)V registerListener K(Lde/datasecs/hydra/shared/protocol/packets/listener/HydraPacketListener;)V callPacketListener _(Lde/datasecs/hydra/shared/protocol/packets/Packet;Lde/datasecs/hydra/shared/handler/Session;)V session addSessionListener C(Lde/datasecs/hydra/shared/handler/listener/HydraSessionListener;)V callSessionListener .(ZLde/datasecs/hydra/shared/handler/Session;)V connected Z setClientSession -(Lde/datasecs/hydra/shared/handler/Session;)V getClientSession ,()Lde/datasecs/hydra/shared/handler/Session;
addSession
removeSession getSessions ()Ljava/util/Set; =()Ljava/util/Set; lambda$registerListener$1 (Ljava/lang/reflect/Method;)V method Ljava/lang/reflect/Method; ? lambda$registerListener$0 (Ljava/lang/reflect/Method;)Z
SourceFile HydraProtocol.java S T java/util/HashMap B C F C H C java/util/HashSet J K ? ? ? ? ? java/lang/Class ? ? 0de/datasecs/hydra/shared/protocol/packets/Packet java/lang/InstantiationException java/lang/IllegalAccessException ? ? ? 9Packet %s.class might hasn't got an empty constructor!%n
java/lang/Object ? ? ? ? ? ? ? T ? ? java/lang/Byte ? ? "java/lang/IllegalArgumentException clazz can't be null! S ? 2de/datasecs/hydra/shared/protocol/packets/PacketId ? ? java/lang/NullPointerException IAnnotation of packet %s.class not found. Annotation might not be present! ? ? ? ? ? ? ? (Packet with id %s is already registered! ? ? packetListener can't be null! O P ? ? ? ? BootstrapMethods ? ? ?
java/lang/reflect/Method ? +java/lang/reflect/InvocationTargetException Q R | | M N ? ? NIt's not possible to assign multiple PacketHandler methods for packet %s.class ?%s is not a deriving class of Packet.class. Make sure the first argument is a deriving class of Packet.class. The first argument of the PacketHandler method is the packet it is supposed to handle! >There are just 2 arguments allowed for a PacketHandler method! @de/datasecs/hydra/shared/protocol/packets/listener/PacketHandler /de/datasecs/hydra/shared/protocol/HydraProtocol &java/lang/ReflectiveOperationException valueOf (B)Ljava/lang/Byte;
java/util/Map get &(Ljava/lang/Object;)Ljava/lang/Object; newInstance ()Ljava/lang/Object; java/lang/System err Ljava/io/PrintStream;
getSimpleName ()Ljava/lang/String; java/io/PrintStream printf <(Ljava/lang/String;[Ljava/lang/Object;)Ljava/io/PrintStream; printStackTrace getClass ()Ljava/lang/Class; byteValue ()B (Ljava/lang/String;)V
getAnnotation 4(Ljava/lang/Class;)Ljava/lang/annotation/Annotation; java/lang/String format 9(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String; value containsKey (Ljava/lang/Object;)Z put 8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
getMethods ()[Ljava/lang/reflect/Method; java/util/Arrays stream .([Ljava/lang/Object;)Ljava/util/stream/Stream;
A test ()Ljava/util/function/Predicate; java/util/stream/Stream filter 9(Ljava/util/function/Predicate;)Ljava/util/stream/Stream; (Ljava/lang/Object;)V
A! accept P(Lde/datasecs/hydra/shared/protocol/HydraProtocol;)Ljava/util/function/Consumer; forEach (Ljava/util/function/Consumer;)V cast invoke 9(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object; >de/datasecs/hydra/shared/handler/listener/HydraSessionListener onConnected onDisconnected
java/util/Set add remove getParameterCount ()I getParameterTypes ()[Ljava/lang/Class; isAssignableFrom (Ljava/lang/Class;)Z isAnnotationPresent"#' ? ? ? ? "java/lang/invoke/LambdaMetafactory metafactory) Lookup InnerClasses ?(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;* %java/lang/invoke/MethodHandles$Lookup java/lang/invoke/MethodHandles ! A B C D E F C D G H C D I J K D L M N O P Q R S T U k 1*? *? Y? ? *? Y? ? *? Y? ? *? Y? ? ? V % W 1 X Y Z [ U ? A*? ?
? ? ?
? ?M? ? Y*? ?
? ? ? S? W,? ? V # $ % ; &