32
32
import com .fasterxml .jackson .databind .util .RawValue ;
33
33
34
34
/**
35
- * {@link JsonNodeFactory} that creates {@link JsonLocationAware } nodes.
35
+ * {@link JsonNodeFactory} that creates {@link TokenStreamLocationAware } nodes.
36
36
* <p>
37
37
* Note that this will adversely affect performance as nodes with the same value
38
38
* can no longer be cached and reused.
@@ -57,12 +57,12 @@ public LocationJsonNodeFactory(JsonParser jsonParser) {
57
57
58
58
@ Override
59
59
public BooleanNode booleanNode (boolean v ) {
60
- return new JsonLocationAwareBooleanNode (v , this .jsonParser .currentTokenLocation ());
60
+ return new TokenStreamLocationAwareBooleanNode (v , this .jsonParser .currentTokenLocation ());
61
61
}
62
62
63
63
@ Override
64
64
public NullNode nullNode () {
65
- return new JsonLocationAwareNullNode (this .jsonParser .currentTokenLocation ());
65
+ return new TokenStreamLocationAwareNullNode (this .jsonParser .currentTokenLocation ());
66
66
}
67
67
68
68
@ Override
@@ -72,7 +72,7 @@ public JsonNode missingNode() {
72
72
73
73
@ Override
74
74
public NumericNode numberNode (byte v ) {
75
- return new JsonLocationAwareIntNode (v , this .jsonParser .currentTokenLocation ());
75
+ return new TokenStreamLocationAwareIntNode (v , this .jsonParser .currentTokenLocation ());
76
76
}
77
77
78
78
@ Override
@@ -82,7 +82,7 @@ public ValueNode numberNode(Byte v) {
82
82
83
83
@ Override
84
84
public NumericNode numberNode (short v ) {
85
- return new JsonLocationAwareShortNode (v , this .jsonParser .currentTokenLocation ());
85
+ return new TokenStreamLocationAwareShortNode (v , this .jsonParser .currentTokenLocation ());
86
86
}
87
87
88
88
@ Override
@@ -92,7 +92,7 @@ public ValueNode numberNode(Short value) {
92
92
93
93
@ Override
94
94
public NumericNode numberNode (int v ) {
95
- return new JsonLocationAwareIntNode (v , this .jsonParser .currentTokenLocation ());
95
+ return new TokenStreamLocationAwareIntNode (v , this .jsonParser .currentTokenLocation ());
96
96
}
97
97
98
98
@ Override
@@ -102,7 +102,7 @@ public ValueNode numberNode(Integer v) {
102
102
103
103
@ Override
104
104
public NumericNode numberNode (long v ) {
105
- return new JsonLocationAwareLongNode (v , this .jsonParser .currentTokenLocation ());
105
+ return new TokenStreamLocationAwareLongNode (v , this .jsonParser .currentTokenLocation ());
106
106
}
107
107
108
108
@ Override
@@ -112,12 +112,12 @@ public ValueNode numberNode(Long v) {
112
112
113
113
@ Override
114
114
public ValueNode numberNode (BigInteger v ) {
115
- return (v == null ) ? nullNode () : new JsonLocationAwareBigIntegerNode (v , this .jsonParser .currentTokenLocation ());
115
+ return (v == null ) ? nullNode () : new TokenStreamLocationAwareBigIntegerNode (v , this .jsonParser .currentTokenLocation ());
116
116
}
117
117
118
118
@ Override
119
119
public NumericNode numberNode (float v ) {
120
- return new JsonLocationAwareFloatNode (v , this .jsonParser .currentTokenLocation ());
120
+ return new TokenStreamLocationAwareFloatNode (v , this .jsonParser .currentTokenLocation ());
121
121
}
122
122
123
123
@ Override
@@ -127,7 +127,7 @@ public ValueNode numberNode(Float v) {
127
127
128
128
@ Override
129
129
public NumericNode numberNode (double v ) {
130
- return new JsonLocationAwareDoubleNode (v , this .jsonParser .currentTokenLocation ());
130
+ return new TokenStreamLocationAwareDoubleNode (v , this .jsonParser .currentTokenLocation ());
131
131
}
132
132
133
133
@ Override
@@ -137,47 +137,47 @@ public ValueNode numberNode(Double v) {
137
137
138
138
@ Override
139
139
public ValueNode numberNode (BigDecimal v ) {
140
- return (v == null ) ? nullNode () : new JsonLocationAwareDecimalNode (v , this .jsonParser .currentTokenLocation ());
140
+ return (v == null ) ? nullNode () : new TokenStreamLocationAwareDecimalNode (v , this .jsonParser .currentTokenLocation ());
141
141
}
142
142
143
143
@ Override
144
144
public TextNode textNode (String text ) {
145
- return new JsonLocationAwareTextNode (text , this .jsonParser .currentTokenLocation ());
145
+ return new TokenStreamLocationAwareTextNode (text , this .jsonParser .currentTokenLocation ());
146
146
}
147
147
148
148
@ Override
149
149
public BinaryNode binaryNode (byte [] data ) {
150
- return new JsonLocationAwareBinaryNode (data , this .jsonParser .currentTokenLocation ());
150
+ return new TokenStreamLocationAwareBinaryNode (data , this .jsonParser .currentTokenLocation ());
151
151
}
152
152
153
153
@ Override
154
154
public BinaryNode binaryNode (byte [] data , int offset , int length ) {
155
- return new JsonLocationAwareBinaryNode (data , offset , length , this .jsonParser .currentTokenLocation ());
155
+ return new TokenStreamLocationAwareBinaryNode (data , offset , length , this .jsonParser .currentTokenLocation ());
156
156
}
157
157
158
158
@ Override
159
159
public ArrayNode arrayNode () {
160
- return new JsonLocationAwareArrayNode (this , this .jsonParser .currentTokenLocation ());
160
+ return new TokenStreamLocationAwareArrayNode (this , this .jsonParser .currentTokenLocation ());
161
161
}
162
162
163
163
@ Override
164
164
public ArrayNode arrayNode (int capacity ) {
165
- return new JsonLocationAwareArrayNode (this , capacity , this .jsonParser .currentTokenLocation ());
165
+ return new TokenStreamLocationAwareArrayNode (this , capacity , this .jsonParser .currentTokenLocation ());
166
166
}
167
167
168
168
@ Override
169
169
public ObjectNode objectNode () {
170
- return new JsonLocationAwareObjectNode (this , this .jsonParser .currentTokenLocation ());
170
+ return new TokenStreamLocationAwareObjectNode (this , this .jsonParser .currentTokenLocation ());
171
171
}
172
172
173
173
@ Override
174
174
public ValueNode pojoNode (Object pojo ) {
175
- return new JsonLocationAwarePOJONode (pojo , this .jsonParser .currentTokenLocation ());
175
+ return new TokenStreamLocationAwarePOJONode (pojo , this .jsonParser .currentTokenLocation ());
176
176
}
177
177
178
178
@ Override
179
179
public ValueNode rawValueNode (RawValue value ) {
180
- return new JsonLocationAwarePOJONode (value , this .jsonParser .currentTokenLocation ());
180
+ return new TokenStreamLocationAwarePOJONode (value , this .jsonParser .currentTokenLocation ());
181
181
}
182
182
183
183
}
0 commit comments