org.springframework.shell.event
Class ParseResult
java.lang.Object
org.springframework.shell.event.ParseResult
public class ParseResult
- extends Object
Immutable representation of the outcome of parsing a given shell line.
Note that contained objects (the instance and the arguments) may be mutable, as the shell infrastructure
has no way of restricting which methods can be the target of CLI commands and nor the arguments
they will accept via the Converter
infrastructure.
- Since:
- 1.0
ParseResult
public ParseResult(Method method,
Object instance,
Object[] arguments)
getMethod
public Method getMethod()
getInstance
public Object getInstance()
getArguments
public Object[] getArguments()
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
equals
public boolean equals(Object obj)
- Overrides:
equals
in class Object
toString
public String toString()
- Overrides:
toString
in class Object