class com.sun.org.apache.xpath.internal.jaxp.XPathResultImpl<T> implements javax.xml.xpath.XPathEvaluationResult<T>
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: com.sun.org.apache.xpath.internal.jaxp.XPathResultImpl
super_class: java.lang.Object
{
com.sun.org.apache.xpath.internal.objects.XObject resultObject;
descriptor: Lcom/sun/org/apache/xpath/internal/objects/XObject;
flags: (0x0000)
int resultType;
descriptor: I
flags: (0x0000)
java.lang.Class<T> type;
descriptor: Ljava/lang/Class;
flags: (0x0000)
Signature: Ljava/lang/Class<TT;>;
javax.xml.xpath.XPathEvaluationResult$XPathResultType mapToType;
descriptor: Ljavax/xml/xpath/XPathEvaluationResult$XPathResultType;
flags: (0x0000)
org.w3c.dom.NodeList nodeList;
descriptor: Lorg/w3c/dom/NodeList;
flags: (0x0000)
int currentIndex;
descriptor: I
flags: (0x0000)
org.w3c.dom.Node currentNode;
descriptor: Lorg/w3c/dom/Node;
flags: (0x0000)
boolean boolValue;
descriptor: Z
flags: (0x0000)
org.w3c.dom.Node node;
descriptor: Lorg/w3c/dom/Node;
flags: (0x0000)
double numValue;
descriptor: D
flags: (0x0000)
java.lang.String strValue;
descriptor: Ljava/lang/String;
flags: (0x0000)
public void <init>(com.sun.org.apache.xpath.internal.objects.XObject, java.lang.Class<T>);
descriptor: (Lcom/sun/org/apache/xpath/internal/objects/XObject;Ljava/lang/Class;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aconst_null
putfield com.sun.org.apache.xpath.internal.jaxp.XPathResultImpl.nodeList:Lorg/w3c/dom/NodeList;
2: aload 0
iconst_0
putfield com.sun.org.apache.xpath.internal.jaxp.XPathResultImpl.boolValue:Z
3: aload 0
aconst_null
putfield com.sun.org.apache.xpath.internal.jaxp.XPathResultImpl.node:Lorg/w3c/dom/Node;
4: aload 0
aload 1
putfield com.sun.org.apache.xpath.internal.jaxp.XPathResultImpl.resultObject:Lcom/sun/org/apache/xpath/internal/objects/XObject;
5: aload 0
aload 1
invokevirtual com.sun.org.apache.xpath.internal.objects.XObject.getType:()I
putfield com.sun.org.apache.xpath.internal.jaxp.XPathResultImpl.resultType:I
6: aload 0
aload 2
putfield com.sun.org.apache.xpath.internal.jaxp.XPathResultImpl.type:Ljava/lang/Class;
7: aload 0
aload 1
invokevirtual com.sun.org.apache.xpath.internal.jaxp.XPathResultImpl.getResult:(Lcom/sun/org/apache/xpath/internal/objects/XObject;)V
8: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lcom/sun/org/apache/xpath/internal/jaxp/XPathResultImpl<TT;>;
0 9 1 resultObject Lcom/sun/org/apache/xpath/internal/objects/XObject;
0 9 2 type Ljava/lang/Class<TT;>;
Exceptions:
throws javax.xml.transform.TransformerException
Signature: (Lcom/sun/org/apache/xpath/internal/objects/XObject;Ljava/lang/Class<TT;>;)V
MethodParameters:
Name Flags
resultObject
type
public javax.xml.xpath.XPathEvaluationResult$XPathResultType type();
descriptor: ()Ljavax/xml/xpath/XPathEvaluationResult$XPathResultType;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield com.sun.org.apache.xpath.internal.jaxp.XPathResultImpl.mapToType:Ljavax/xml/xpath/XPathEvaluationResult$XPathResultType;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/sun/org/apache/xpath/internal/jaxp/XPathResultImpl<TT;>;
public T value();
descriptor: ()Ljava/lang/Object;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=1
start local 0 0: aload 0
getfield com.sun.org.apache.xpath.internal.jaxp.XPathResultImpl.type:Ljava/lang/Class;
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;)Ljava/lang/Object;
pop
1: aload 0
getfield com.sun.org.apache.xpath.internal.jaxp.XPathResultImpl.resultObject:Lcom/sun/org/apache/xpath/internal/objects/XObject;
aload 0
getfield com.sun.org.apache.xpath.internal.jaxp.XPathResultImpl.type:Ljava/lang/Class;
invokestatic com.sun.org.apache.xpath.internal.jaxp.XPathResultImpl.getValue:(Lcom/sun/org/apache/xpath/internal/objects/XObject;Ljava/lang/Class;)Ljava/lang/Object;
2: areturn
3: StackMap locals:
StackMap stack: javax.xml.transform.TransformerException
astore 1
start local 1 4: new java.lang.RuntimeException
dup
aload 1
invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/Throwable;)V
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lcom/sun/org/apache/xpath/internal/jaxp/XPathResultImpl<TT;>;
4 5 1 ex Ljavax/xml/transform/TransformerException;
Exception table:
from to target type
1 2 3 Class javax.xml.transform.TransformerException
Signature: ()TT;
private void getResult(com.sun.org.apache.xpath.internal.objects.XObject);
descriptor: (Lcom/sun/org/apache/xpath/internal/objects/XObject;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getfield com.sun.org.apache.xpath.internal.jaxp.XPathResultImpl.resultType:I
tableswitch { // 1 - 5
1: 1
2: 4
3: 7
4: 10
5: 13
default: 16
}
1: StackMap locals:
StackMap stack:
aload 0
aload 1
invokevirtual com.sun.org.apache.xpath.internal.objects.XObject.bool:()Z
putfield com.sun.org.apache.xpath.internal.jaxp.XPathResultImpl.boolValue:Z
2: aload 0
getstatic javax.xml.xpath.XPathEvaluationResult$XPathResultType.BOOLEAN:Ljavax/xml/xpath/XPathEvaluationResult$XPathResultType;
putfield com.sun.org.apache.xpath.internal.jaxp.XPathResultImpl.mapToType:Ljavax/xml/xpath/XPathEvaluationResult$XPathResultType;
3: goto 16
4: StackMap locals:
StackMap stack:
aload 0
aload 1
invokevirtual com.sun.org.apache.xpath.internal.objects.XObject.num:()D
putfield com.sun.org.apache.xpath.internal.jaxp.XPathResultImpl.numValue:D
5: aload 0
getstatic javax.xml.xpath.XPathEvaluationResult$XPathResultType.NUMBER:Ljavax/xml/xpath/XPathEvaluationResult$XPathResultType;
putfield com.sun.org.apache.xpath.internal.jaxp.XPathResultImpl.mapToType:Ljavax/xml/xpath/XPathEvaluationResult$XPathResultType;
6: goto 16
7: StackMap locals:
StackMap stack:
aload 0
aload 1
invokevirtual com.sun.org.apache.xpath.internal.objects.XObject.str:()Ljava/lang/String;
putfield com.sun.org.apache.xpath.internal.jaxp.XPathResultImpl.strValue:Ljava/lang/String;
8: aload 0
getstatic javax.xml.xpath.XPathEvaluationResult$XPathResultType.STRING:Ljavax/xml/xpath/XPathEvaluationResult$XPathResultType;
putfield com.sun.org.apache.xpath.internal.jaxp.XPathResultImpl.mapToType:Ljavax/xml/xpath/XPathEvaluationResult$XPathResultType;
9: goto 16
10: StackMap locals:
StackMap stack:
aload 0
getstatic javax.xml.xpath.XPathEvaluationResult$XPathResultType.NODESET:Ljavax/xml/xpath/XPathEvaluationResult$XPathResultType;
putfield com.sun.org.apache.xpath.internal.jaxp.XPathResultImpl.mapToType:Ljavax/xml/xpath/XPathEvaluationResult$XPathResultType;
11: aload 0
aload 1
invokevirtual com.sun.org.apache.xpath.internal.objects.XObject.nodelist:()Lorg/w3c/dom/NodeList;
putfield com.sun.org.apache.xpath.internal.jaxp.XPathResultImpl.nodeList:Lorg/w3c/dom/NodeList;
12: goto 16
13: StackMap locals:
StackMap stack:
aload 0
getstatic javax.xml.xpath.XPathEvaluationResult$XPathResultType.NODE:Ljavax/xml/xpath/XPathEvaluationResult$XPathResultType;
putfield com.sun.org.apache.xpath.internal.jaxp.XPathResultImpl.mapToType:Ljavax/xml/xpath/XPathEvaluationResult$XPathResultType;
14: aload 1
invokevirtual com.sun.org.apache.xpath.internal.objects.XObject.nodeset:()Lorg/w3c/dom/traversal/NodeIterator;
astore 2
start local 2 15: aload 0
aload 2
invokeinterface org.w3c.dom.traversal.NodeIterator.nextNode:()Lorg/w3c/dom/Node;
putfield com.sun.org.apache.xpath.internal.jaxp.XPathResultImpl.node:Lorg/w3c/dom/Node;
end local 2 16: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 17 0 this Lcom/sun/org/apache/xpath/internal/jaxp/XPathResultImpl<TT;>;
0 17 1 resultObject Lcom/sun/org/apache/xpath/internal/objects/XObject;
15 16 2 ni Lorg/w3c/dom/traversal/NodeIterator;
Exceptions:
throws javax.xml.transform.TransformerException
MethodParameters:
Name Flags
resultObject
static <T> T getValue(com.sun.org.apache.xpath.internal.objects.XObject, java.lang.Class<T>);
descriptor: (Lcom/sun/org/apache/xpath/internal/objects/XObject;Ljava/lang/Class;)Ljava/lang/Object;
flags: (0x0008) ACC_STATIC
Code:
stack=5, locals=5, args_size=2
start local 0 start local 1 0: aload 1
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;)Ljava/lang/Object;
pop
1: aload 1
ldc Ljavax/xml/xpath/XPathEvaluationResult;
invokevirtual java.lang.Class.isAssignableFrom:(Ljava/lang/Class;)Z
ifeq 3
2: aload 1
new com.sun.org.apache.xpath.internal.jaxp.XPathResultImpl
dup
aload 0
aload 1
invokespecial com.sun.org.apache.xpath.internal.jaxp.XPathResultImpl.<init>:(Lcom/sun/org/apache/xpath/internal/objects/XObject;Ljava/lang/Class;)V
invokevirtual java.lang.Class.cast:(Ljava/lang/Object;)Ljava/lang/Object;
areturn
3: StackMap locals:
StackMap stack:
aload 1
invokestatic com.sun.org.apache.xpath.internal.jaxp.XPathResultImpl.classToInternalType:(Ljava/lang/Class;)I
istore 2
start local 2 4: iload 2
tableswitch { // 1 - 5
1: 5
2: 6
3: 12
4: 13
5: 17
default: 19
}
5: StackMap locals: int
StackMap stack:
aload 1
aload 0
invokevirtual com.sun.org.apache.xpath.internal.objects.XObject.bool:()Z
invokestatic java.lang.Boolean.valueOf:(Z)Ljava/lang/Boolean;
invokevirtual java.lang.Class.cast:(Ljava/lang/Object;)Ljava/lang/Object;
areturn
6: StackMap locals:
StackMap stack:
ldc Ljava/lang/Double;
aload 1
invokevirtual java.lang.Class.isAssignableFrom:(Ljava/lang/Class;)Z
ifeq 8
7: aload 1
aload 0
invokevirtual com.sun.org.apache.xpath.internal.objects.XObject.num:()D
invokestatic java.lang.Double.valueOf:(D)Ljava/lang/Double;
invokevirtual java.lang.Class.cast:(Ljava/lang/Object;)Ljava/lang/Object;
areturn
8: StackMap locals:
StackMap stack:
ldc Ljava/lang/Integer;
aload 1
invokevirtual java.lang.Class.isAssignableFrom:(Ljava/lang/Class;)Z
ifeq 10
9: aload 1
aload 0
invokevirtual com.sun.org.apache.xpath.internal.objects.XObject.num:()D
d2i
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
invokevirtual java.lang.Class.cast:(Ljava/lang/Object;)Ljava/lang/Object;
areturn
10: StackMap locals:
StackMap stack:
ldc Ljava/lang/Long;
aload 1
invokevirtual java.lang.Class.isAssignableFrom:(Ljava/lang/Class;)Z
ifeq 19
11: aload 1
aload 0
invokevirtual com.sun.org.apache.xpath.internal.objects.XObject.num:()D
d2l
invokestatic java.lang.Long.valueOf:(J)Ljava/lang/Long;
invokevirtual java.lang.Class.cast:(Ljava/lang/Object;)Ljava/lang/Object;
areturn
12: StackMap locals:
StackMap stack:
aload 1
aload 0
invokevirtual com.sun.org.apache.xpath.internal.objects.XObject.str:()Ljava/lang/String;
invokevirtual java.lang.Class.cast:(Ljava/lang/Object;)Ljava/lang/Object;
areturn
13: StackMap locals:
StackMap stack:
new com.sun.org.apache.xpath.internal.jaxp.XPathNodesImpl
dup
aload 0
invokevirtual com.sun.org.apache.xpath.internal.objects.XObject.nodelist:()Lorg/w3c/dom/NodeList;
14: ldc Lorg/w3c/dom/Node;
15: invokespecial com.sun.org.apache.xpath.internal.jaxp.XPathNodesImpl.<init>:(Lorg/w3c/dom/NodeList;Ljava/lang/Class;)V
astore 3
start local 3 16: aload 1
aload 3
invokevirtual java.lang.Class.cast:(Ljava/lang/Object;)Ljava/lang/Object;
areturn
end local 3 17: StackMap locals:
StackMap stack:
aload 0
invokevirtual com.sun.org.apache.xpath.internal.objects.XObject.nodeset:()Lorg/w3c/dom/traversal/NodeIterator;
astore 4
start local 4 18: aload 1
aload 4
invokeinterface org.w3c.dom.traversal.NodeIterator.nextNode:()Lorg/w3c/dom/Node;
invokevirtual java.lang.Class.cast:(Ljava/lang/Object;)Ljava/lang/Object;
areturn
end local 4 19: StackMap locals:
StackMap stack:
aconst_null
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 20 0 resultObject Lcom/sun/org/apache/xpath/internal/objects/XObject;
0 20 1 type Ljava/lang/Class<TT;>;
4 20 2 resultType I
16 17 3 nodeSet Ljavax/xml/xpath/XPathNodes;
18 19 4 ni Lorg/w3c/dom/traversal/NodeIterator;
Exceptions:
throws javax.xml.transform.TransformerException
Signature: <T:Ljava/lang/Object;>(Lcom/sun/org/apache/xpath/internal/objects/XObject;Ljava/lang/Class<TT;>;)TT;
MethodParameters:
Name Flags
resultObject
type
static <T> int classToInternalType(java.lang.Class<T>);
descriptor: (Ljava/lang/Class;)I
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
ldc Ljava/lang/Boolean;
invokevirtual java.lang.Class.isAssignableFrom:(Ljava/lang/Class;)Z
ifeq 2
1: iconst_1
ireturn
2: StackMap locals:
StackMap stack:
ldc Ljava/lang/Number;
aload 0
invokevirtual java.lang.Class.isAssignableFrom:(Ljava/lang/Class;)Z
ifeq 4
3: iconst_2
ireturn
4: StackMap locals:
StackMap stack:
aload 0
ldc Ljava/lang/String;
invokevirtual java.lang.Class.isAssignableFrom:(Ljava/lang/Class;)Z
ifeq 6
5: iconst_3
ireturn
6: StackMap locals:
StackMap stack:
aload 0
ldc Ljavax/xml/xpath/XPathNodes;
invokevirtual java.lang.Class.isAssignableFrom:(Ljava/lang/Class;)Z
ifeq 8
7: iconst_4
ireturn
8: StackMap locals:
StackMap stack:
aload 0
ldc Lorg/w3c/dom/Node;
invokevirtual java.lang.Class.isAssignableFrom:(Ljava/lang/Class;)Z
ifeq 10
9: iconst_5
ireturn
10: StackMap locals:
StackMap stack:
iconst_m1
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 type Ljava/lang/Class<TT;>;
Signature: <T:Ljava/lang/Object;>(Ljava/lang/Class<TT;>;)I
MethodParameters:
Name Flags
type
}
Signature: <T:Ljava/lang/Object;>Ljava/lang/Object;Ljavax/xml/xpath/XPathEvaluationResult<TT;>;
SourceFile: "XPathResultImpl.java"
InnerClasses:
public final XPathResultType = javax.xml.xpath.XPathEvaluationResult$XPathResultType of javax.xml.xpath.XPathEvaluationResult