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 ClassesModifier and TypeInterfaceDescriptionstatic classRepresents a byte array as binary data.static classA canonical representation of an illegal binary representation. -
Method Summary
Modifier and TypeMethodDescriptionbooleanChecks if this binary representation is valid.byte[]resolve()Finds the data of this binary representation.
-
Method Details
-
isResolved
boolean isResolved()Checks if this binary representation is valid.- Returns:
trueif 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.
-