Interface ClassFileLocator.Resolution

All Known Implementing Classes:
ClassFileLocator.Resolution.Explicit, ClassFileLocator.Resolution.Illegal
Enclosing interface:
ClassFileLocator

public static interface ClassFileLocator.Resolution
Represents a class file as binary data.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static class 
    Represents a byte array as binary data.
    static class 
    A canonical representation of an illegal binary representation.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Checks if this binary representation is valid.
    byte[]
    Finds the data of this binary representation.
  • Method Details

    • isResolved

      boolean isResolved()
      Checks if this binary representation is valid.
      Returns:
      true if this binary representation is valid.
    • resolve

      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.
      Returns:
      The requested binary data. The returned array must not be altered.