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

public Class SuperTypeMatcher<T extends TypeDescription>

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

An element matcher that matches its argument for being another type's super type.

Field Summary

Modifier and TypeField and Description
private final TypeDescription
typeDescription

The type to be matched being a sub type of the matched type.

Constructor Summary

AccessConstructor and Description
public
SuperTypeMatcher(TypeDescription
The type to be matched being a sub type of the matched type.
typeDescription
)

Creates a new matcher for matching its input for being a super type of the given typeDescription.

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

typeDescriptionback to summary
private final TypeDescription typeDescription

The type to be matched being a sub type of the matched type.

Constructor Detail

SuperTypeMatcherback to summary
public SuperTypeMatcher(TypeDescription typeDescription)

Creates a new matcher for matching its input for being a super type of the given typeDescription.

Parameters
typeDescription:TypeDescription

The type to be matched being a sub type of the matched 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