public class org.apache.xpath.functions.FuncPosition extends org.apache.xpath.functions.Function
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.apache.xpath.functions.FuncPosition
super_class: org.apache.xpath.functions.Function
{
static final long serialVersionUID;
descriptor: J
flags: (0x0018) ACC_STATIC, ACC_FINAL
ConstantValue: -9092846348197271582
private boolean m_isTopLevel;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial org.apache.xpath.functions.Function.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/xpath/functions/FuncPosition;
public void postCompileStep(org.apache.xpath.compiler.Compiler);
descriptor: (Lorg/apache/xpath/compiler/Compiler;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokevirtual org.apache.xpath.compiler.Compiler.getLocationPathDepth:()I
iconst_m1
if_icmpne 1
iconst_1
goto 2
StackMap locals:
StackMap stack: org.apache.xpath.functions.FuncPosition
1: iconst_0
StackMap locals: org.apache.xpath.functions.FuncPosition org.apache.xpath.compiler.Compiler
StackMap stack: org.apache.xpath.functions.FuncPosition int
2: putfield org.apache.xpath.functions.FuncPosition.m_isTopLevel:Z
3: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/apache/xpath/functions/FuncPosition;
0 4 1 compiler Lorg/apache/xpath/compiler/Compiler;
MethodParameters:
Name Flags
compiler
public int getPositionInContextNodeList(org.apache.xpath.XPathContext);
descriptor: (Lorg/apache/xpath/XPathContext;)I
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=6, args_size=2
start local 0 start local 1 0: aload 0
getfield org.apache.xpath.functions.FuncPosition.m_isTopLevel:Z
ifeq 1
aconst_null
goto 2
StackMap locals:
StackMap stack:
1: aload 1
invokevirtual org.apache.xpath.XPathContext.getSubContextList:()Lorg/apache/xpath/axes/SubContextList;
StackMap locals:
StackMap stack: org.apache.xpath.axes.SubContextList
2: astore 2
start local 2 3: aload 2
ifnull 6
4: aload 2
aload 1
invokeinterface org.apache.xpath.axes.SubContextList.getProximityPosition:(Lorg/apache/xpath/XPathContext;)I
istore 3
start local 3 5: iload 3
ireturn
end local 3 6: StackMap locals: org.apache.xpath.axes.SubContextList
StackMap stack:
aload 1
invokevirtual org.apache.xpath.XPathContext.getContextNodeList:()Lorg/apache/xml/dtm/DTMIterator;
astore 3
start local 3 7: aload 3
ifnull 22
8: aload 3
invokeinterface org.apache.xml.dtm.DTMIterator.getCurrentNode:()I
istore 4
start local 4 9: iload 4
iconst_m1
if_icmpne 21
10: aload 3
invokeinterface org.apache.xml.dtm.DTMIterator.getCurrentPos:()I
ifne 12
11: iconst_0
ireturn
12: StackMap locals: org.apache.xml.dtm.DTMIterator int
StackMap stack:
aload 3
invokeinterface org.apache.xml.dtm.DTMIterator.cloneWithReset:()Lorg/apache/xml/dtm/DTMIterator;
astore 3
13: goto 16
14: StackMap locals:
StackMap stack: java.lang.CloneNotSupportedException
astore 5
start local 5 15: new org.apache.xml.utils.WrappedRuntimeException
dup
aload 5
invokespecial org.apache.xml.utils.WrappedRuntimeException.<init>:(Ljava/lang/Exception;)V
athrow
end local 5 16: StackMap locals:
StackMap stack:
aload 1
invokevirtual org.apache.xpath.XPathContext.getContextNode:()I
istore 5
start local 5 17: goto 20
18: StackMap locals: int
StackMap stack:
iload 4
iload 5
if_icmpne 20
19: goto 21
20: StackMap locals:
StackMap stack:
iconst_m1
aload 3
invokeinterface org.apache.xml.dtm.DTMIterator.nextNode:()I
dup
istore 4
if_icmpne 18
end local 5 21: StackMap locals:
StackMap stack:
aload 3
invokeinterface org.apache.xml.dtm.DTMIterator.getCurrentPos:()I
ireturn
end local 4 22: StackMap locals:
StackMap stack:
iconst_m1
ireturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 23 0 this Lorg/apache/xpath/functions/FuncPosition;
0 23 1 xctxt Lorg/apache/xpath/XPathContext;
3 23 2 iter Lorg/apache/xpath/axes/SubContextList;
5 6 3 prox I
7 23 3 cnl Lorg/apache/xml/dtm/DTMIterator;
9 22 4 n I
15 16 5 cnse Ljava/lang/CloneNotSupportedException;
17 21 5 currentNode I
Exception table:
from to target type
12 13 14 Class java.lang.CloneNotSupportedException
MethodParameters:
Name Flags
xctxt
public org.apache.xpath.objects.XObject execute(org.apache.xpath.XPathContext);
descriptor: (Lorg/apache/xpath/XPathContext;)Lorg/apache/xpath/objects/XObject;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=4, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokevirtual org.apache.xpath.functions.FuncPosition.getPositionInContextNodeList:(Lorg/apache/xpath/XPathContext;)I
i2d
dstore 2
start local 2 1: new org.apache.xpath.objects.XNumber
dup
dload 2
invokespecial org.apache.xpath.objects.XNumber.<init>:(D)V
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/apache/xpath/functions/FuncPosition;
0 2 1 xctxt Lorg/apache/xpath/XPathContext;
1 2 2 pos D
Exceptions:
throws javax.xml.transform.TransformerException
MethodParameters:
Name Flags
xctxt
public void fixupVariables(java.util.Vector, int);
descriptor: (Ljava/util/Vector;I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=0, locals=3, args_size=3
start local 0 start local 1 start local 2 0: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/xpath/functions/FuncPosition;
0 1 1 vars Ljava/util/Vector;
0 1 2 globalsSize I
MethodParameters:
Name Flags
vars
globalsSize
}
SourceFile: "FuncPosition.java"