Class ValueResult

java.lang.Object
org.springframework.shell.ValueResult

public class ValueResult extends Object
A result for a successful resolve operation.
  • Constructor Details

    • ValueResult

      public ValueResult(org.springframework.core.MethodParameter methodParameter, Object resolvedValue)
    • ValueResult

      public ValueResult(org.springframework.core.MethodParameter methodParameter, Object resolvedValue, BitSet wordsUsed, BitSet wordsUsedForValue)
  • Method Details

    • methodParameter

      public org.springframework.core.MethodParameter methodParameter()
      The MethodParameter that was the target of the resolve operation.
    • resolvedValue

      public Object resolvedValue()
      Represents the resolved value for the MethodParameter associated with this result.
    • wordsUsed

      public BitSet wordsUsed()
      Represents the full set of words used to resolve the MethodParameter. This includes any tags/keys consumed from the input.
    • wordsUsedForValue

      public BitSet wordsUsedForValue()
      Represents the full set of words used to resolve the value of this MethodParameter.
    • wordsUsed

      public List<String> wordsUsed(List<String> words)
    • wordsUsedForValue

      public List<String> wordsUsedForValue(List<String> words)