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