org.extendj.ast
node type BranchTargetStmt

General Info

Production
BranchTargetStmt : Stmt;
Type Hierarchy:
java.lang.Object
  extended by beaver.Symbol
      extended by org.extendj.ast.ASTNode<ASTNode>
          extended by org.extendj.ast.Stmt
              extended by org.extendj.ast.BranchTargetStmt
All Implemented Interfaces:
java.lang.Cloneable, java.lang.Iterable<ASTNode>, org.jastadd.util.PrettyPrintable
Direct Known Subclasses:
DoStmt, EnhancedForStmt, ForStmt, LabeledStmt, SwitchStmt, WhileStmt

Description

Source
Declared in /home/jesper/git/extendj/java4/grammar/Java.ast at line 192

Member Filters

API level:

Aspect:

Constructors

public BranchTargetStmt()
 
Source
Declared in /home/jesper/git/extendj/ASTNode at line 1

Attributes

@ASTNodeAnnotation.Attribute
syn java.util.Collection<Stmt> targetBranches()
Source
Declared in /home/jesper/git/extendj/java4/frontend/BranchTarget.jrag at line 86
Aspect
BranchTarget
Source
Declared in /home/jesper/git/extendj/java4/frontend/BranchTarget.jrag at line 87
Aspect
BranchTarget
@ASTNodeAnnotation.Attribute
syn java.util.Collection<Stmt> branches()
Source
Declared in /home/jesper/git/extendj/java4/frontend/BranchTarget.jrag at line 88
Aspect
BranchTarget
Returns:
true if this statement is a potential branch target of the given branch statement.
Source
Declared in /home/jesper/git/extendj/java4/frontend/BranchTarget.jrag at line 217
Aspect
BranchTarget
Source
Declared in /home/jesper/git/extendj/java4/frontend/BranchTarget.jrag at line 84
Aspect
BranchTarget
@ASTNodeAnnotation.Attribute
syn java.util.Collection<Stmt> targetBreaks()
Source
Declared in /home/jesper/git/extendj/java4/frontend/BranchTarget.jrag at line 85
Aspect
BranchTarget
Source
Declared in /home/jesper/git/extendj/java4/frontend/UnreachableStatements.jrag at line 86
Aspect
UnreachableStatements
Source
Declared in /home/jesper/git/extendj/java4/frontend/UnreachableStatements.jrag at line 142
Aspect
UnreachableStatements

Methods

public void collectBranches(java.util.Collection<Stmt> c)
Overrides:collectBranches in class ASTNode<ASTNode>
Source
Declared in /home/jesper/git/extendj/java4/frontend/BranchTarget.jrag at line 108
Aspect
BranchTarget
public void init$Children()
Initializes the child array to the correct size. Initializes List and Opt nta children.
Overrides:init$Children in class Stmt
Source
Declared in /home/jesper/git/extendj/ASTNode at line 10
protected int numChildren()
Overrides:numChildren in class Stmt
Source
Declared in /home/jesper/git/extendj/ASTNode at line 15
public boolean mayHaveRewrite()
Overrides:mayHaveRewrite in class Stmt
Source
Declared in /home/jesper/git/extendj/ASTNode at line 21
public void flushAttrCache()
Overrides:flushAttrCache in class Stmt
Source
Declared in /home/jesper/git/extendj/ASTNode at line 27
public void flushCollectionCache()
Overrides:flushCollectionCache in class Stmt
Source
Declared in /home/jesper/git/extendj/ASTNode at line 40
public void flushRewriteCache()
Overrides:flushRewriteCache in class Stmt
Source
Declared in /home/jesper/git/extendj/ASTNode at line 46
public BranchTargetStmt clone()
                       throws java.lang.CloneNotSupportedException
Overrides:clone in class Stmt
Throws:
java.lang.CloneNotSupportedException
Source
Declared in /home/jesper/git/extendj/ASTNode at line 52
@Deprecated
public abstract BranchTargetStmt fullCopy()
Deprecated. Please use treeCopy or treeCopyNoTransform instead

Create a deep copy of the AST subtree at this node. The copy is dangling, i.e. has no parent.

Specified by:fullCopy in class Stmt
Returns:
dangling copy of the subtree at this node
Source
Declared in /home/jesper/git/extendj/ASTNode at line 63
public abstract BranchTargetStmt treeCopyNoTransform()
Create a deep copy of the AST subtree at this node. The copy is dangling, i.e. has no parent.
Specified by:treeCopyNoTransform in class Stmt
Returns:
dangling copy of the subtree at this node
Source
Declared in /home/jesper/git/extendj/ASTNode at line 71
public abstract BranchTargetStmt treeCopy()
Create a deep copy of the AST subtree at this node. The subtree of this node is traversed to trigger rewrites before copy. The copy is dangling, i.e. has no parent.
Specified by:treeCopy in class Stmt
Returns:
dangling copy of the subtree at this node
Source
Declared in /home/jesper/git/extendj/ASTNode at line 79
public org.extendj.ast.FinallyHost Define_enclosingFinally(ASTNode caller,
                                                           ASTNode child,
                                                           Stmt branch)
Overrides:Define_enclosingFinally in class ASTNode<ASTNode>
Source
Declared in /home/jesper/git/extendj/java4/frontend/BranchTarget.jrag at line 262
protected boolean canDefine_enclosingFinally(ASTNode caller,
                                             ASTNode child,
                                             Stmt branch)
public boolean Define_leavesMonitor(ASTNode caller,
                                    ASTNode child,
                                    Stmt branch,
                                    SynchronizedStmt monitor)
Overrides:Define_leavesMonitor in class ASTNode<ASTNode>
Source
Declared in /home/jesper/git/extendj/java4/backend/CreateBCode.jrag at line 1836
protected boolean canDefine_leavesMonitor(ASTNode caller,
                                          ASTNode child,
                                          Stmt branch,
                                          SynchronizedStmt monitor)
Overrides:rewriteTo in class Stmt

Fields

protected boolean targetBranches_computed
protected java.util.Collection<Stmt> targetBranches_value
protected boolean escapedBranches_computed
protected java.util.Collection<Stmt> escapedBranches_value
protected boolean branches_computed
protected java.util.Collection<Stmt> branches_value
protected boolean targetContinues_computed
protected java.util.Collection<Stmt> targetContinues_value
protected boolean targetBreaks_computed
protected java.util.Collection<Stmt> targetBreaks_value
protected boolean reachableBreak_computed
protected boolean reachableBreak_value
protected boolean reachableContinue_computed
protected boolean reachableContinue_value

Inherited Members

Attributes inherited from org.extendj.ast.Stmt

Attributes inherited from org.extendj.ast.ASTNode

Methods inherited from class org.extendj.ast.Stmt

Methods inherited from class org.extendj.ast.ASTNode

Methods inherited from class beaver.Symbol

getColumn
getEnd
getId
getLine
getStart
makePosition

Methods inherited from class java.lang.Object

equals
finalize
getClass
hashCode
notify
notifyAll
wait
wait
wait

Fields inherited from org.extendj.ast.Stmt

Fields inherited from org.extendj.ast.ASTNode

Fields inherited from beaver.Symbol

end
id
start
value