1. /*
  2. * @(#)IDLNameTranslator.java 1.9 04/06/21
  3. *
  4. * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
  5. * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
  6. */
  7. package com.sun.corba.se.spi.presentation.rmi ;
  8. import java.lang.reflect.Method ;
  9. /** Translates between methods on an interface and RMI-IIOP encodings
  10. * of those methods as names.
  11. */
  12. public interface IDLNameTranslator
  13. {
  14. /** Get the interfaces that this IDLNameTranslator describes.
  15. */
  16. Class[] getInterfaces() ;
  17. /** Get all methods for this remote interface.
  18. * The methods are returned in a canonical order, that is,
  19. * they are always in the same order for a particular interface.
  20. */
  21. Method[] getMethods() ;
  22. /** Get the method from this IDLNameTranslator's interfaces that
  23. * corresponds to the mangled name idlName. Returns null
  24. * if there is no matching method.
  25. */
  26. Method getMethod( String idlName ) ;
  27. /** Get the mangled name that corresponds to the given method
  28. * on this IDLNameTranslator's interface. Returns null
  29. * if there is no matching name.
  30. */
  31. String getIDLName( Method method ) ;
  32. }