Top Description Fields Constructors Methods
net.bytebuddy.matcher

public Class ClassLoaderParentMatcher<T extends java.lang.ClassLoader>

extends ElementMatcher.Junction.AbstractBase<T extends ClassLoader>
Class Inheritance
Annotations
@Enhance
Type Parameters
<T>
The exact type of the class loader that is matched.
Imports
net.bytebuddy.build.HashCodeAndEqualsPlugin, net.bytebuddy.utility.nullability.MaybeNull

An element matcher that matches a class loader for being a parent of the given class loader.

Field Summary

Modifier and TypeField and Description
private final ClassLoader
classLoader

The class loader that is matched for being a child of the matched class loader.

Constructor Summary

AccessConstructor and Description
public
ClassLoaderParentMatcher(ClassLoader
The class loader that is matched for being a child of the matched class loader.
classLoader
)

Creates a class loader parent element matcher.

Method Summary

Modifier and TypeMethod and Description
public boolean
matches(T
The instance to be matched or null.
target
)

Implements net.bytebuddy.matcher.ElementMatcher.matches.

Matches a target against this element matcher.
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.
Inherited from net.bytebuddy.matcher.ElementMatcher.Junction.AbstractBase:
andor

Field Detail

classLoaderback to summary
private final ClassLoader classLoader

The class loader that is matched for being a child of the matched class loader.

Annotations
@MaybeNull
@ValueHandling:REVERSE_NULLABILITY

Constructor Detail

ClassLoaderParentMatcherback to summary
public ClassLoaderParentMatcher(ClassLoader classLoader)

Creates a class loader parent element matcher.

Parameters
classLoader:ClassLoader

The class loader that is matched for being a child of the matched class loader.

Method Detail

matchesback to summary
public boolean matches(T target)

Implements net.bytebuddy.matcher.ElementMatcher.matches.

Doc from net.bytebuddy.matcher.ElementMatcher.matches.

Matches a target against this element matcher.

Parameters
target:T

The instance to be matched or null.

Returns:boolean

true if the given element is matched by this matcher or false otherwise.

toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object.

Annotations
@Override