Example usage for Java org.eclipse.jdt.core.dom CatchClause fields, constructors, methods, implement or subclass
The text is from its open source code.
CatchClause(AST ast) Creates a new AST node for a catch clause owned by the given AST. |
void | accept(ASTVisitor visitor) Accepts the given visitor on a visit of the current node. |
AST | getAST() Returns this node's AST. |
Block | getBody() Returns the body of this catch clause. |
SingleVariableDeclaration | getException() Returns the exception variable declaration of this catch clause. |
int | getLength() Returns the length in characters of the original source file indicating where the source fragment corresponding to this node ends. |
ASTNode | getParent() Returns this node's parent node, or null if this is the root node. |
int | getStartPosition() Returns the character index into the original source file indicating where the source fragment corresponding to this node begins. |
void | setBody(Block body) Sets the body of this catch clause. |
void | setException(SingleVariableDeclaration exception) Sets the variable declaration of this catch clause. |
void | setSourceRange(int startPosition, int length) Sets the source range of the original source file where the source fragment corresponding to this node was found. |
String | toString() Returns a string representation of this node suitable for debugging purposes only. |