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

public Class ClassFileVersionMatcher<T extends TypeDescription>

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

A matcher to consider if a class file version reaches a given boundary.

Field Summary

Modifier and TypeField and Description
private final boolean
atMost

true if the targeted class file version should be at most of the supplied version.

private final ClassFileVersion
classFileVersion

The targeted class file version.

Constructor Summary

AccessConstructor and Description
public
ClassFileVersionMatcher(ClassFileVersion
The targeted class file version.
classFileVersion
,
boolean
true if the targeted class file version should be at most of the supplied version.
atMost
)

Creates a class file version 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

atMostback to summary
private final boolean atMost

true if the targeted class file version should be at most of the supplied version.

classFileVersionback to summary
private final ClassFileVersion classFileVersion

The targeted class file version.

Constructor Detail

ClassFileVersionMatcherback to summary
public ClassFileVersionMatcher(ClassFileVersion classFileVersion, boolean atMost)

Creates a class file version matcher.

Parameters
classFileVersion:ClassFileVersion

The targeted class file version.

atMost:boolean

true if the targeted class file version should be at most of the supplied version.

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.

Annotations
@Override
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