org.springframework.shell.event
Class ParseResult

java.lang.Object
  extended by 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

Constructor Summary
ParseResult(Method method, Object instance, Object[] arguments)
           
 
Method Summary
 boolean equals(Object obj)
           
 Object[] getArguments()
           
 Object getInstance()
           
 Method getMethod()
           
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ParseResult

public ParseResult(Method method,
                   Object instance,
                   Object[] arguments)
Method Detail

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