Class OneOrMore

java.lang.Object
EDU.purdue.jtb.parser.Expansion_
EDU.purdue.jtb.parser.OneOrMore

public class OneOrMore extends Expansion_
Describes one-or-more expansions (e.g., foo+).
  • Field Details

    • expansion

      public Expansion_ expansion
      The expansion which is repeated one or more times.
  • Constructor Details

    • OneOrMore

      public OneOrMore()
      Standard constructor
    • OneOrMore

      public OneOrMore(Token t, Expansion_ e)
      Constructor with parameters.
      Parameters:
      t - - the token
      e - - the node
  • Method Details

    • dump

      public StringBuilder dump(int indent, Set<Object> alreadyDumped)
      Overrides:
      dump in class Expansion_
      Parameters:
      indent - - the number of spaces for indenting
      alreadyDumped - - a Set of objects already dumped (unused)
      Returns:
      the formatted string dumping the class