Class TryBlock


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

      Constructors 
      Constructor Description
      TryBlock()
      Standard constructor
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.StringBuilder dump​(int indent, java.util.Set<java.lang.Object> alreadyDumped)
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • exp

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

        public java.util.List<java.util.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 java.util.List<Token> ids
        The exception identifiers of each catch block. Each list entry is a token.
      • catchblks

        public java.util.List<java.util.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 java.util.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 Detail

      • TryBlock

        public TryBlock()
        Standard constructor
    • Method Detail

      • dump

        public java.lang.StringBuilder dump​(int indent,
                                            java.util.Set<java.lang.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