public class MethodOverrides
extends java.lang.Object
The currently supported MethodOverride
variants are
LookupOverride
and ReplaceOverride
.
MethodOverride
Modifier and Type | Field and Description |
---|---|
private boolean |
modified |
private java.util.Set<MethodOverride> |
overrides |
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(java.lang.Object other) |
MethodOverride |
getOverride(java.lang.reflect.Method method)
Return the override for the given method, if any.
|
java.util.Set<MethodOverride> |
getOverrides()
Return all method overrides contained by this object.
|
int |
hashCode() |
boolean |
isEmpty()
Return whether the set of method overrides is empty.
|
private final java.util.Set<MethodOverride> overrides
private volatile boolean modified
public MethodOverrides()
public MethodOverrides(MethodOverrides other)
public void addOverrides(MethodOverrides other)
public void addOverride(MethodOverride override)
public java.util.Set<MethodOverride> getOverrides()
MethodOverride
public boolean isEmpty()
public MethodOverride getOverride(java.lang.reflect.Method method)
method
- method to check for overrides fornull
if nonepublic boolean equals(java.lang.Object other)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object