content: package com.alibaba.fastjson2;
  
  final class JSONPathSingleNameInteger
          extends JSONPathTyped {
      final long nameHashCode;
      final String name;
  
      public JSONPathSingleNameInteger(JSONPathSingleName jsonPath) {
          super(jsonPath, Integer.class);
          this.nameHashCode = jsonPath.nameHashCode;
          this.name = jsonPath.name;
      }
  
      @Override
      public Object extract(JSONReader jsonReader) {
          if (jsonReader.jsonb) {
              if (jsonReader.isObject()) {
                  jsonReader.nextIfObjectStart();
                  while (!jsonReader.nextIfObjectEnd()) {
                      long nameHashCode = jsonReader.readFieldNameHashCode();
                      if (nameHashCode == 0) {
                          continue;
                      }
  
                      boolean match = nameHashCode == this.nameHashCode;
                      if (!match && (!jsonReader.isObject()) && !jsonReader.isArray()) {
                          jsonReader.skipValue();
                          continue;
                      }
  
                      return jsonReader.readInt32();
                  }
              }
          } else if (jsonReader.nextIfObjectStart()) {
              while (!jsonReader.nextIfObjectEnd()) {
                  long nameHashCode = jsonReader.readFieldNameHashCode();
                  boolean match = nameHashCode == this.nameHashCode;
  
                  if (!match) {
                      jsonReader.skipValue();
                      continue;
                  }
  
                  return jsonReader.readInt32();
              }
          }
  
          return null;
      }
  }
  