Top Description Fields Constructors Methods
org.easymock.bytebuddy.matcher

public Class InstanceTypeMatcher<T>

extends ElementMatcher.Junction.ForNonNullValues<T>
Class Inheritance
Annotations
@Enhance
Type Parameters
<T>
The exact type of the object that is matched.
Imports
org.easymock.bytebuddy.build.HashCodeAndEqualsPlugin, org.easymock.bytebuddy.description.type.TypeDescription

An element matcher that matches an object's type.

Field Summary

Modifier and TypeField and Description
private final ElementMatcher<? super TypeDescription>
matcher

The matcher to apply to the object's type.

Constructor Summary

AccessConstructor and Description
public
InstanceTypeMatcher(ElementMatcher<? super TypeDescription>
The matcher to apply to the object's type.
matcher
)

Creates a new instance type matcher.

Method Summary

Modifier and TypeMethod and Description
protected boolean
doMatch(T
The instance to be matched.
target
)

Implements abstract org.easymock.bytebuddy.matcher.ElementMatcher.Junction.ForNonNullValues.doMatch.

Matches the supplied value if it was found not to be null.
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.
Inherited from org.easymock.bytebuddy.matcher.ElementMatcher.Junction.ForNonNullValues:
matches

Field Detail

matcherback to summary
private final ElementMatcher<? super TypeDescription> matcher

The matcher to apply to the object's type.

Constructor Detail

InstanceTypeMatcherback to summary
public InstanceTypeMatcher(ElementMatcher<? super TypeDescription> matcher)

Creates a new instance type matcher.

Parameters
matcher:ElementMatcher<? super TypeDescription>

The matcher to apply to the object's type.

Method Detail

doMatchback to summary
protected boolean doMatch(T target)

Implements abstract org.easymock.bytebuddy.matcher.ElementMatcher.Junction.ForNonNullValues.doMatch.

Doc from org.easymock.bytebuddy.matcher.ElementMatcher.Junction.ForNonNullValues.doMatch.

Matches the supplied value if it was found not to be null.

Parameters
target:T

The instance to be matched.

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