Class ClassFileLocator.Resolution.Illegal

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.String typeName
      The name of the unresolved class file.
    • Constructor Summary

      Constructors 
      Constructor Description
      Illegal​(java.lang.String typeName)
      Creates an illegal resolution for a class file.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean isResolved()
      Checks if this binary representation is valid.
      byte[] resolve()
      Finds the data of this binary representation.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • typeName

        private final java.lang.String typeName
        The name of the unresolved class file.
    • Constructor Detail

      • Illegal

        public Illegal​(java.lang.String typeName)
        Creates an illegal resolution for a class file.
        Parameters:
        typeName - The name of the unresolved class file.
    • Method Detail

      • isResolved

        public boolean isResolved()
        Checks if this binary representation is valid.
        Specified by:
        isResolved in interface ClassFileLocator.Resolution
        Returns:
        true if this binary representation is valid.
      • resolve

        public byte[] resolve()
        Finds the data of this binary representation. Calling this method is only legal for resolved instances. For non-resolved instances, an exception is thrown.
        Specified by:
        resolve in interface ClassFileLocator.Resolution
        Returns:
        The requested binary data. The returned array must not be altered.