Java org.eclipse.jdt.core.dom TryStatement fields, constructors, methods, implement or subclass

Example usage for Java org.eclipse.jdt.core.dom TryStatement fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.eclipse.jdt.core.dom TryStatement.

The text is from its open source code.

Field

ChildListPropertyDescriptorRESOURCES_PROPERTY
The "resources" structural property of this node type (element type: VariableDeclarationExpression ) (added in JLS4 API).
ChildPropertyDescriptorBODY_PROPERTY
The "body" structural property of this node type (child type: Block ).
ChildListPropertyDescriptorCATCH_CLAUSES_PROPERTY
The "catchClauses" structural property of this node type (element type: CatchClause ).
ASTNode.NodeListresources
The resource expressions (element type: Expression ).
ASTNode.NodeListcatchClauses
The catch clauses (element type: CatchClause ).

Constructor

TryStatement(AST ast)
Creates a new AST node for a try statement owned by the given AST.

Method

voidaccept(ASTVisitor visitor)
Accepts the given visitor on a visit of the current node.
voiddelete()
Removes this node from its parent.
ASTgetAST()
Returns this node's AST.
BlockgetBody()
Returns the body of this try statement.
BlockgetFinally()
Returns the finally block of this try statement, or null if this try statement has no finally block.
intgetFlags()
Returns the flags associated with this node.
intgetLength()
Returns the length in characters of the original source file indicating where the source fragment corresponding to this node ends.
ASTNodegetParent()
Returns this node's parent node, or null if this is the root node.
intgetStartPosition()
Returns the character index into the original source file indicating where the source fragment corresponding to this node begins.
voidsetBody(Block body)
Sets the body of this try statement.
voidsetFinally(Block block)
Sets or clears the finally block of this try statement.
voidsetFlags(int flags)
Sets the flags associated with this node to the given value.
voidsetSourceRange(int startPosition, int length)
Sets the source range of the original source file where the source fragment corresponding to this node was found.
StringtoString()
Returns a string representation of this node suitable for debugging purposes only.