Package EDU.purdue.jtb.parser
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 {...} ...".
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class EDU.purdue.jtb.parser.Expansion_
Expansion_.EXP_TYPE
-
-
Field Summary
Fields Modifier and Type Field Description java.util.List<java.util.List<Token>>
catchblks
The block part of each catch block.Expansion_
exp
The expansion contained within the try block.java.util.List<Token>
finallyblk
The block part of the finally block.java.util.List<Token>
ids
The exception identifiers of each catch block.java.util.List<java.util.List<Token>>
types
The types of each catch block.-
Fields inherited from class EDU.purdue.jtb.parser.Expansion_
EOL, inMinimumSize, myGeneration, nextGenerationIndex, parent
-
-
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 EDU.purdue.jtb.parser.Expansion_
dumpPrefix, toString
-
-
-
-
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.
-
-
Method Detail
-
dump
public java.lang.StringBuilder dump(int indent, java.util.Set<java.lang.Object> alreadyDumped)
- Overrides:
dump
in classExpansion_
- Parameters:
indent
- - the number of spaces for indentingalreadyDumped
- - a Set of objects already dumped (unused)- Returns:
- the formatted string dumping the class
-
-