AST
node type BasicCatch

General Info

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

Description

A catch clause that can catch a single exception type.
Source
Declared in Java7Frontend/MultiCatch.ast at line 9

Member Filters

API level:

Aspect:

Constructors

public BasicCatch()
 

Attributes

syn boolean handles(TypeDecl exceptionType)
Overrides:handles in class CatchClause
Source
Declared in Java1.4Frontend/ExceptionHandling.jrag at line 212
Aspect
ExceptionHandling
syn SimpleSet parameterDeclaration(java.lang.String name)
Overrides:parameterDeclaration in class CatchClause
Source
Declared in Java1.4Frontend/LookupVariable.jrag at line 113
Aspect
VariableScope

Methods

public void flushCache()
Overrides:flushCache in class CatchClause
public void flushCollectionCache()
Overrides:flushCollectionCache in class CatchClause
public BasicCatch clone()
                 throws java.lang.CloneNotSupportedException
Overrides:clone in class CatchClause
Throws:
java.lang.CloneNotSupportedException
public BasicCatch copy()
Overrides:copy in class ASTNode<ASTNode>
Create a deep copy of the AST subtree at this node. The copy is dangling, i.e. has no parent.
Overrides:fullCopy in class ASTNode<ASTNode>
Returns:
dangling copy of the subtree at this node
public void toString(java.lang.StringBuffer s)
Overrides:toString in class ASTNode<ASTNode>
Source
Declared in Java1.4Frontend/PrettyPrint.jadd at line 722
Aspect
PrettyPrint
public void typeCheck()
Overrides:typeCheck in class ASTNode<ASTNode>
Source
Declared in Java1.4Frontend/TypeCheck.jrag at line 368
Aspect
TypeCheck
public void exceptionTableEntries(CodeGeneration gen,
                                  TryStmt tryStmt)
Specified by:exceptionTableEntries in class CatchClause
Source
Declared in Java1.4Backend/CreateBCode.jrag at line 17
Aspect
CreateBCode
public void createBCode(CodeGeneration gen)
Overrides:createBCode in class ASTNode<ASTNode>
Source
Declared in Java1.4Backend/CreateBCode.jrag at line 1525
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 CatchClause
protected int numChildren()
Overrides:numChildren in class CatchClause
public boolean mayHaveRewrite()
Overrides:mayHaveRewrite in class CatchClause
Replaces the Parameter child.
Parameters:
node - The new node to replace the Parameter child.
Retrieves the Parameter child.
Returns:
The current node used as the Parameter child.
Retrieves the Parameter child.

This method does not invoke AST transformations.

Returns:
The current node used as the Parameter child.
public void setBlock(Block node)
Replaces the Block child.
Overrides:setBlock in class CatchClause
Parameters:
node - The new node to replace the Block child.
public Block getBlock()
Retrieves the Block child.
Overrides:getBlock in class CatchClause
Returns:
The current node used as the Block child.
Retrieves the Block child.

This method does not invoke AST transformations.

Overrides:getBlockNoTransform in class CatchClause
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 CatchClause
Source
Declared in Java1.4Frontend/LookupVariable.jrag at line 83
Overrides:Define_VariableScope_outerScope in class ASTNode<ASTNode>
Source
Declared in Java1.4Frontend/NameCheck.jrag at line 295
Overrides:Define_NameType_nameType in class ASTNode<ASTNode>
Source
Declared in Java1.4Frontend/SyntacticClassification.jrag at line 86
public boolean Define_boolean_reachable(ASTNode caller,
                                        ASTNode child)
Overrides:Define_boolean_reachable in class ASTNode<ASTNode>
Source
Declared in Java1.4Frontend/UnreachableStatements.jrag at line 122
public boolean Define_boolean_isMethodParameter(ASTNode caller,
                                                ASTNode child)
Overrides:Define_boolean_isMethodParameter in class ASTNode<ASTNode>
Source
Declared in Java1.4Frontend/VariableDeclaration.jrag at line 64
public boolean Define_boolean_isConstructorParameter(ASTNode caller,
                                                     ASTNode child)
Overrides:Define_boolean_isConstructorParameter in class ASTNode<ASTNode>
Source
Declared in Java1.4Frontend/VariableDeclaration.jrag at line 65
Overrides:Define_boolean_isExceptionHandlerParameter in class ASTNode<ASTNode>
Source
Declared in Java1.4Frontend/VariableDeclaration.jrag at line 66
public int Define_int_localNum(ASTNode caller,
                               ASTNode child)
Overrides:Define_int_localNum in class ASTNode<ASTNode>
Source
Declared in Java1.4Backend/LocalNum.jrag at line 120
public boolean Define_boolean_variableArityValid(ASTNode caller,
                                                 ASTNode child)
Overrides:Define_boolean_variableArityValid in class ASTNode<ASTNode>
Source
Declared in Java1.5Frontend/VariableArityParameters.jrag at line 23
public boolean Define_boolean_inhModifiedInScope(ASTNode caller,
                                                 ASTNode child,
                                                 Variable var)
Overrides:Define_boolean_inhModifiedInScope in class ASTNode<ASTNode>
Source
Declared in Java7Frontend/PreciseRethrow.jrag at line 52
public boolean Define_boolean_isCatchParam(ASTNode caller,
                                           ASTNode child)
Overrides:Define_boolean_isCatchParam in class ASTNode<ASTNode>
Source
Declared in Java7Frontend/PreciseRethrow.jrag at line 125
Overrides:rewriteTo in class CatchClause

Fields

protected java.util.Map parameterDeclaration_String_values

Inherited Members

Attributes inherited from AST.CatchClause

Attributes inherited from AST.ASTNode

Methods inherited from class AST.CatchClause

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.CatchClause

Fields inherited from AST.ASTNode

Fields inherited from beaver.Symbol

end
id
start
value