Class ModuleReference


  • public class ModuleReference
    extends java.lang.Object
    Pre-Java-9-compatible facade for Java 9's java.lang.module.ModuleReference interface.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static java.lang.Class<?> CLASS  
      private java.lang.Object delegate  
      private static java.lang.reflect.Method METHOD_location  
      private static java.lang.reflect.Method METHOD_open  
    • Constructor Summary

      Constructors 
      Constructor Description
      ModuleReference​(java.lang.Object delegate)  
    • Field Detail

      • CLASS

        private static final java.lang.Class<?> CLASS
      • METHOD_location

        private static final java.lang.reflect.Method METHOD_location
      • METHOD_open

        private static final java.lang.reflect.Method METHOD_open
      • delegate

        private final java.lang.Object delegate
    • Constructor Detail

      • ModuleReference

        public ModuleReference​(java.lang.Object delegate)
    • Method Detail

      • location

        public Optional<java.net.URI> location()
      • open

        public ModuleReader open()
                          throws java.io.IOException
        Throws:
        java.io.IOException