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 Classes Modifier and Type Interface Description static class
ClassFileLocator.Resolution.Explicit
Represents a byte array as binary data.static class
ClassFileLocator.Resolution.Illegal
A canonical representation of an illegal binary representation.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
isResolved()
Checks if this binary representation is valid.byte[]
resolve()
Finds the data of this binary representation.
-
-
-
Method Detail
-
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.
-
-