protected static class MethodRegistry.Default.Compiled.Entry extends TypeWriter.MethodPool.Entry.Simple implements ElementMatcher<MethodDescription>
ElementMatcher.Junction<S>
TypeWriter.MethodPool.Entry.Factory, TypeWriter.MethodPool.Entry.Simple, TypeWriter.MethodPool.Entry.Skip
Modifier | Constructor and Description |
---|---|
protected |
Entry(ElementMatcher<? super MethodDescription> methodMatcher,
ByteCodeAppender byteCodeAppender,
MethodAttributeAppender attributeAppender)
Creates an entry of a compiled default method registry.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object other) |
int |
hashCode() |
boolean |
matches(MethodDescription methodDescription)
Matches a target against this element matcher.
|
String |
toString() |
apply, getAttributeAppender, getByteCodeAppender, isDefineMethod
protected Entry(ElementMatcher<? super MethodDescription> methodMatcher, ByteCodeAppender byteCodeAppender, MethodAttributeAppender attributeAppender)
methodMatcher
- The method matcher to be wrapped by this instance.byteCodeAppender
- The byte code appender that represents this compiled entry.attributeAppender
- The method attribute appender that represents this compiled entry.public boolean matches(MethodDescription methodDescription)
ElementMatcher
matches
in interface ElementMatcher<MethodDescription>
methodDescription
- The instance to be matched.true
if the given element is matched by this matcher or false
otherwise.public boolean equals(Object other)
equals
in class TypeWriter.MethodPool.Entry.Simple
public int hashCode()
hashCode
in class TypeWriter.MethodPool.Entry.Simple
public String toString()
toString
in class TypeWriter.MethodPool.Entry.Simple
Copyright © 2014–2015. All rights reserved.