class ToInterfaceLinkLocationSpecifier implements LocationSpecifier {

  static Location toInterfaceLinkLocation(Location loc) {
    return loc.accept(
        new LocationVisitor<Location>() {
          @Override
          public Location visitInterfaceLinkLocation(InterfaceLinkLocation interfaceLinkLocation) {
            return interfaceLinkLocation;
          }

          @Override
          public Location visitInterfaceLocation(InterfaceLocation interfaceLocation) {
            return new InterfaceLinkLocation(
                interfaceLocation.getNodeName(), interfaceLocation.getInterfaceName());
          }
        });
  }

  public  ToInterfaceLinkLocationSpecifier(LocationSpecifier inner);

}