public static enum IOverrideCheckResult.OverrideCheckDetails extends java.lang.Enum<IOverrideCheckResult.OverrideCheckDetails>
Enum Constant and Description |
---|
ARITY_MISMATCH
The arity of the given operation does not match this operation.
|
COVARIANT_RETURN
The given operation is overridden by this operation and the return type is specialized by this operation.
|
CURRENT
The resolved operation represents the given operation.
|
DEFAULT_IMPL_CONFLICT
The operations are declared in different interfaces that do not extend each other, their type erasure is equal,
and at least one of them is not abstract, i.e. it has a default implementation (Java 8).
|
EXCEPTION_MISMATCH
This operation declares exceptions that are not declared by the given methods.
|
IMPLEMENTATION
The given operation is strictly implemented, e.g. parameter types, type parameters and return type are
identical and the given operation is abstract and implemented by this operation.
|
IS_FINAL
The current method seems to override the given method but that one is final and cannot be overridden.
|
NAME_MISMATCH
The name of the given operation does not match this operation.
|
NO_INHERITANCE
No inheritance relation between this operation and the given operation.
|
NOT_VISIBLE
The current method seems to override the given method, but that one is not visible (e.g. it is private or
package private and in another package).
|
OVERRIDE
The given operation is strictly overridden, e.g. parameter types, type parameters and return type are
identical and the given operation is concrete and overridden by this operation.
|
PARAMETER_TYPE_MISMATCH
The parameter types of the given method do not match this method.
|
REDECLARATION
The given operation is redeclared, e.g. parameter types, type parameters and return type are identical but
this operation is abstract and the given operation is concrete.
|
REDUCED_VISIBILITY
The current method seems to override the given method but attempts to reduce its visibility.
|
REPEATED
The given operation is repeated, e.g. parameter types, type parameters and return type are identical.
|
RETURN_MISMATCH
The return types do not match.
|
SAME_DECLARATOR
Both operations are declared in the very same type thus it can't be an override relationship.
|
SAME_ERASURE
The given operation has the same erasure on the parameter types but is not overridden by this operation.
|
SHADOWED
This method is static and shadows another static method from the super class
|
STATIC_MISMATCH
Attempt to override a static operation with an instance method or vice versa
|
TYPE_PARAMETER_MISMATCH
The given operation declares different type parameters than this operation.
|
UNCHECKED_CONVERSION_REQUIRED
This operation overrides the given operation but the return type requires an unchecked conversion.
|
VAR_ARG_MISMATCH
Attempt to override a var arg method with a non var arg method or vice versa.
|
Modifier and Type | Method and Description |
---|---|
static IOverrideCheckResult.OverrideCheckDetails |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static IOverrideCheckResult.OverrideCheckDetails[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final IOverrideCheckResult.OverrideCheckDetails CURRENT
public static final IOverrideCheckResult.OverrideCheckDetails OVERRIDE
public static final IOverrideCheckResult.OverrideCheckDetails IMPLEMENTATION
public static final IOverrideCheckResult.OverrideCheckDetails REDECLARATION
Collection.equals(Object)
redeclares Object.equals(Object)
or B#m
redeclares A#m
in the following example.
class A { void m() { } } abstract class B extends A { abstract void m(); }
public static final IOverrideCheckResult.OverrideCheckDetails REPEATED
List.equals(Object)
repeats Collection.equals(Object)
.public static final IOverrideCheckResult.OverrideCheckDetails SHADOWED
public static final IOverrideCheckResult.OverrideCheckDetails TYPE_PARAMETER_MISMATCH
public static final IOverrideCheckResult.OverrideCheckDetails UNCHECKED_CONVERSION_REQUIRED
public static final IOverrideCheckResult.OverrideCheckDetails EXCEPTION_MISMATCH
public static final IOverrideCheckResult.OverrideCheckDetails NAME_MISMATCH
public static final IOverrideCheckResult.OverrideCheckDetails ARITY_MISMATCH
public static final IOverrideCheckResult.OverrideCheckDetails PARAMETER_TYPE_MISMATCH
public static final IOverrideCheckResult.OverrideCheckDetails SAME_ERASURE
public static final IOverrideCheckResult.OverrideCheckDetails RETURN_MISMATCH
public static final IOverrideCheckResult.OverrideCheckDetails COVARIANT_RETURN
public static final IOverrideCheckResult.OverrideCheckDetails NOT_VISIBLE
public static final IOverrideCheckResult.OverrideCheckDetails IS_FINAL
public static final IOverrideCheckResult.OverrideCheckDetails REDUCED_VISIBILITY
public static final IOverrideCheckResult.OverrideCheckDetails STATIC_MISMATCH
public static final IOverrideCheckResult.OverrideCheckDetails NO_INHERITANCE
public static final IOverrideCheckResult.OverrideCheckDetails SAME_DECLARATOR
public static final IOverrideCheckResult.OverrideCheckDetails VAR_ARG_MISMATCH
class A { void m(String... s) {} } class B extends A { @Override void m(String[] s) {} }Should yield the message
Varargs methods should only override or be overridden by other varargs methods unlike
B.m(String[]) and A.m(String...)
public static final IOverrideCheckResult.OverrideCheckDetails DEFAULT_IMPL_CONFLICT
public static IOverrideCheckResult.OverrideCheckDetails[] values()
for (IOverrideCheckResult.OverrideCheckDetails c : IOverrideCheckResult.OverrideCheckDetails.values()) System.out.println(c);
public static IOverrideCheckResult.OverrideCheckDetails valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null