public class sun.tools.jstat.ExpressionResolver implements sun.tools.jstat.ExpressionEvaluator
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: sun.tools.jstat.ExpressionResolver
super_class: java.lang.Object
{
private static boolean debug;
descriptor: Z
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
private sun.jvmstat.monitor.MonitoredVm vm;
descriptor: Lsun/jvmstat/monitor/MonitoredVm;
flags: (0x0002) ACC_PRIVATE
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: .line 41
ldc "ExpressionResolver.debug"
invokestatic java.lang.Boolean.getBoolean:(Ljava/lang/String;)Z
putstatic sun.tools.jstat.ExpressionResolver.debug:Z
return
LocalVariableTable:
Start End Slot Name Signature
void <init>(sun.jvmstat.monitor.MonitoredVm);
descriptor: (Lsun/jvmstat/monitor/MonitoredVm;)V
flags: (0x0000)
Code:
stack=2, locals=2, args_size=2
start local 0 // sun.tools.jstat.ExpressionResolver this
start local 1 // sun.jvmstat.monitor.MonitoredVm vm
0: .line 44
aload 0 /* this */
invokespecial java.lang.Object.<init>:()V
1: .line 45
aload 0 /* this */
aload 1 /* vm */
putfield sun.tools.jstat.ExpressionResolver.vm:Lsun/jvmstat/monitor/MonitoredVm;
2: .line 46
return
end local 1 // sun.jvmstat.monitor.MonitoredVm vm
end local 0 // sun.tools.jstat.ExpressionResolver this
LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lsun/tools/jstat/ExpressionResolver;
0 3 1 vm Lsun/jvmstat/monitor/MonitoredVm;
MethodParameters:
Name Flags
vm
public java.lang.Object evaluate(sun.tools.jstat.Expression);
descriptor: (Lsun/tools/jstat/Expression;)Ljava/lang/Object;
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=12, args_size=2
start local 0 // sun.tools.jstat.ExpressionResolver this
start local 1 // sun.tools.jstat.Expression e
0: .line 54
aload 1 /* e */
ifnonnull 2
1: .line 55
aconst_null
areturn
2: .line 58
StackMap locals:
StackMap stack:
getstatic sun.tools.jstat.ExpressionResolver.debug:Z
ifeq 4
3: .line 59
getstatic java.lang.System.out:Ljava/io/PrintStream;
new java.lang.StringBuilder
dup
ldc "Resolving Expression:"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1 /* e */
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
4: .line 62
StackMap locals:
StackMap stack:
aload 1 /* e */
instanceof sun.tools.jstat.Identifier
ifeq 23
5: .line 63
aload 1 /* e */
checkcast sun.tools.jstat.Identifier
astore 2 /* id */
start local 2 // sun.tools.jstat.Identifier id
6: .line 66
aload 2 /* id */
invokevirtual sun.tools.jstat.Identifier.isResolved:()Z
ifeq 8
7: .line 67
aload 2 /* id */
areturn
8: .line 71
StackMap locals: sun.tools.jstat.Identifier
StackMap stack:
aload 0 /* this */
getfield sun.tools.jstat.ExpressionResolver.vm:Lsun/jvmstat/monitor/MonitoredVm;
aload 2 /* id */
invokevirtual sun.tools.jstat.Identifier.getName:()Ljava/lang/String;
invokeinterface sun.jvmstat.monitor.MonitoredVm.findByName:(Ljava/lang/String;)Lsun/jvmstat/monitor/Monitor;
astore 3 /* m */
start local 3 // sun.jvmstat.monitor.Monitor m
9: .line 72
aload 3 /* m */
ifnonnull 14
10: .line 73
getstatic java.lang.System.err:Ljava/io/PrintStream;
new java.lang.StringBuilder
dup
ldc "Warning: Unresolved Symbol: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
11: .line 74
aload 2 /* id */
invokevirtual sun.tools.jstat.Identifier.getName:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc " substituted NaN"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
12: .line 73
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
13: .line 75
new sun.tools.jstat.Literal
dup
new java.lang.Double
dup
ldc NaN
invokespecial java.lang.Double.<init>:(D)V
invokespecial sun.tools.jstat.Literal.<init>:(Ljava/lang/Object;)V
areturn
14: .line 77
StackMap locals: sun.jvmstat.monitor.Monitor
StackMap stack:
aload 3 /* m */
invokeinterface sun.jvmstat.monitor.Monitor.getVariability:()Lsun/management/counter/Variability;
getstatic sun.management.counter.Variability.CONSTANT:Lsun/management/counter/Variability;
if_acmpne 21
15: .line 78
getstatic sun.tools.jstat.ExpressionResolver.debug:Z
ifeq 20
16: .line 79
getstatic java.lang.System.out:Ljava/io/PrintStream;
new java.lang.StringBuilder
dup
ldc "Converting constant "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 2 /* id */
invokevirtual sun.tools.jstat.Identifier.getName:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
17: .line 80
ldc " to literal with value "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
18: .line 81
aload 3 /* m */
invokeinterface sun.jvmstat.monitor.Monitor.getValue:()Ljava/lang/Object;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
19: .line 79
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
20: .line 83
StackMap locals:
StackMap stack:
new sun.tools.jstat.Literal
dup
aload 3 /* m */
invokeinterface sun.jvmstat.monitor.Monitor.getValue:()Ljava/lang/Object;
invokespecial sun.tools.jstat.Literal.<init>:(Ljava/lang/Object;)V
areturn
21: .line 85
StackMap locals:
StackMap stack:
aload 2 /* id */
aload 3 /* m */
invokevirtual sun.tools.jstat.Identifier.setValue:(Ljava/lang/Object;)V
22: .line 86
aload 2 /* id */
areturn
end local 3 // sun.jvmstat.monitor.Monitor m
end local 2 // sun.tools.jstat.Identifier id
23: .line 89
StackMap locals:
StackMap stack:
aload 1 /* e */
instanceof sun.tools.jstat.Literal
ifeq 25
24: .line 90
aload 1 /* e */
areturn
25: .line 93
StackMap locals:
StackMap stack:
aconst_null
astore 2 /* l */
start local 2 // sun.tools.jstat.Expression l
26: .line 94
aconst_null
astore 3 /* r */
start local 3 // sun.tools.jstat.Expression r
27: .line 96
aload 1 /* e */
invokevirtual sun.tools.jstat.Expression.getLeft:()Lsun/tools/jstat/Expression;
ifnull 29
28: .line 97
aload 0 /* this */
aload 1 /* e */
invokevirtual sun.tools.jstat.Expression.getLeft:()Lsun/tools/jstat/Expression;
invokevirtual sun.tools.jstat.ExpressionResolver.evaluate:(Lsun/tools/jstat/Expression;)Ljava/lang/Object;
checkcast sun.tools.jstat.Expression
astore 2 /* l */
29: .line 99
StackMap locals: sun.tools.jstat.Expression sun.tools.jstat.Expression
StackMap stack:
aload 1 /* e */
invokevirtual sun.tools.jstat.Expression.getRight:()Lsun/tools/jstat/Expression;
ifnull 31
30: .line 100
aload 0 /* this */
aload 1 /* e */
invokevirtual sun.tools.jstat.Expression.getRight:()Lsun/tools/jstat/Expression;
invokevirtual sun.tools.jstat.ExpressionResolver.evaluate:(Lsun/tools/jstat/Expression;)Ljava/lang/Object;
checkcast sun.tools.jstat.Expression
astore 3 /* r */
31: .line 103
StackMap locals:
StackMap stack:
aload 2 /* l */
ifnull 55
aload 3 /* r */
ifnull 55
32: .line 104
aload 2 /* l */
instanceof sun.tools.jstat.Literal
ifeq 55
aload 3 /* r */
instanceof sun.tools.jstat.Literal
ifeq 55
33: .line 105
aload 2 /* l */
checkcast sun.tools.jstat.Literal
astore 4 /* ll */
start local 4 // sun.tools.jstat.Literal ll
34: .line 106
aload 3 /* r */
checkcast sun.tools.jstat.Literal
astore 5 /* rl */
start local 5 // sun.tools.jstat.Literal rl
35: .line 107
iconst_0
istore 6 /* warn */
start local 6 // boolean warn
36: .line 109
new java.lang.Double
dup
ldc NaN
invokespecial java.lang.Double.<init>:(D)V
astore 7 /* nan */
start local 7 // java.lang.Double nan
37: .line 110
aload 4 /* ll */
invokevirtual sun.tools.jstat.Literal.getValue:()Ljava/lang/Object;
instanceof java.lang.String
ifeq 39
38: .line 111
iconst_1
istore 6 /* warn */
aload 4 /* ll */
aload 7 /* nan */
invokevirtual sun.tools.jstat.Literal.setValue:(Ljava/lang/Object;)V
39: .line 113
StackMap locals: sun.tools.jstat.ExpressionResolver sun.tools.jstat.Expression sun.tools.jstat.Expression sun.tools.jstat.Expression sun.tools.jstat.Literal sun.tools.jstat.Literal int java.lang.Double
StackMap stack:
aload 5 /* rl */
invokevirtual sun.tools.jstat.Literal.getValue:()Ljava/lang/Object;
instanceof java.lang.String
ifeq 41
40: .line 114
iconst_1
istore 6 /* warn */
aload 5 /* rl */
aload 7 /* nan */
invokevirtual sun.tools.jstat.Literal.setValue:(Ljava/lang/Object;)V
41: .line 116
StackMap locals:
StackMap stack:
getstatic sun.tools.jstat.ExpressionResolver.debug:Z
ifeq 43
iload 6 /* warn */
ifeq 43
42: .line 117
getstatic java.lang.System.out:Ljava/io/PrintStream;
ldc "Warning: String literal in numerical expression: substitutied NaN"
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
43: .line 123
StackMap locals:
StackMap stack:
aload 4 /* ll */
invokevirtual sun.tools.jstat.Literal.getValue:()Ljava/lang/Object;
checkcast java.lang.Number
astore 8 /* ln */
start local 8 // java.lang.Number ln
44: .line 124
aload 5 /* rl */
invokevirtual sun.tools.jstat.Literal.getValue:()Ljava/lang/Object;
checkcast java.lang.Number
astore 9 /* rn */
start local 9 // java.lang.Number rn
45: .line 125
aload 1 /* e */
invokevirtual sun.tools.jstat.Expression.getOperator:()Lsun/tools/jstat/Operator;
aload 8 /* ln */
invokevirtual java.lang.Number.doubleValue:()D
46: .line 126
aload 9 /* rn */
invokevirtual java.lang.Number.doubleValue:()D
47: .line 125
invokevirtual sun.tools.jstat.Operator.eval:(DD)D
dstore 10 /* result */
start local 10 // double result
48: .line 127
getstatic sun.tools.jstat.ExpressionResolver.debug:Z
ifeq 54
49: .line 128
getstatic java.lang.System.out:Ljava/io/PrintStream;
new java.lang.StringBuilder
dup
ldc "Converting expression "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1 /* e */
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
50: .line 129
ldc " (left = "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 8 /* ln */
invokevirtual java.lang.Number.doubleValue:()D
invokevirtual java.lang.StringBuilder.append:(D)Ljava/lang/StringBuilder;
ldc ")"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
51: .line 130
ldc " (right = "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 9 /* rn */
invokevirtual java.lang.Number.doubleValue:()D
invokevirtual java.lang.StringBuilder.append:(D)Ljava/lang/StringBuilder;
ldc ")"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
52: .line 131
ldc " to literal value "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
dload 10 /* result */
invokevirtual java.lang.StringBuilder.append:(D)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
53: .line 128
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
54: .line 133
StackMap locals: java.lang.Number java.lang.Number double
StackMap stack:
new sun.tools.jstat.Literal
dup
new java.lang.Double
dup
dload 10 /* result */
invokespecial java.lang.Double.<init>:(D)V
invokespecial sun.tools.jstat.Literal.<init>:(Ljava/lang/Object;)V
areturn
end local 10 // double result
end local 9 // java.lang.Number rn
end local 8 // java.lang.Number ln
end local 7 // java.lang.Double nan
end local 6 // boolean warn
end local 5 // sun.tools.jstat.Literal rl
end local 4 // sun.tools.jstat.Literal ll
55: .line 137
StackMap locals: sun.tools.jstat.ExpressionResolver sun.tools.jstat.Expression sun.tools.jstat.Expression sun.tools.jstat.Expression
StackMap stack:
aload 2 /* l */
ifnull 57
aload 3 /* r */
ifnonnull 57
56: .line 138
aload 2 /* l */
areturn
57: .line 141
StackMap locals:
StackMap stack:
aload 1 /* e */
aload 2 /* l */
invokevirtual sun.tools.jstat.Expression.setLeft:(Lsun/tools/jstat/Expression;)V
58: .line 142
aload 1 /* e */
aload 3 /* r */
invokevirtual sun.tools.jstat.Expression.setRight:(Lsun/tools/jstat/Expression;)V
59: .line 144
aload 1 /* e */
areturn
end local 3 // sun.tools.jstat.Expression r
end local 2 // sun.tools.jstat.Expression l
end local 1 // sun.tools.jstat.Expression e
end local 0 // sun.tools.jstat.ExpressionResolver this
LocalVariableTable:
Start End Slot Name Signature
0 60 0 this Lsun/tools/jstat/ExpressionResolver;
0 60 1 e Lsun/tools/jstat/Expression;
6 23 2 id Lsun/tools/jstat/Identifier;
9 23 3 m Lsun/jvmstat/monitor/Monitor;
26 60 2 l Lsun/tools/jstat/Expression;
27 60 3 r Lsun/tools/jstat/Expression;
34 55 4 ll Lsun/tools/jstat/Literal;
35 55 5 rl Lsun/tools/jstat/Literal;
36 55 6 warn Z
37 55 7 nan Ljava/lang/Double;
44 55 8 ln Ljava/lang/Number;
45 55 9 rn Ljava/lang/Number;
48 55 10 result D
Exceptions:
throws sun.jvmstat.monitor.MonitorException
MethodParameters:
Name Flags
e
}
SourceFile: "ExpressionResolver.java"