001package arez.spy;
002
003import javax.annotation.Nonnull;
004
005/**
006 * A representation of an element exposed to spy framework.
007 */
008public interface ElementInfo
009{
010  /**
011   * Return the unique name of the element.
012   *
013   * @return the name of the element.
014   */
015  @Nonnull
016  String getName();
017
018  /**
019   * Return true if dispose() has been called on object.
020   *
021   * @return true if dispose has been called.
022   */
023  boolean isDisposed();
024}