public static class ClassFileLocator.Resolution.Explicit extends Object implements ClassFileLocator.Resolution
ClassFileLocator.Resolution.Explicit, ClassFileLocator.Resolution.Illegal| Constructor and Description |
|---|
Explicit(byte[] binaryRepresentation)
Creates a new explicit resolution of a given array of binary data.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object other) |
int |
hashCode() |
boolean |
isResolved()
Checks if this binary representation is valid.
|
static ClassFileLocator.Resolution |
of(Class<?> type)
Attemts to create a binary representation of a loaded type by requesting data from its
ClassLoader. |
byte[] |
resolve()
Finds the data of this binary representation.
|
String |
toString() |
public Explicit(byte[] binaryRepresentation)
binaryRepresentation - The binary data to represent.public static ClassFileLocator.Resolution of(Class<?> type)
ClassLoader.type - The type of interest.public boolean isResolved()
ClassFileLocator.ResolutionisResolved in interface ClassFileLocator.Resolutiontrue if this binary representation is valid.public byte[] resolve()
ClassFileLocator.Resolutionresolve in interface ClassFileLocator.ResolutionCopyright © 2014–2015. All rights reserved.