Note that the override mechanism is not intended as a generic means of inserting crosscutting code: use AOP for that.
| Modifier and Type | Field and Description |
|---|---|
| private final String | |
| private boolean | |
| private Object |
| Access | Constructor and Description |
|---|---|
| protected | MethodOverride(String
the name of the method to override methodName)Construct a new override for the given method. |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | equals(Object
the reference object with which to compare. other)Overrides java. Indicates whether some other object is "equal to" this one. |
| public String | |
| public Object | getSource()
Overrides default org. Return the configuration source |
| public int | |
| protected boolean | isOverloaded()
Return whether the overridden method is overloaded (i.e., whether argument type matching needs to occur to disambiguate methods of the same name). |
| public abstract boolean | |
| protected void | setOverloaded(boolean overloaded)
Set whether the overridden method is overloaded (i.e., whether argument type matching needs to occur to disambiguate methods of the same name). |
| public void |
| methodName | back to summary |
|---|---|
| private final String methodName | |
| overloaded | back to summary |
|---|---|
| private boolean overloaded | |
| source | back to summary |
|---|---|
| private Object source
| |
| MethodOverride | back to summary |
|---|---|
| protected MethodOverride(String methodName) Construct a new override for the given method.
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object other) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| getMethodName | back to summary |
|---|---|
| public String getMethodName() Return the name of the method to be overridden. | |
| getSource | back to summary |
|---|---|
| public Object getSource() Overrides default org. Doc from org. Return the configuration source | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| isOverloaded | back to summary |
|---|---|
| protected boolean isOverloaded() Return whether the overridden method is overloaded (i.e., whether argument type matching needs to occur to disambiguate methods of the same name). | |
| matches | back to summary |
|---|---|
| public abstract boolean matches(Method method) Subclasses must override this to indicate whether they match the given method. This allows for argument list checking as well as method name checking.
| |
| setOverloaded | back to summary |
|---|---|
| protected void setOverloaded(boolean overloaded) Set whether the overridden method is overloaded (i.e., whether argument type matching needs to occur to disambiguate methods of the same name). Default is | |
| setSource | back to summary |
|---|---|
| public void setSource(Object source) Set the configuration source The exact type of the object will depend on the configuration mechanism used. | |