public class org.apache.lucene.util.PrintStreamInfoStream extends org.apache.lucene.util.InfoStream
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.apache.lucene.util.PrintStreamInfoStream
super_class: org.apache.lucene.util.InfoStream
{
private static final java.util.concurrent.atomic.AtomicInteger MESSAGE_ID;
descriptor: Ljava/util/concurrent/atomic/AtomicInteger;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
protected final int messageID;
descriptor: I
flags: (0x0014) ACC_PROTECTED, ACC_FINAL
protected final java.io.PrintStream stream;
descriptor: Ljava/io/PrintStream;
flags: (0x0014) ACC_PROTECTED, ACC_FINAL
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=0, args_size=0
0: new java.util.concurrent.atomic.AtomicInteger
dup
invokespecial java.util.concurrent.atomic.AtomicInteger.<init>:()V
putstatic org.apache.lucene.util.PrintStreamInfoStream.MESSAGE_ID:Ljava/util/concurrent/atomic/AtomicInteger;
return
LocalVariableTable:
Start End Slot Name Signature
public void <init>(java.io.PrintStream);
descriptor: (Ljava/io/PrintStream;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
getstatic org.apache.lucene.util.PrintStreamInfoStream.MESSAGE_ID:Ljava/util/concurrent/atomic/AtomicInteger;
invokevirtual java.util.concurrent.atomic.AtomicInteger.getAndIncrement:()I
invokespecial org.apache.lucene.util.PrintStreamInfoStream.<init>:(Ljava/io/PrintStream;I)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/apache/lucene/util/PrintStreamInfoStream;
0 2 1 stream Ljava/io/PrintStream;
MethodParameters:
Name Flags
stream
public void <init>(java.io.PrintStream, int);
descriptor: (Ljava/io/PrintStream;I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokespecial org.apache.lucene.util.InfoStream.<init>:()V
1: aload 0
aload 1
putfield org.apache.lucene.util.PrintStreamInfoStream.stream:Ljava/io/PrintStream;
2: aload 0
iload 2
putfield org.apache.lucene.util.PrintStreamInfoStream.messageID:I
3: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/apache/lucene/util/PrintStreamInfoStream;
0 4 1 stream Ljava/io/PrintStream;
0 4 2 messageID I
MethodParameters:
Name Flags
stream
messageID
public void message(java.lang.String, java.lang.String);
descriptor: (Ljava/lang/String;Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield org.apache.lucene.util.PrintStreamInfoStream.stream:Ljava/io/PrintStream;
new java.lang.StringBuilder
dup
aload 1
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc " "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
getfield org.apache.lucene.util.PrintStreamInfoStream.messageID:I
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
ldc " ["
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
invokevirtual org.apache.lucene.util.PrintStreamInfoStream.getTimestamp:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "; "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokestatic java.lang.Thread.currentThread:()Ljava/lang/Thread;
invokevirtual java.lang.Thread.getName:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "]: "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 2
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
1: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/apache/lucene/util/PrintStreamInfoStream;
0 2 1 component Ljava/lang/String;
0 2 2 message Ljava/lang/String;
MethodParameters:
Name Flags
component
message
public boolean isEnabled(java.lang.String);
descriptor: (Ljava/lang/String;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=2, args_size=2
start local 0 start local 1 0: iconst_1
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/lucene/util/PrintStreamInfoStream;
0 1 1 component Ljava/lang/String;
MethodParameters:
Name Flags
component
public void close();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual org.apache.lucene.util.PrintStreamInfoStream.isSystemStream:()Z
ifne 2
1: aload 0
getfield org.apache.lucene.util.PrintStreamInfoStream.stream:Ljava/io/PrintStream;
invokevirtual java.io.PrintStream.close:()V
2: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/apache/lucene/util/PrintStreamInfoStream;
Exceptions:
throws java.io.IOException
public boolean isSystemStream();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.lucene.util.PrintStreamInfoStream.stream:Ljava/io/PrintStream;
getstatic java.lang.System.out:Ljava/io/PrintStream;
if_acmpeq 1
aload 0
getfield org.apache.lucene.util.PrintStreamInfoStream.stream:Ljava/io/PrintStream;
getstatic java.lang.System.err:Ljava/io/PrintStream;
if_acmpeq 1
iconst_0
ireturn
StackMap locals:
StackMap stack:
1: iconst_1
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/apache/lucene/util/PrintStreamInfoStream;
RuntimeInvisibleAnnotations:
org.apache.lucene.util.SuppressForbidden(reason = "System.out/err detection")
protected java.lang.String getTimestamp();
descriptor: ()Ljava/lang/String;
flags: (0x0004) ACC_PROTECTED
Code:
stack=1, locals=1, args_size=1
start local 0 0: invokestatic java.time.Instant.now:()Ljava/time/Instant;
invokevirtual java.time.Instant.toString:()Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/lucene/util/PrintStreamInfoStream;
}
SourceFile: "PrintStreamInfoStream.java"