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
-
-
Field Summary
Fields Modifier and Type Field Description private BlockStatement
bodyPart
private java.util.Map<Type,Pair<Variable,BlockStatement>>
catches
private BlockStatement
finalPart
-
Constructor Summary
Constructors Constructor Description TryStatement(Node parent)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
accept(Visitor visitor)
Accept the visitor and allow it to perform actions on this Node.Pair<Variable,BlockStatement>
addCatch(Type type, java.lang.String ident)
Add a new Catch block to this try statement.BlockStatement
bodyPart()
java.util.Map<Type,Pair<Variable,BlockStatement>>
catches()
BlockStatement
finalPart()
-
Methods inherited from class org.glassfish.pfl.dynamic.codegen.impl.NodeBase
copy, copy, getAncestor, id, parent, parent, postCopy, preCopy, toString
-
Methods inherited from class org.glassfish.pfl.dynamic.codegen.impl.AttributedObjectBase
attributes, get, set
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.glassfish.pfl.dynamic.codegen.impl.AttributedObject
attributes, get, set
-
-
-
-
Field Detail
-
bodyPart
private BlockStatement bodyPart
-
finalPart
private BlockStatement finalPart
-
catches
private java.util.Map<Type,Pair<Variable,BlockStatement>> catches
-
-
Constructor Detail
-
TryStatement
TryStatement(Node parent)
-
-
Method Detail
-
bodyPart
public BlockStatement bodyPart()
-
finalPart
public BlockStatement finalPart()
-
catches
public java.util.Map<Type,Pair<Variable,BlockStatement>> catches()
-
addCatch
public Pair<Variable,BlockStatement> addCatch(Type type, java.lang.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.
-
-