Class ClassFileLocator.Resolution.Illegal
java.lang.Object
net.bytebuddy.dynamic.ClassFileLocator.Resolution.Illegal
- All Implemented Interfaces:
ClassFileLocator.Resolution
- Enclosing interface:
ClassFileLocator.Resolution
@Enhance
public static class ClassFileLocator.Resolution.Illegal
extends Object
implements ClassFileLocator.Resolution
A canonical representation of an illegal binary representation.
-
Nested Class Summary
Nested classes/interfaces inherited from interface ClassFileLocator.Resolution
ClassFileLocator.Resolution.Explicit, ClassFileLocator.Resolution.Illegal -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanChecks if this binary representation is valid.byte[]resolve()Finds the data of this binary representation.
-
Field Details
-
typeName
The name of the unresolved class file.
-
-
Constructor Details
-
Illegal
Creates an illegal resolution for a class file.- Parameters:
typeName- The name of the unresolved class file.
-
-
Method Details
-
isResolved
public boolean isResolved()Checks if this binary representation is valid.- Specified by:
isResolvedin interfaceClassFileLocator.Resolution- Returns:
trueif this binary representation is valid.
-
resolve
public 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.- Specified by:
resolvein interfaceClassFileLocator.Resolution- Returns:
- The requested binary data. The returned array must not be altered.
-