Class TryBlock

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

public class TryBlock extends Expansion_
Describes expansions of the form "try {...} ...".
  • Field Details

    • exp

      public Expansion_ exp
      The expansion contained within the try block.
    • types

      public List<List<Token>> types
      The types of each catch block. Each list entry is itself a list which in turn contains tokens as entries.
    • ids

      public List<Token> ids
      The exception identifiers of each catch block. Each list entry is a token.
    • catchblks

      public List<List<Token>> catchblks
      The block part of each catch block. Each list entry is itself a list which in turn contains tokens as entries.
    • finallyblk

      public List<Token> finallyblk
      The block part of the finally block. Each list entry is a token. If there is no finally block, this is null.
  • Constructor Details

    • TryBlock

      public TryBlock()
      Standard constructor
  • 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