Top Fields Constructors Methods
org.glassfish.pfl.dynamic.codegen.impl

public final Class TryStatement

extends StatementBase
Class Inheritance
Imports
java.util.LinkedHashMap, .Map, org.glassfish.pfl.basic.contain.Pair, org.glassfish.pfl.dynamic.codegen.spi.Type, .Variable

Author
Ken Cavanaugh

Field Summary

Modifier and TypeField and Description
private BlockStatement
private Map<Type, Pair<Variable, BlockStatement>>
private BlockStatement

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public void
accept(Visitor visitor)

Overrides org.glassfish.pfl.dynamic.codegen.impl.NodeBase.accept.

Implements org.glassfish.pfl.dynamic.codegen.impl.Node.accept.

Accept the visitor and allow it to perform actions on this Node.

public Pair<Variable, BlockStatement>
addCatch(Type type, String ident)

Add a new Catch block to this try statement.

public BlockStatement
public Map<Type, Pair<Variable, BlockStatement>>
public BlockStatement

Field Detail

bodyPartback to summary
private BlockStatement bodyPart
catchesback to summary
private Map<Type, Pair<Variable, BlockStatement>> catches
finalPartback to summary
private BlockStatement finalPart

Constructor Detail

TryStatementback to summary
pack-priv TryStatement(Node parent)

Method Detail

acceptback to summary
public void accept(Visitor visitor)

Overrides org.glassfish.pfl.dynamic.codegen.impl.NodeBase.accept.

Implements org.glassfish.pfl.dynamic.codegen.impl.Node.accept.

Doc from org.glassfish.pfl.dynamic.codegen.impl.Node.accept.

Accept the visitor and allow it to perform actions on this Node.

addCatchback to summary
public Pair<Variable, BlockStatement> addCatch(Type type, String ident)

Add a new Catch block to this try statement. type must be a non-primitive, non-array type, and may occur only once per try statement.

bodyPartback to summary
public BlockStatement bodyPart()
catchesback to summary
public Map<Type, Pair<Variable, BlockStatement>> catches()
finalPartback to summary
public BlockStatement finalPart()