class com.sun.tools.hat.internal.server.OQLQuery extends com.sun.tools.hat.internal.server.QueryHandler
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: com.sun.tools.hat.internal.server.OQLQuery
super_class: com.sun.tools.hat.internal.server.QueryHandler
{
private com.sun.tools.hat.internal.oql.OQLEngine engine;
descriptor: Lcom/sun/tools/hat/internal/oql/OQLEngine;
flags: (0x0002) ACC_PRIVATE
public void <init>(com.sun.tools.hat.internal.oql.OQLEngine);
descriptor: (Lcom/sun/tools/hat/internal/oql/OQLEngine;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 // com.sun.tools.hat.internal.server.OQLQuery this
start local 1 // com.sun.tools.hat.internal.oql.OQLEngine engine
0: .line 45
aload 0 /* this */
invokespecial com.sun.tools.hat.internal.server.QueryHandler.<init>:()V
1: .line 46
aload 0 /* this */
aload 1 /* engine */
putfield com.sun.tools.hat.internal.server.OQLQuery.engine:Lcom/sun/tools/hat/internal/oql/OQLEngine;
2: .line 47
return
end local 1 // com.sun.tools.hat.internal.oql.OQLEngine engine
end local 0 // com.sun.tools.hat.internal.server.OQLQuery this
LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/sun/tools/hat/internal/server/OQLQuery;
0 3 1 engine Lcom/sun/tools/hat/internal/oql/OQLEngine;
MethodParameters:
Name Flags
engine
public void run();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=1
start local 0 // com.sun.tools.hat.internal.server.OQLQuery this
0: .line 50
aload 0 /* this */
ldc "Object Query Language (OQL) query"
invokevirtual com.sun.tools.hat.internal.server.OQLQuery.startHtml:(Ljava/lang/String;)V
1: .line 51
aconst_null
astore 1 /* oql */
start local 1 // java.lang.String oql
2: .line 52
aload 0 /* this */
getfield com.sun.tools.hat.internal.server.OQLQuery.query:Ljava/lang/String;
ifnull 6
aload 0 /* this */
getfield com.sun.tools.hat.internal.server.OQLQuery.query:Ljava/lang/String;
ldc ""
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 6
3: .line 53
aload 0 /* this */
getfield com.sun.tools.hat.internal.server.OQLQuery.query:Ljava/lang/String;
ldc "?query="
invokevirtual java.lang.String.indexOf:(Ljava/lang/String;)I
istore 2 /* index */
start local 2 // int index
4: .line 54
iload 2 /* index */
iconst_m1
if_icmpeq 6
aload 0 /* this */
getfield com.sun.tools.hat.internal.server.OQLQuery.query:Ljava/lang/String;
invokevirtual java.lang.String.length:()I
bipush 7
if_icmple 6
5: .line 55
aload 0 /* this */
getfield com.sun.tools.hat.internal.server.OQLQuery.query:Ljava/lang/String;
iload 2 /* index */
bipush 7
iadd
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
astore 1 /* oql */
end local 2 // int index
6: .line 58
StackMap locals: java.lang.String
StackMap stack:
aload 0 /* this */
getfield com.sun.tools.hat.internal.server.OQLQuery.out:Ljava/io/PrintWriter;
ldc "<p align='center'><table>"
invokevirtual java.io.PrintWriter.println:(Ljava/lang/String;)V
7: .line 59
aload 0 /* this */
getfield com.sun.tools.hat.internal.server.OQLQuery.out:Ljava/io/PrintWriter;
ldc "<tr><td><b>"
invokevirtual java.io.PrintWriter.println:(Ljava/lang/String;)V
8: .line 60
aload 0 /* this */
getfield com.sun.tools.hat.internal.server.OQLQuery.out:Ljava/io/PrintWriter;
ldc "<a href='/'>All Classes (excluding platform)</a>"
invokevirtual java.io.PrintWriter.println:(Ljava/lang/String;)V
9: .line 61
aload 0 /* this */
getfield com.sun.tools.hat.internal.server.OQLQuery.out:Ljava/io/PrintWriter;
ldc "</b></td>"
invokevirtual java.io.PrintWriter.println:(Ljava/lang/String;)V
10: .line 62
aload 0 /* this */
getfield com.sun.tools.hat.internal.server.OQLQuery.out:Ljava/io/PrintWriter;
ldc "<td><b><a href='/oqlhelp/'>OQL Help</a></b></td></tr>"
invokevirtual java.io.PrintWriter.println:(Ljava/lang/String;)V
11: .line 63
aload 0 /* this */
getfield com.sun.tools.hat.internal.server.OQLQuery.out:Ljava/io/PrintWriter;
ldc "</table></p>"
invokevirtual java.io.PrintWriter.println:(Ljava/lang/String;)V
12: .line 64
aload 0 /* this */
getfield com.sun.tools.hat.internal.server.OQLQuery.out:Ljava/io/PrintWriter;
ldc "<form action='/oql/' method='get'>"
invokevirtual java.io.PrintWriter.println:(Ljava/lang/String;)V
13: .line 65
aload 0 /* this */
getfield com.sun.tools.hat.internal.server.OQLQuery.out:Ljava/io/PrintWriter;
ldc "<p align='center'>"
invokevirtual java.io.PrintWriter.println:(Ljava/lang/String;)V
14: .line 66
aload 0 /* this */
getfield com.sun.tools.hat.internal.server.OQLQuery.out:Ljava/io/PrintWriter;
ldc "<textarea name='query' cols=80 rows=10>"
invokevirtual java.io.PrintWriter.println:(Ljava/lang/String;)V
15: .line 67
aload 1 /* oql */
ifnull 17
16: .line 68
aload 0 /* this */
aload 1 /* oql */
invokevirtual com.sun.tools.hat.internal.server.OQLQuery.println:(Ljava/lang/String;)V
17: .line 70
StackMap locals:
StackMap stack:
aload 0 /* this */
getfield com.sun.tools.hat.internal.server.OQLQuery.out:Ljava/io/PrintWriter;
ldc "</textarea>"
invokevirtual java.io.PrintWriter.println:(Ljava/lang/String;)V
18: .line 71
aload 0 /* this */
getfield com.sun.tools.hat.internal.server.OQLQuery.out:Ljava/io/PrintWriter;
ldc "</p>"
invokevirtual java.io.PrintWriter.println:(Ljava/lang/String;)V
19: .line 72
aload 0 /* this */
getfield com.sun.tools.hat.internal.server.OQLQuery.out:Ljava/io/PrintWriter;
ldc "<p align='center'>"
invokevirtual java.io.PrintWriter.println:(Ljava/lang/String;)V
20: .line 73
aload 0 /* this */
getfield com.sun.tools.hat.internal.server.OQLQuery.out:Ljava/io/PrintWriter;
ldc "<input type='submit' value='Execute'></input>"
invokevirtual java.io.PrintWriter.println:(Ljava/lang/String;)V
21: .line 74
aload 0 /* this */
getfield com.sun.tools.hat.internal.server.OQLQuery.out:Ljava/io/PrintWriter;
ldc "</p>"
invokevirtual java.io.PrintWriter.println:(Ljava/lang/String;)V
22: .line 75
aload 0 /* this */
getfield com.sun.tools.hat.internal.server.OQLQuery.out:Ljava/io/PrintWriter;
ldc "</form>"
invokevirtual java.io.PrintWriter.println:(Ljava/lang/String;)V
23: .line 76
aload 1 /* oql */
ifnull 25
24: .line 77
aload 0 /* this */
aload 1 /* oql */
invokevirtual com.sun.tools.hat.internal.server.OQLQuery.executeQuery:(Ljava/lang/String;)V
25: .line 79
StackMap locals:
StackMap stack:
aload 0 /* this */
invokevirtual com.sun.tools.hat.internal.server.OQLQuery.endHtml:()V
26: .line 80
return
end local 1 // java.lang.String oql
end local 0 // com.sun.tools.hat.internal.server.OQLQuery this
LocalVariableTable:
Start End Slot Name Signature
0 27 0 this Lcom/sun/tools/hat/internal/server/OQLQuery;
2 27 1 oql Ljava/lang/String;
4 6 2 index I
private void executeQuery(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=3, args_size=2
start local 0 // com.sun.tools.hat.internal.server.OQLQuery this
start local 1 // java.lang.String q
0: .line 84
aload 0 /* this */
getfield com.sun.tools.hat.internal.server.OQLQuery.out:Ljava/io/PrintWriter;
ldc "<table border='1'>"
invokevirtual java.io.PrintWriter.println:(Ljava/lang/String;)V
1: .line 85
aload 0 /* this */
getfield com.sun.tools.hat.internal.server.OQLQuery.engine:Lcom/sun/tools/hat/internal/oql/OQLEngine;
aload 1 /* q */
new com.sun.tools.hat.internal.server.OQLQuery$1
dup
aload 0 /* this */
invokespecial com.sun.tools.hat.internal.server.OQLQuery$1.<init>:(Lcom/sun/tools/hat/internal/server/OQLQuery;)V
invokevirtual com.sun.tools.hat.internal.oql.OQLEngine.executeQuery:(Ljava/lang/String;Lcom/sun/tools/hat/internal/oql/ObjectVisitor;)V
2: .line 97
aload 0 /* this */
getfield com.sun.tools.hat.internal.server.OQLQuery.out:Ljava/io/PrintWriter;
ldc "</table>"
invokevirtual java.io.PrintWriter.println:(Ljava/lang/String;)V
3: .line 98
goto 6
StackMap locals:
StackMap stack: com.sun.tools.hat.internal.oql.OQLException
4: astore 2 /* exp */
start local 2 // com.sun.tools.hat.internal.oql.OQLException exp
5: .line 99
aload 0 /* this */
aload 2 /* exp */
invokevirtual com.sun.tools.hat.internal.server.OQLQuery.printException:(Ljava/lang/Throwable;)V
end local 2 // com.sun.tools.hat.internal.oql.OQLException exp
6: .line 101
StackMap locals:
StackMap stack:
return
end local 1 // java.lang.String q
end local 0 // com.sun.tools.hat.internal.server.OQLQuery this
LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lcom/sun/tools/hat/internal/server/OQLQuery;
0 7 1 q Ljava/lang/String;
5 6 2 exp Lcom/sun/tools/hat/internal/oql/OQLException;
Exception table:
from to target type
0 3 4 Class com.sun.tools.hat.internal.oql.OQLException
MethodParameters:
Name Flags
q
}
SourceFile: "OQLQuery.java"
NestMembers:
com.sun.tools.hat.internal.server.OQLQuery$1
InnerClasses:
com.sun.tools.hat.internal.server.OQLQuery$1