public class org.apache.lucene.spatial.query.SpatialArgs
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.apache.lucene.spatial.query.SpatialArgs
super_class: java.lang.Object
{
public static final double DEFAULT_DISTERRPCT;
descriptor: D
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: 0.025
private org.apache.lucene.spatial.query.SpatialOperation operation;
descriptor: Lorg/apache/lucene/spatial/query/SpatialOperation;
flags: (0x0002) ACC_PRIVATE
private org.locationtech.spatial4j.shape.Shape shape;
descriptor: Lorg/locationtech/spatial4j/shape/Shape;
flags: (0x0002) ACC_PRIVATE
private java.lang.Double distErrPct;
descriptor: Ljava/lang/Double;
flags: (0x0002) ACC_PRIVATE
private java.lang.Double distErr;
descriptor: Ljava/lang/Double;
flags: (0x0002) ACC_PRIVATE
public void <init>(org.apache.lucene.spatial.query.SpatialOperation, org.locationtech.spatial4j.shape.Shape);
descriptor: (Lorg/apache/lucene/spatial/query/SpatialOperation;Lorg/locationtech/spatial4j/shape/Shape;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, 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 1
ifnull 2
aload 2
ifnonnull 3
2: StackMap locals: org.apache.lucene.spatial.query.SpatialArgs org.apache.lucene.spatial.query.SpatialOperation org.locationtech.spatial4j.shape.Shape
StackMap stack:
new java.lang.NullPointerException
dup
ldc "operation and shape are required"
invokespecial java.lang.NullPointerException.<init>:(Ljava/lang/String;)V
athrow
3: StackMap locals:
StackMap stack:
aload 0
aload 1
putfield org.apache.lucene.spatial.query.SpatialArgs.operation:Lorg/apache/lucene/spatial/query/SpatialOperation;
4: aload 0
aload 2
putfield org.apache.lucene.spatial.query.SpatialArgs.shape:Lorg/locationtech/spatial4j/shape/Shape;
5: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/apache/lucene/spatial/query/SpatialArgs;
0 6 1 operation Lorg/apache/lucene/spatial/query/SpatialOperation;
0 6 2 shape Lorg/locationtech/spatial4j/shape/Shape;
MethodParameters:
Name Flags
operation
shape
public static double calcDistanceFromErrPct(org.locationtech.spatial4j.shape.Shape, double, org.locationtech.spatial4j.context.SpatialContext);
descriptor: (Lorg/locationtech/spatial4j/shape/Shape;DLorg/locationtech/spatial4j/context/SpatialContext;)D
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=6, locals=10, args_size=3
start local 0 start local 1 start local 3 0: dload 1
dconst_0
dcmpg
iflt 1
dload 1
ldc 0.5
dcmpl
ifle 2
1: StackMap locals:
StackMap stack:
new java.lang.IllegalArgumentException
dup
new java.lang.StringBuilder
dup
ldc "distErrPct "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
dload 1
invokevirtual java.lang.StringBuilder.append:(D)Ljava/lang/StringBuilder;
ldc " must be between [0 to 0.5]"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
dload 1
dconst_0
dcmpl
ifeq 3
aload 0
instanceof org.locationtech.spatial4j.shape.Point
ifeq 4
3: StackMap locals:
StackMap stack:
dconst_0
dreturn
4: StackMap locals:
StackMap stack:
aload 0
invokeinterface org.locationtech.spatial4j.shape.Shape.getBoundingBox:()Lorg/locationtech/spatial4j/shape/Rectangle;
astore 4
start local 4 5: aload 4
invokeinterface org.locationtech.spatial4j.shape.Rectangle.getCenter:()Lorg/locationtech/spatial4j/shape/Point;
astore 5
start local 5 6: aload 5
invokeinterface org.locationtech.spatial4j.shape.Point.getY:()D
dconst_0
dcmpl
iflt 7
aload 4
invokeinterface org.locationtech.spatial4j.shape.Rectangle.getMaxY:()D
goto 8
StackMap locals: org.locationtech.spatial4j.shape.Rectangle org.locationtech.spatial4j.shape.Point
StackMap stack:
7: aload 4
invokeinterface org.locationtech.spatial4j.shape.Rectangle.getMinY:()D
StackMap locals:
StackMap stack: double
8: dstore 6
start local 6 9: aload 3
invokevirtual org.locationtech.spatial4j.context.SpatialContext.getDistCalc:()Lorg/locationtech/spatial4j/distance/DistanceCalculator;
aload 5
aload 4
invokeinterface org.locationtech.spatial4j.shape.Rectangle.getMaxX:()D
dload 6
invokeinterface org.locationtech.spatial4j.distance.DistanceCalculator.distance:(Lorg/locationtech/spatial4j/shape/Point;DD)D
dstore 8
start local 8 10: dload 8
dload 1
dmul
dreturn
end local 8 end local 6 end local 5 end local 4 end local 3 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 shape Lorg/locationtech/spatial4j/shape/Shape;
0 11 1 distErrPct D
0 11 3 ctx Lorg/locationtech/spatial4j/context/SpatialContext;
5 11 4 bbox Lorg/locationtech/spatial4j/shape/Rectangle;
6 11 5 ctr Lorg/locationtech/spatial4j/shape/Point;
9 11 6 y D
10 11 8 diagonalDist D
MethodParameters:
Name Flags
shape
distErrPct
ctx
public double resolveDistErr(org.locationtech.spatial4j.context.SpatialContext, double);
descriptor: (Lorg/locationtech/spatial4j/context/SpatialContext;D)D
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=6, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield org.apache.lucene.spatial.query.SpatialArgs.distErr:Ljava/lang/Double;
ifnull 2
1: aload 0
getfield org.apache.lucene.spatial.query.SpatialArgs.distErr:Ljava/lang/Double;
invokevirtual java.lang.Double.doubleValue:()D
dreturn
2: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.lucene.spatial.query.SpatialArgs.distErrPct:Ljava/lang/Double;
ifnull 3
aload 0
getfield org.apache.lucene.spatial.query.SpatialArgs.distErrPct:Ljava/lang/Double;
invokevirtual java.lang.Double.doubleValue:()D
goto 4
StackMap locals:
StackMap stack:
3: dload 2
StackMap locals:
StackMap stack: double
4: dstore 4
start local 4 5: aload 0
getfield org.apache.lucene.spatial.query.SpatialArgs.shape:Lorg/locationtech/spatial4j/shape/Shape;
dload 4
aload 1
invokestatic org.apache.lucene.spatial.query.SpatialArgs.calcDistanceFromErrPct:(Lorg/locationtech/spatial4j/shape/Shape;DLorg/locationtech/spatial4j/context/SpatialContext;)D
dreturn
end local 4 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/apache/lucene/spatial/query/SpatialArgs;
0 6 1 ctx Lorg/locationtech/spatial4j/context/SpatialContext;
0 6 2 defaultDistErrPct D
5 6 4 distErrPct D
MethodParameters:
Name Flags
ctx
defaultDistErrPct
public void validate();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.lucene.spatial.query.SpatialArgs.distErr:Ljava/lang/Double;
ifnull 2
aload 0
getfield org.apache.lucene.spatial.query.SpatialArgs.distErrPct:Ljava/lang/Double;
ifnull 2
1: new java.lang.IllegalArgumentException
dup
ldc "Only distErr or distErrPct can be specified."
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/apache/lucene/spatial/query/SpatialArgs;
Exceptions:
throws java.lang.IllegalArgumentException
public java.lang.String toString();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokestatic org.apache.lucene.spatial.query.SpatialArgsParser.writeSpatialArgs:(Lorg/apache/lucene/spatial/query/SpatialArgs;)Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/lucene/spatial/query/SpatialArgs;
public org.apache.lucene.spatial.query.SpatialOperation getOperation();
descriptor: ()Lorg/apache/lucene/spatial/query/SpatialOperation;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.lucene.spatial.query.SpatialArgs.operation:Lorg/apache/lucene/spatial/query/SpatialOperation;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/lucene/spatial/query/SpatialArgs;
public void setOperation(org.apache.lucene.spatial.query.SpatialOperation);
descriptor: (Lorg/apache/lucene/spatial/query/SpatialOperation;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
putfield org.apache.lucene.spatial.query.SpatialArgs.operation:Lorg/apache/lucene/spatial/query/SpatialOperation;
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/apache/lucene/spatial/query/SpatialArgs;
0 2 1 operation Lorg/apache/lucene/spatial/query/SpatialOperation;
MethodParameters:
Name Flags
operation
public org.locationtech.spatial4j.shape.Shape getShape();
descriptor: ()Lorg/locationtech/spatial4j/shape/Shape;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.lucene.spatial.query.SpatialArgs.shape:Lorg/locationtech/spatial4j/shape/Shape;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/lucene/spatial/query/SpatialArgs;
public void setShape(org.locationtech.spatial4j.shape.Shape);
descriptor: (Lorg/locationtech/spatial4j/shape/Shape;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
putfield org.apache.lucene.spatial.query.SpatialArgs.shape:Lorg/locationtech/spatial4j/shape/Shape;
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/apache/lucene/spatial/query/SpatialArgs;
0 2 1 shape Lorg/locationtech/spatial4j/shape/Shape;
MethodParameters:
Name Flags
shape
public java.lang.Double getDistErrPct();
descriptor: ()Ljava/lang/Double;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.lucene.spatial.query.SpatialArgs.distErrPct:Ljava/lang/Double;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/lucene/spatial/query/SpatialArgs;
public void setDistErrPct(java.lang.Double);
descriptor: (Ljava/lang/Double;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 1
ifnull 2
1: aload 0
aload 1
putfield org.apache.lucene.spatial.query.SpatialArgs.distErrPct:Ljava/lang/Double;
2: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/apache/lucene/spatial/query/SpatialArgs;
0 3 1 distErrPct Ljava/lang/Double;
MethodParameters:
Name Flags
distErrPct
public java.lang.Double getDistErr();
descriptor: ()Ljava/lang/Double;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.lucene.spatial.query.SpatialArgs.distErr:Ljava/lang/Double;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/lucene/spatial/query/SpatialArgs;
public void setDistErr(java.lang.Double);
descriptor: (Ljava/lang/Double;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
putfield org.apache.lucene.spatial.query.SpatialArgs.distErr:Ljava/lang/Double;
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/apache/lucene/spatial/query/SpatialArgs;
0 2 1 distErr Ljava/lang/Double;
MethodParameters:
Name Flags
distErr
}
SourceFile: "SpatialArgs.java"