Package de.danielbechler.diff.access

Examples of de.danielbechler.diff.access.Instances


    {
      node.setState(DiffNode.State.IGNORED);
      return node;
    }

    final Instances accessedInstances;
    if (accessor instanceof PropertyAwareAccessor)
    {
      final PropertyAwareAccessor propertyAwareAccessor = (PropertyAwareAccessor) accessor;
      try
      {
        accessedInstances = parentInstances.access(accessor);
      }
      catch (final PropertyReadException e)
      {
        node.setState(DiffNode.State.INACCESSIBLE);
        final Class<?> parentType = parentInstances.getType();
        final String propertyName = propertyAwareAccessor.getPropertyName();
        final PropertyAccessExceptionHandler exceptionHandler = propertyAccessExceptionHandlerResolver
            .resolvePropertyAccessExceptionHandler(parentType, propertyName);
        if (exceptionHandler != null)
        {
          exceptionHandler.onPropertyReadException(e, node);
        }
        return node;
      }
    }
    else
    {
      accessedInstances = parentInstances.access(accessor);
    }

    if (accessedInstances.areNull())
    {
      return new DiffNode(parentNode, accessedInstances.getSourceAccessor(), accessedInstances.getType());
    }
    else
    {
      return compareWithCircularReferenceTracking(parentNode, accessedInstances);
    }
View Full Code Here

TOP

Related Classes of de.danielbechler.diff.access.Instances

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.