Utility class for MissingMethodException, MissingPropertyException etc. This class contains methods assisting in ranking and listing probable intended methods/fields when a exception is thrown.
| Modifiers | Name | Description |
|---|---|---|
static int |
DL_CASE |
|
static int |
DL_DELETE |
|
static int |
DL_SUBSTITUTION |
|
static int |
DL_TRANSPOSITION |
|
static int |
MAX_CONSTRUCTOR_SCORE |
|
static int |
MAX_FIELD_SCORE |
|
static int |
MAX_METHOD_SCORE |
|
static int |
MAX_RECOMENDATIONS |
| Type | Name and description |
|---|---|
protected static Class |
boxVar(Class c) |
static int |
damerauLevenshteinDistance(Object[] s, Object[] t) |
static int |
delDistance(CharSequence s, CharSequence t) |
static String |
getConstructorSuggestionString(Class type, Object[] arguments)Returns a string detailing possible solutions to a missing constructor if no good solutions can be found a empty string is returned. |
static String |
getMethodSuggestionString(String methodName, Class type, Object[] arguments)Returns a string detailing possible solutions to a missing method if no good solutions can be found a empty string is returned. |
static String |
getPropertySuggestionString(String fieldName, Class type)Returns a string detailing possible solutions to a missing field or property if no good solutions can be found a empty string is returned. |
Returns a string detailing possible solutions to a missing constructor if no good solutions can be found a empty string is returned.
arguments - the arguments passed to the constructortype - the class on which the constructor is invokedReturns a string detailing possible solutions to a missing method if no good solutions can be found a empty string is returned.
methodName - the name of the method that doesn't existtype - the class on which the method is invokedarguments - the arguments passed to the methodReturns a string detailing possible solutions to a missing field or property if no good solutions can be found a empty string is returned.
fieldName - the missing fieldtype - the class on which the field is sought