public abstract class sun.management.Sensor
minor version: 0
major version: 59
flags: flags: (0x0421) ACC_PUBLIC, ACC_SUPER, ACC_ABSTRACT
this_class: sun.management.Sensor
super_class: java.lang.Object
{
private java.lang.Object lock;
descriptor: Ljava/lang/Object;
flags: (0x0002) ACC_PRIVATE
private java.lang.String name;
descriptor: Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
private long count;
descriptor: J
flags: (0x0002) ACC_PRIVATE
private boolean on;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
public void <init>(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aload 1
putfield sun.management.Sensor.name:Ljava/lang/String;
2: aload 0
lconst_0
putfield sun.management.Sensor.count:J
3: aload 0
iconst_0
putfield sun.management.Sensor.on:Z
4: aload 0
new java.lang.Object
dup
invokespecial java.lang.Object.<init>:()V
putfield sun.management.Sensor.lock:Ljava/lang/Object;
5: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lsun/management/Sensor;
0 6 1 name Ljava/lang/String;
MethodParameters:
Name Flags
name
public java.lang.String getName();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.management.Sensor.name:Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/management/Sensor;
public long getCount();
descriptor: ()J
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=1
start local 0 0: aload 0
getfield sun.management.Sensor.lock:Ljava/lang/Object;
dup
astore 1
monitorenter
1: aload 0
getfield sun.management.Sensor.count:J
aload 1
monitorexit
2: lreturn
3: StackMap locals: sun.management.Sensor java.lang.Object
StackMap stack: java.lang.Throwable
aload 1
monitorexit
4: athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lsun/management/Sensor;
Exception table:
from to target type
1 2 3 any
3 4 3 any
public boolean isOn();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
getfield sun.management.Sensor.lock:Ljava/lang/Object;
dup
astore 1
monitorenter
1: aload 0
getfield sun.management.Sensor.on:Z
aload 1
monitorexit
2: ireturn
3: StackMap locals: sun.management.Sensor java.lang.Object
StackMap stack: java.lang.Throwable
aload 1
monitorexit
4: athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lsun/management/Sensor;
Exception table:
from to target type
1 2 3 any
3 4 3 any
public void trigger();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=2, args_size=1
start local 0 0: aload 0
getfield sun.management.Sensor.lock:Ljava/lang/Object;
dup
astore 1
monitorenter
1: aload 0
iconst_1
putfield sun.management.Sensor.on:Z
2: aload 0
dup
getfield sun.management.Sensor.count:J
lconst_1
ladd
putfield sun.management.Sensor.count:J
3: aload 1
monitorexit
4: goto 7
StackMap locals: sun.management.Sensor java.lang.Object
StackMap stack: java.lang.Throwable
5: aload 1
monitorexit
6: athrow
7: StackMap locals:
StackMap stack:
aload 0
invokevirtual sun.management.Sensor.triggerAction:()V
8: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lsun/management/Sensor;
Exception table:
from to target type
1 4 5 any
5 6 5 any
public void trigger(int);
descriptor: (I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getfield sun.management.Sensor.lock:Ljava/lang/Object;
dup
astore 2
monitorenter
1: aload 0
iconst_1
putfield sun.management.Sensor.on:Z
2: aload 0
dup
getfield sun.management.Sensor.count:J
iload 1
i2l
ladd
putfield sun.management.Sensor.count:J
3: aload 2
monitorexit
4: goto 7
StackMap locals: sun.management.Sensor int java.lang.Object
StackMap stack: java.lang.Throwable
5: aload 2
monitorexit
6: athrow
7: StackMap locals:
StackMap stack:
aload 0
invokevirtual sun.management.Sensor.triggerAction:()V
8: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lsun/management/Sensor;
0 9 1 increment I
Exception table:
from to target type
1 4 5 any
5 6 5 any
MethodParameters:
Name Flags
increment
public void trigger(int, java.lang.management.MemoryUsage);
descriptor: (ILjava/lang/management/MemoryUsage;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield sun.management.Sensor.lock:Ljava/lang/Object;
dup
astore 3
monitorenter
1: aload 0
iconst_1
putfield sun.management.Sensor.on:Z
2: aload 0
dup
getfield sun.management.Sensor.count:J
iload 1
i2l
ladd
putfield sun.management.Sensor.count:J
3: aload 3
monitorexit
4: goto 7
StackMap locals: sun.management.Sensor int java.lang.management.MemoryUsage java.lang.Object
StackMap stack: java.lang.Throwable
5: aload 3
monitorexit
6: athrow
7: StackMap locals:
StackMap stack:
aload 0
aload 2
invokevirtual sun.management.Sensor.triggerAction:(Ljava/lang/management/MemoryUsage;)V
8: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lsun/management/Sensor;
0 9 1 increment I
0 9 2 usage Ljava/lang/management/MemoryUsage;
Exception table:
from to target type
1 4 5 any
5 6 5 any
MethodParameters:
Name Flags
increment
usage
public void clear();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
getfield sun.management.Sensor.lock:Ljava/lang/Object;
dup
astore 1
monitorenter
1: aload 0
iconst_0
putfield sun.management.Sensor.on:Z
2: aload 1
monitorexit
3: goto 6
StackMap locals: sun.management.Sensor java.lang.Object
StackMap stack: java.lang.Throwable
4: aload 1
monitorexit
5: athrow
6: StackMap locals:
StackMap stack:
aload 0
invokevirtual sun.management.Sensor.clearAction:()V
7: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lsun/management/Sensor;
Exception table:
from to target type
1 3 4 any
4 5 4 any
public void clear(int);
descriptor: (I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getfield sun.management.Sensor.lock:Ljava/lang/Object;
dup
astore 2
monitorenter
1: aload 0
iconst_0
putfield sun.management.Sensor.on:Z
2: aload 0
dup
getfield sun.management.Sensor.count:J
iload 1
i2l
ladd
putfield sun.management.Sensor.count:J
3: aload 2
monitorexit
4: goto 7
StackMap locals: sun.management.Sensor int java.lang.Object
StackMap stack: java.lang.Throwable
5: aload 2
monitorexit
6: athrow
7: StackMap locals:
StackMap stack:
aload 0
invokevirtual sun.management.Sensor.clearAction:()V
8: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lsun/management/Sensor;
0 9 1 increment I
Exception table:
from to target type
1 4 5 any
5 6 5 any
MethodParameters:
Name Flags
increment
public java.lang.String toString();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: new java.lang.StringBuilder
dup
ldc "Sensor - "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
invokevirtual sun.management.Sensor.getName:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
1: aload 0
invokevirtual sun.management.Sensor.isOn:()Z
ifeq 2
ldc " on "
goto 3
StackMap locals:
StackMap stack: java.lang.StringBuilder
2: ldc " off "
StackMap locals: sun.management.Sensor
StackMap stack: java.lang.StringBuilder java.lang.String
3: invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
4: ldc " count = "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
invokevirtual sun.management.Sensor.getCount:()J
invokevirtual java.lang.StringBuilder.append:(J)Ljava/lang/StringBuilder;
5: invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lsun/management/Sensor;
abstract void triggerAction();
descriptor: ()V
flags: (0x0400) ACC_ABSTRACT
abstract void triggerAction(java.lang.management.MemoryUsage);
descriptor: (Ljava/lang/management/MemoryUsage;)V
flags: (0x0400) ACC_ABSTRACT
MethodParameters:
Name Flags
u
abstract void clearAction();
descriptor: ()V
flags: (0x0400) ACC_ABSTRACT
}
SourceFile: "Sensor.java"