Extension SDK 10.1.2


oracle.jdeveloper.jot
Interface JotThrow

All Superinterfaces:
JotBlockElement, JotCodeElement, JotElement, JotStatement

public interface JotThrow
extends JotStatement

The JotThrow interface represents a throw statement. The statement is of the form:

   throw ex;
   throw new RuntimeException();
 
Since:
5.0
See Also:
"Section 14.17 of the Java Language Specification Second Edition"

Field Summary

Fields inherited from interface oracle.jdeveloper.jot.JotStatement
BLOCK_STATEMENT, BREAK_STATEMENT, CASE_CLAUSE, CONTINUE_STATEMENT, DO_STATEMENT, ELSE_CLAUSE, EMPTY_STATEMENT, EXPRESSION_STATEMENT, FOR_STATEMENT, IF_STATEMENT, RETURN_STATEMENT, SWITCH_STATEMENT, SYNCHRONIZED_STATEMENT, THROW_STATEMENT, TRY_STATEMENT, WHILE_STATEMENT

Fields inherited from interface oracle.jdeveloper.jot.JotBlockElement
LOCAL_CLASS_TYPE, STATEMENT_TYPE, VARIABLE_DECLARATION_TYPE

Method Summary
JotExpression getExpression()
Retrieves the expression associated with this statement.
void setExpression(java.lang.String exp)
Sets the expression associated with this statement.

Methods inherited from interface oracle.jdeveloper.jot.JotStatement
addLabel, getAsBlock, getAsBreak, getAsCase, getAsContinue, getAsDo, getAsExpressionStatement, getAsFor, getAsIf, getAsReturn, getAsSwitch, getAsSynchronized, getAsThrow, getAsTry, getAsWhile, getLabels, getStatementText, getStatementType, removeLabel

Methods inherited from interface oracle.jdeveloper.jot.JotBlockElement
getAsLocalClass, getAsStatement, getAsVariableDeclaration, getElementType

Methods inherited from interface oracle.jdeveloper.jot.JotCodeElement
addPrecedingComment, childrenContainErrors, delete, getContainingJotFile, getLeftWhitespace, getLength, getRightWhitespace, isInError, isSource, setLeftWhitespace, setRightWhitespace

Methods inherited from interface oracle.jdeveloper.jot.JotElement
getChildren, getContainedElements, getElementName, getEndOffset, getID, getJotWorkArea, getParent, getStartOffset, isExistent, isReadOnly, isStructureKnown, setParent

Method Detail

getExpression

public JotExpression getExpression()
                            throws JotInvalidElementException
Retrieves the expression associated with this statement.
Throws:
JotInvalidElementException

setExpression

public void setExpression(java.lang.String exp)
                   throws JotInvalidElementException
Sets the expression associated with this statement. The existing expression is removed.
Parameters:
exp - the new expressions string.
Throws:
JotInvalidElementException

Extension SDK


Copyright © 1997, 2004, Oracle. All rights reserved.