Package EDU.purdue.cs.bloat.tree
Class JsrStmt
- java.lang.Object
-
- EDU.purdue.cs.bloat.tree.Node
-
- EDU.purdue.cs.bloat.tree.Stmt
-
- EDU.purdue.cs.bloat.tree.JumpStmt
-
- EDU.purdue.cs.bloat.tree.JsrStmt
-
public class JsrStmt extends JumpStmt
JsrStmt represents a jsr instruction that jumps to a subroutine. Recall that a subroutine is used to implement the finally cause in exception handlers. The ret instruction is used to return from a subroutine.- See Also:
RetStmt,Subroutine
-
-
Constructor Summary
Constructors Constructor Description JsrStmt(Subroutine sub, Block follow)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectclone()Blockfollow()voidsetFollow(Block follow)Subroutinesub()voidvisit(TreeVisitor visitor)voidvisitForceChildren(TreeVisitor visitor)Visit the children of this node.-
Methods inherited from class EDU.purdue.cs.bloat.tree.JumpStmt
catchTargets, copyInto
-
Methods inherited from class EDU.purdue.cs.bloat.tree.Stmt
cleanupOnly
-
Methods inherited from class EDU.purdue.cs.bloat.tree.Node
block, cleanup, hasParent, key, parent, replaceWith, replaceWith, setKey, setParent, setValueNumber, toString, valueNumber, visitChildren, visitOnly
-
-
-
-
Constructor Detail
-
JsrStmt
public JsrStmt(Subroutine sub, Block follow)
Constructor.- Parameters:
sub- Subroutine that this statement jumps to.follow- Basic Block following the jump statement.
-
-
Method Detail
-
setFollow
public void setFollow(Block follow)
-
follow
public Block follow()
-
sub
public Subroutine sub()
-
visitForceChildren
public void visitForceChildren(TreeVisitor visitor)
Description copied from class:NodeVisit the children of this node. Not all Nodes will have children to visit.- Specified by:
visitForceChildrenin classNode
-
visit
public void visit(TreeVisitor visitor)
-
-