public class MethodOverrides extends Object
The currently supported MethodOverride
variants are
LookupOverride
and ReplaceOverride
.
MethodOverride
Constructor and Description |
---|
MethodOverrides()
Create new MethodOverrides.
|
MethodOverrides(MethodOverrides other)
Deep copy constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addOverride(MethodOverride override)
Add the given method override.
|
void |
addOverrides(MethodOverrides other)
Copy all given method overrides into this object.
|
boolean |
equals(Object other) |
MethodOverride |
getOverride(Method method)
Return the override for the given method, if any.
|
Set<MethodOverride> |
getOverrides()
Return all method overrides contained by this object.
|
int |
hashCode() |
boolean |
isEmpty()
Return whether the set of method overrides is empty.
|
public MethodOverrides()
public MethodOverrides(MethodOverrides other)
public void addOverrides(@Nullable MethodOverrides other)
public void addOverride(MethodOverride override)
public Set<MethodOverride> getOverrides()
MethodOverride
public boolean isEmpty()
@Nullable public MethodOverride getOverride(Method method)
method
- method to check for overrides fornull
if none