Package net.bytebuddy.dynamic
Interface ClassFileLocator.Resolution
-
- All Known Implementing Classes:
ClassFileLocator.Resolution.Explicit,ClassFileLocator.Resolution.Illegal
- Enclosing interface:
- ClassFileLocator
public static interface ClassFileLocator.ResolutionRepresents a class file as binary data.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classClassFileLocator.Resolution.ExplicitRepresents a byte array as binary data.static classClassFileLocator.Resolution.IllegalA canonical representation of an illegal binary representation.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanisResolved()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:
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.
-
-