public class BridgeMethod extends Object
Modifier and Type | Field and Description |
---|---|
ExecutableElement |
from
For a normal override bridge, this is the overriding method.
|
ExecutableElement |
to
For a normal override bridge, this is the method being overridden.
|
Constructor and Description |
---|
BridgeMethod(ExecutableElement from,
ExecutableElement to) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
int |
hashCode() |
boolean |
isAccessibilityBridge()
Bridge methods may be generated for public methods of non-public superclasses to (as the
compiler source puts it) "work around a horrible but permanent reflection design error."
|
boolean |
isOverrideBridge()
Bridge methods may be generated when an overriding method has a different erasure than the
overridden method, or a different return type.
|
String |
toString() |
public final ExecutableElement from
to
.public final ExecutableElement to
public BridgeMethod(ExecutableElement from, ExecutableElement to)
public boolean isAccessibilityBridge()
public boolean isOverrideBridge()