public static class MainClassFinder.Result
extends java.lang.Object
MainClassFinder.find().| Modifier and Type | Class and Description |
|---|---|
static class |
MainClassFinder.Result.ErrorType
The type of error.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Throwable |
getErrorCause()
Gets the cause of the error.
|
MainClassFinder.Result.ErrorType |
getErrorType()
Gets the type of error.
|
java.lang.String |
getFoundMainClass()
Gets the found main class.
|
java.util.List<java.lang.String> |
getFoundMainClasses()
Gets the found main classes.
|
boolean |
isSuccess()
Gets whether or not this result is a success.
|
public boolean isSuccess()
true if successful; false if notpublic java.lang.String getFoundMainClass()
isSuccess is true.public MainClassFinder.Result.ErrorType getErrorType()
isSuccess is false.null if successfulpublic java.lang.Throwable getErrorCause()
getErrorType() is MainClassFinder.Result.ErrorType.IO_EXCEPTION.null if not availablepublic java.util.List<java.lang.String> getFoundMainClasses()