@HashCodeAndEqualsPlugin.Enhance protected static class MethodRegistry.Default.Prepared.Entry extends Object
| Modifier | Constructor and Description |
|---|---|
protected |
Entry(MethodRegistry.Handler handler,
MethodAttributeAppender.Factory attributeAppenderFactory,
MethodDescription methodDescription,
Set<MethodDescription.TypeToken> typeTokens,
Visibility visibility,
boolean bridgeMethod)
Creates a new prepared entry.
|
| Modifier and Type | Method and Description |
|---|---|
protected static MethodRegistry.Default.Prepared.Entry |
forVisibilityBridge(MethodDescription bridgeTarget,
Visibility visibility)
Creates an entry for a visibility bridge.
|
protected MethodAttributeAppender.Factory |
getAppenderFactory()
Returns this entry's attribute appender factory.
|
protected MethodRegistry.Handler |
getHandler()
Returns this entry's handler.
|
protected MethodDescription |
getMethodDescription()
Returns the method description this entry represents.
|
protected Visibility |
getVisibility()
Returns the represented method's minimum visibility.
|
protected boolean |
isBridgeMethod()
Returns
true if this entry represents a bridge method. |
protected Set<MethodDescription.TypeToken> |
resolveBridgeTypes()
Resolves the type tokens of all bridge methods that are required to be implemented for this entry.
|
protected Entry(MethodRegistry.Handler handler, MethodAttributeAppender.Factory attributeAppenderFactory, MethodDescription methodDescription, Set<MethodDescription.TypeToken> typeTokens, Visibility visibility, boolean bridgeMethod)
handler - The handler for implementing methods.attributeAppenderFactory - A attribute appender factory for appending attributes for any implemented method.methodDescription - The method this entry represents.typeTokens - A set of bridges representing the bridge methods of this method.visibility - The minimum required visibility of this method.bridgeMethod - true if this entry represents a bridge method.protected static MethodRegistry.Default.Prepared.Entry forVisibilityBridge(MethodDescription bridgeTarget, Visibility visibility)
bridgeTarget - The bridge method's target.visibility - The represented method's minimum visibility.protected MethodRegistry.Handler getHandler()
protected MethodAttributeAppender.Factory getAppenderFactory()
protected MethodDescription getMethodDescription()
protected Set<MethodDescription.TypeToken> resolveBridgeTypes()
protected Visibility getVisibility()
protected boolean isBridgeMethod()
true if this entry represents a bridge method.true if this entry represents a bridge method.Copyright © 2014–2019. All rights reserved.