AST
node type CatchClause

General Info

Production
CatchClause : ASTNode ::= Block;
Type Hierarchy:
java.lang.Object
  extended by beaver.Symbol
      extended by AST.ASTNode<ASTNode>
          extended by AST.CatchClause
All Implemented Interfaces:
VariableScope, java.lang.Cloneable, java.lang.Iterable<ASTNode>
Direct Known Subclasses:
BasicCatch, MultiCatch

Description

Abstract superclass for catch clauses.
Source
Declared in Java7Frontend/MultiCatch.ast at line 4

Member Filters

API level:

Aspect:

Constructors

public CatchClause()
 
public CatchClause(Block p0)
 

Attributes

syn boolean handles(TypeDecl exceptionType)
Source
Declared in Java1.4Frontend/ExceptionHandling.jrag at line 212
Aspect
ExceptionHandling
syn SimpleSet parameterDeclaration(java.lang.String name)
Source
Declared in Java1.4Frontend/LookupVariable.jrag at line 111
Aspect
VariableScope
syn int label()
Source
Declared in Java1.4Backend/CreateBCode.jrag at line 1524
Aspect
CreateBCode
syn boolean modifiedInScope(Variable var)
Source
Declared in Java7Frontend/PreciseRethrow.jrag at line 109
Aspect
PreciseRethrow
Source
Declared in Java1.4Frontend/LookupType.jrag at line 68
Aspect
SpecialClasses
inh SimpleSet lookupVariable(java.lang.String name)
Specified by:lookupVariable in interface VariableScope
Source
Declared in Java1.4Frontend/LookupVariable.jrag at line 20
Aspect
VariableScope
inh boolean reachableCatchClause(TypeDecl exceptionType)
Returns:
true if an exception of type exceptionType is catchable by the catch clause
Source
Declared in Java1.4Frontend/UnreachableStatements.jrag at line 127
Aspect
UnreachableStatements
Source
Declared in Java1.4Backend/CreateBCode.jrag at line 13
Aspect
CreateBCode
inh java.util.Collection<TypeDecl> caughtExceptions()
Source
Declared in Java7Frontend/PreciseRethrow.jrag at line 136
Aspect
PreciseRethrow
inh boolean reportUnreachable()
Source
Declared in Java7Frontend/PreciseRethrow.jrag at line 195
Aspect
PreciseRethrow

Methods

public void flushCache()
Overrides:flushCache in class ASTNode<ASTNode>
public void flushCollectionCache()
Overrides:flushCollectionCache in class ASTNode<ASTNode>
public CatchClause clone()
                  throws java.lang.CloneNotSupportedException
Overrides:clone in class ASTNode<ASTNode>
Throws:
java.lang.CloneNotSupportedException
public abstract void exceptionTableEntries(CodeGeneration gen,
                                           TryStmt tryStmt)
Source
Declared in Java1.4Backend/CreateBCode.jrag at line 15
Aspect
CreateBCode
public void init$Children()
Initializes the child array to the correct size. Initializes List and Opt nta children.
Overrides:init$Children in class ASTNode<ASTNode>
protected int numChildren()
Overrides:numChildren in class ASTNode<ASTNode>
public boolean mayHaveRewrite()
Overrides:mayHaveRewrite in class ASTNode<ASTNode>
public void setBlock(Block node)
Replaces the Block child.
Parameters:
node - The new node to replace the Block child.
public Block getBlock()
Retrieves the Block child.
Returns:
The current node used as the Block child.
Retrieves the Block child.

This method does not invoke AST transformations.

Returns:
The current node used as the Block child.
public SimpleSet Define_SimpleSet_lookupVariable(ASTNode caller,
                                                 ASTNode child,
                                                 java.lang.String name)
Overrides:Define_SimpleSet_lookupVariable in class ASTNode<ASTNode>
Source
Declared in Java1.4Frontend/LookupVariable.jrag at line 78
Overrides:Define_CatchClause_catchClause in class ASTNode<ASTNode>
Source
Declared in Java7Frontend/PreciseRethrow.jrag at line 134
public boolean Define_boolean_reportUnreachable(ASTNode caller,
                                                ASTNode child)
Overrides:Define_boolean_reportUnreachable in class ASTNode<ASTNode>
Source
Declared in Java7Frontend/PreciseRethrow.jrag at line 196
Overrides:rewriteTo in class ASTNode<ASTNode>

Fields

protected java.util.Map parameterDeclaration_String_values
protected boolean label_computed
protected int label_value
protected boolean typeThrowable_computed
protected java.util.Map lookupVariable_String_values
protected java.util.Map reachableCatchClause_TypeDecl_values

Inherited Members

Attributes inherited from AST.ASTNode

Methods inherited from class 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

Methods inherited from interface AST.VariableScope

Fields inherited from AST.ASTNode

Fields inherited from beaver.Symbol

end
id
start
value