Package net.bytebuddy.dynamic
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 class
Represents a byte array as binary data.static class
A canonical representation of an illegal binary representation. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Checks 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:
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.
-