test_class.declarator: REFERENCE_POINTER = JsonFactory.newPointer("foo/bar/baz/boing")
test_class.modifier: private static final
test_class.original_string: private static final JsonPointer REFERENCE_POINTER = JsonFactory.newPointer("foo/bar/baz/boing");
test_class.type: JsonPointer
test_class.var_name: REFERENCE_POINTER
test_class.declarator: underTest
test_class.modifier: private
test_class.original_string: private PointerLocationEvaluator underTest;
test_class.type: PointerLocationEvaluator
test_class.var_name: underTest
test_class.file: model/enforcers/src/test/java/org/eclipse/ditto/model/enforcers/tree/PointerLocationEvaluatorTest.java
test_class.identifier: PointerLocationEvaluatorTest
test_case.body: @Test
      public void evaluationPointerIsSame() {
          final JsonPointer evaluationPointer = JsonFactory.newPointer(REFERENCE_POINTER.toString());
  
          final PointerLocation pointerLocation = underTest.apply(evaluationPointer);
  
          assertThat(pointerLocation).isSameAs(PointerLocation.SAME);
      }
test_case.class_method_signature: PointerLocationEvaluatorTest.evaluationPointerIsSame()
test_case.full_signature: @Test public void evaluationPointerIsSame()
test_case.identifier: evaluationPointerIsSame
test_case.invocations: newPointer toString apply isSameAs assertThat
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void evaluationPointerIsSame()
focal_class.declarator: referencePointer
focal_class.modifier: private final
focal_class.original_string: private final JsonPointer referencePointer;
focal_class.type: JsonPointer
focal_class.var_name: referencePointer
focal_class.file: model/enforcers/src/main/java/org/eclipse/ditto/model/enforcers/tree/PointerLocationEvaluator.java
focal_class.identifier: PointerLocationEvaluator
focal_class.interfaces: implements Function<JsonPointer, PointerLocation>
focal_class.class_method_signature: PointerLocationEvaluator.PointerLocationEvaluator(final JsonPointer referencePointer)
focal_class.full_signature:   PointerLocationEvaluator(final JsonPointer referencePointer)
focal_class.identifier: PointerLocationEvaluator
focal_class.parameters: (final JsonPointer referencePointer)
focal_class.signature:  PointerLocationEvaluator(final JsonPointer referencePointer)
focal_class.class_method_signature: PointerLocationEvaluator.apply(final JsonPointer evaluationPointer)
focal_class.full_signature: @Override public PointerLocation apply(final JsonPointer evaluationPointer)
focal_class.identifier: apply
focal_class.modifiers: @Override public
focal_class.parameters: (final JsonPointer evaluationPointer)
focal_class.return: PointerLocation
focal_class.signature: PointerLocation apply(final JsonPointer evaluationPointer)
focal_class.class_method_signature: PointerLocationEvaluator.isOnReferencePointer(final JsonPointer evaluationPointer)
focal_class.full_signature: private boolean isOnReferencePointer(final JsonPointer evaluationPointer)
focal_class.identifier: isOnReferencePointer
focal_class.modifiers: private
focal_class.parameters: (final JsonPointer evaluationPointer)
focal_class.return: boolean
focal_class.signature: boolean isOnReferencePointer(final JsonPointer evaluationPointer)
focal_method.body: @Override
      public PointerLocation apply(final JsonPointer evaluationPointer) {
          checkNotNull(evaluationPointer, "pointer to be evaluated");
  
          PointerLocation result = PointerLocation.DIFFERENT;
          if (isOnReferencePointer(evaluationPointer)) {
              final int evaluationPointerLevelCount = evaluationPointer.getLevelCount();
              final int referencePointerLevelCount = referencePointer.getLevelCount();
              if (evaluationPointerLevelCount < referencePointerLevelCount) {
                  result = PointerLocation.ABOVE;
              } else if (evaluationPointerLevelCount > referencePointerLevelCount) {
                  result = PointerLocation.BELOW;
              } else {
                  result = PointerLocation.SAME;
              }
          }
          return result;
      }
focal_method.class_method_signature: PointerLocationEvaluator.apply(final JsonPointer evaluationPointer)
focal_method.full_signature: @Override public PointerLocation apply(final JsonPointer evaluationPointer)
focal_method.identifier: apply
focal_method.invocations: checkNotNull isOnReferencePointer getLevelCount getLevelCount
focal_method.modifiers: @Override public
focal_method.parameters: (final JsonPointer evaluationPointer)
focal_method.return: PointerLocation
focal_method.signature: PointerLocation apply(final JsonPointer evaluationPointer)