Class MessagePatternUtil.ArgNode

Enclosing class:
MessagePatternUtil

public static class MessagePatternUtil.ArgNode extends MessagePatternUtil.MessageContentsNode
A piece of MessageNode contents representing a message argument and its details.
  • Method Details

    • getArgType

      public MessagePattern.ArgType getArgType()
      Returns:
      the argument type
    • getName

      public String getName()
      Returns:
      the argument name string (the decimal-digit string if the argument has a number)
    • getNumber

      public int getNumber()
      Returns:
      the argument number, or -1 if none (for a named argument)
    • getTypeName

      public String getTypeName()
      Returns:
      the argument type string, or null if none was specified
    • getSimpleStyle

      public String getSimpleStyle()
      Returns:
      the simple-argument style string, or null if no style is specified and for other argument types
    • getComplexStyle

      public MessagePatternUtil.ComplexArgStyleNode getComplexStyle()
      Returns:
      the complex-argument-style object, or null if the argument type is NONE_ARG or SIMPLE_ARG
    • toString

      public String toString()
      Overrides:
      toString in class MessagePatternUtil.MessageContentsNode