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 40
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 43
aload 0 /* this */
invokespecial java.lang.Object.<init>:()V
1: .line 44
aload 0 /* this */
aload 1 /* vm */
putfield sun.tools.jstat.ExpressionResolver.vm:Lsun/jvmstat/monitor/MonitoredVm;
2: .line 45
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=5, locals=12, args_size=2
start local 0 // sun.tools.jstat.ExpressionResolver this
start local 1 // sun.tools.jstat.Expression e
0: .line 53
aload 1 /* e */
ifnonnull 2
1: .line 54
aconst_null
areturn
2: .line 57
StackMap locals:
StackMap stack:
getstatic sun.tools.jstat.ExpressionResolver.debug:Z
ifeq 4
3: .line 58
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 61
StackMap locals:
StackMap stack:
aload 1 /* e */
instanceof sun.tools.jstat.Identifier
ifeq 24
5: .line 62
aload 1 /* e */
checkcast sun.tools.jstat.Identifier
astore 2 /* id */
start local 2 // sun.tools.jstat.Identifier id
6: .line 65
aload 2 /* id */
invokevirtual sun.tools.jstat.Identifier.isResolved:()Z
ifeq 8
7: .line 66
aload 2 /* id */
areturn
8: .line 70
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 71
aload 3 /* m */
ifnonnull 15
10: .line 72
getstatic sun.tools.jstat.ExpressionResolver.debug:Z
ifeq 14
11: .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
12: .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;
13: .line 73
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
14: .line 76
StackMap locals: sun.jvmstat.monitor.Monitor
StackMap stack:
new sun.tools.jstat.Literal
dup
ldc NaN
invokestatic java.lang.Double.valueOf:(D)Ljava/lang/Double;
invokespecial sun.tools.jstat.Literal.<init>:(Ljava/lang/Object;)V
areturn
15: .line 78
StackMap locals:
StackMap stack:
aload 3 /* m */
invokeinterface sun.jvmstat.monitor.Monitor.getVariability:()Lsun/jvmstat/monitor/Variability;
getstatic sun.jvmstat.monitor.Variability.CONSTANT:Lsun/jvmstat/monitor/Variability;
if_acmpne 22
16: .line 79
getstatic sun.tools.jstat.ExpressionResolver.debug:Z
ifeq 21
17: .line 80
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;
18: .line 81
ldc " to literal with value "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
19: .line 82
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;
20: .line 80
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
21: .line 84
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
22: .line 86
StackMap locals:
StackMap stack:
aload 2 /* id */
aload 3 /* m */
invokevirtual sun.tools.jstat.Identifier.setValue:(Ljava/lang/Object;)V
23: .line 87
aload 2 /* id */
areturn
end local 3 // sun.jvmstat.monitor.Monitor m
end local 2 // sun.tools.jstat.Identifier id
24: .line 90
StackMap locals:
StackMap stack:
aload 1 /* e */
instanceof sun.tools.jstat.Literal
ifeq 26
25: .line 91
aload 1 /* e */
areturn
26: .line 94
StackMap locals:
StackMap stack:
aconst_null
astore 2 /* l */
start local 2 // sun.tools.jstat.Expression l
27: .line 95
aconst_null
astore 3 /* r */
start local 3 // sun.tools.jstat.Expression r
28: .line 97
aload 1 /* e */
invokevirtual sun.tools.jstat.Expression.getLeft:()Lsun/tools/jstat/Expression;
ifnull 30
29: .line 98
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 */
30: .line 100
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 32
31: .line 101
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 */
32: .line 104
StackMap locals:
StackMap stack:
aload 2 /* l */
ifnull 56
aload 3 /* r */
ifnull 56
33: .line 105
aload 2 /* l */
instanceof sun.tools.jstat.Literal
ifeq 56
aload 3 /* r */
instanceof sun.tools.jstat.Literal
ifeq 56
34: .line 106
aload 2 /* l */
checkcast sun.tools.jstat.Literal
astore 4 /* ll */
start local 4 // sun.tools.jstat.Literal ll
35: .line 107
aload 3 /* r */
checkcast sun.tools.jstat.Literal
astore 5 /* rl */
start local 5 // sun.tools.jstat.Literal rl
36: .line 108
iconst_0
istore 6 /* warn */
start local 6 // boolean warn
37: .line 110
ldc NaN
invokestatic java.lang.Double.valueOf:(D)Ljava/lang/Double;
astore 7 /* nan */
start local 7 // java.lang.Double nan
38: .line 111
aload 4 /* ll */
invokevirtual sun.tools.jstat.Literal.getValue:()Ljava/lang/Object;
instanceof java.lang.String
ifeq 40
39: .line 112
iconst_1
istore 6 /* warn */
aload 4 /* ll */
aload 7 /* nan */
invokevirtual sun.tools.jstat.Literal.setValue:(Ljava/lang/Object;)V
40: .line 114
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 42
41: .line 115
iconst_1
istore 6 /* warn */
aload 5 /* rl */
aload 7 /* nan */
invokevirtual sun.tools.jstat.Literal.setValue:(Ljava/lang/Object;)V
42: .line 117
StackMap locals:
StackMap stack:
getstatic sun.tools.jstat.ExpressionResolver.debug:Z
ifeq 44
iload 6 /* warn */
ifeq 44
43: .line 118
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
44: .line 124
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
45: .line 125
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
46: .line 126
aload 1 /* e */
invokevirtual sun.tools.jstat.Expression.getOperator:()Lsun/tools/jstat/Operator;
aload 8 /* ln */
invokevirtual java.lang.Number.doubleValue:()D
47: .line 127
aload 9 /* rn */
invokevirtual java.lang.Number.doubleValue:()D
48: .line 126
invokevirtual sun.tools.jstat.Operator.eval:(DD)D
dstore 10 /* result */
start local 10 // double result
49: .line 128
getstatic sun.tools.jstat.ExpressionResolver.debug:Z
ifeq 55
50: .line 129
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;
51: .line 130
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;
52: .line 131
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;
53: .line 132
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;
54: .line 129
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
55: .line 134
StackMap locals: java.lang.Number java.lang.Number double
StackMap stack:
new sun.tools.jstat.Literal
dup
dload 10 /* result */
invokestatic java.lang.Double.valueOf:(D)Ljava/lang/Double;
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
56: .line 138
StackMap locals: sun.tools.jstat.ExpressionResolver sun.tools.jstat.Expression sun.tools.jstat.Expression sun.tools.jstat.Expression
StackMap stack:
aload 2 /* l */
ifnull 58
aload 3 /* r */
ifnonnull 58
57: .line 139
aload 2 /* l */
areturn
58: .line 142
StackMap locals:
StackMap stack:
aload 1 /* e */
aload 2 /* l */
invokevirtual sun.tools.jstat.Expression.setLeft:(Lsun/tools/jstat/Expression;)V
59: .line 143
aload 1 /* e */
aload 3 /* r */
invokevirtual sun.tools.jstat.Expression.setRight:(Lsun/tools/jstat/Expression;)V
60: .line 145
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 61 0 this Lsun/tools/jstat/ExpressionResolver;
0 61 1 e Lsun/tools/jstat/Expression;
6 24 2 id Lsun/tools/jstat/Identifier;
9 24 3 m Lsun/jvmstat/monitor/Monitor;
27 61 2 l Lsun/tools/jstat/Expression;
28 61 3 r Lsun/tools/jstat/Expression;
35 56 4 ll Lsun/tools/jstat/Literal;
36 56 5 rl Lsun/tools/jstat/Literal;
37 56 6 warn Z
38 56 7 nan Ljava/lang/Double;
45 56 8 ln Ljava/lang/Number;
46 56 9 rn Ljava/lang/Number;
49 56 10 result D
Exceptions:
throws sun.jvmstat.monitor.MonitorException
MethodParameters:
Name Flags
e
}
SourceFile: "ExpressionResolver.java"