org.glassfish.pfl.dynamic.codegen.impl
Class TryStatement
java.lang.Object
org.glassfish.pfl.dynamic.codegen.impl.AttributedObjectBase
org.glassfish.pfl.dynamic.codegen.impl.NodeBase
org.glassfish.pfl.dynamic.codegen.impl.StatementBase
org.glassfish.pfl.dynamic.codegen.impl.TryStatement
- All Implemented Interfaces:
- AttributedObject, Node, Statement, CopyInterceptor
public final class TryStatement
- extends StatementBase
- Author:
- Ken Cavanaugh
bodyPart
public BlockStatement bodyPart()
finalPart
public BlockStatement finalPart()
catches
public Map<Type,org.glassfish.pfl.basic.contain.Pair<Variable,BlockStatement>> catches()
addCatch
public org.glassfish.pfl.basic.contain.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.
accept
public void accept(Visitor visitor)
- Description copied from interface:
Node
- Accept the visitor and allow it to perform actions on this Node.
- Specified by:
accept in interface Node- Overrides:
accept in class NodeBase
Copyright © 2013 Oracle. All Rights Reserved.