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. The array must not be modified.public static ClassFileLocator.Resolution of(Class<?> type)
ClassLoader
.type
- The type of interest.public boolean isResolved()
ClassFileLocator.Resolution
isResolved
in interface ClassFileLocator.Resolution
true
if this binary representation is valid.public byte[] resolve()
ClassFileLocator.Resolution
resolve
in interface ClassFileLocator.Resolution
Copyright © 2014–2015. All rights reserved.