blob: 17c6227dd179576c8da6a81270a679e4ab64c7ca [file] [log] [blame]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.5.0_12) on Fri May 30 11:15:57 CDT 2008 -->
<TITLE>
Statement
</TITLE>
<META NAME="keywords" CONTENT="org.eclipse.wst.jsdt.core.dom.Statement class">
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../../../stylesheet.css" TITLE="Style">
<SCRIPT type="text/javascript">
function windowTitle()
{
parent.document.title="Statement";
}
</SCRIPT>
<NOSCRIPT>
</NOSCRIPT>
</HEAD>
<BODY BGCOLOR="white" onload="windowTitle();">
<!-- ========= START OF TOP NAVBAR ======= -->
<A NAME="navbar_top"><!-- --></A>
<A HREF="#skip-navbar_top" title="Skip navigation links"></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
<TR>
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_top_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
<TR ALIGN="center" VALIGN="top">
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/Statement.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
</TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>
<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
&nbsp;<A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/SingleVariableDeclaration.html" title="class in org.eclipse.wst.jsdt.core.dom"><B>PREV CLASS</B></A>&nbsp;
&nbsp;<A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/StringLiteral.html" title="class in org.eclipse.wst.jsdt.core.dom"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../../../../../index.html?org/eclipse/wst/jsdt/core/dom/Statement.html" target="_top"><B>FRAMES</B></A> &nbsp;
&nbsp;<A HREF="Statement.html" target="_top"><B>NO FRAMES</B></A> &nbsp;
&nbsp;<SCRIPT type="text/javascript">
<!--
if(window==top) {
document.writeln('<A HREF="../../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
}
//-->
</SCRIPT>
<NOSCRIPT>
<A HREF="../../../../../../allclasses-noframe.html"><B>All Classes</B></A>
</NOSCRIPT>
</FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#fields_inherited_from_class_org.eclipse.wst.jsdt.core.dom.ASTNode">FIELD</A>&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL:&nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_top"></A>
<!-- ========= END OF TOP NAVBAR ========= -->
<HR>
<!-- ======== START OF CLASS DATA ======== -->
<H2>
<FONT SIZE="-1">
org.eclipse.wst.jsdt.core.dom</FONT>
<BR>
Class Statement</H2>
<PRE>
java.lang.Object
<IMG SRC="../../../../../../resources/inherit.gif" ALT="extended by "><A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ASTNode.html" title="class in org.eclipse.wst.jsdt.core.dom">org.eclipse.wst.jsdt.core.dom.ASTNode</A>
<IMG SRC="../../../../../../resources/inherit.gif" ALT="extended by "><A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ProgramElement.html" title="class in org.eclipse.wst.jsdt.core.dom">org.eclipse.wst.jsdt.core.dom.ProgramElement</A>
<IMG SRC="../../../../../../resources/inherit.gif" ALT="extended by "><B>org.eclipse.wst.jsdt.core.dom.Statement</B>
</PRE>
<DL>
<DT><B>Direct Known Subclasses:</B> <DD><A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/AssertStatement.html" title="class in org.eclipse.wst.jsdt.core.dom">AssertStatement</A>, <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/Block.html" title="class in org.eclipse.wst.jsdt.core.dom">Block</A>, <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/BreakStatement.html" title="class in org.eclipse.wst.jsdt.core.dom">BreakStatement</A>, <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ConstructorInvocation.html" title="class in org.eclipse.wst.jsdt.core.dom">ConstructorInvocation</A>, <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ContinueStatement.html" title="class in org.eclipse.wst.jsdt.core.dom">ContinueStatement</A>, <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/DoStatement.html" title="class in org.eclipse.wst.jsdt.core.dom">DoStatement</A>, <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/EmptyStatement.html" title="class in org.eclipse.wst.jsdt.core.dom">EmptyStatement</A>, <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/EnhancedForStatement.html" title="class in org.eclipse.wst.jsdt.core.dom">EnhancedForStatement</A>, <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ExpressionStatement.html" title="class in org.eclipse.wst.jsdt.core.dom">ExpressionStatement</A>, <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ForInStatement.html" title="class in org.eclipse.wst.jsdt.core.dom">ForInStatement</A>, <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ForStatement.html" title="class in org.eclipse.wst.jsdt.core.dom">ForStatement</A>, <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/IfStatement.html" title="class in org.eclipse.wst.jsdt.core.dom">IfStatement</A>, <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/LabeledStatement.html" title="class in org.eclipse.wst.jsdt.core.dom">LabeledStatement</A>, <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ReturnStatement.html" title="class in org.eclipse.wst.jsdt.core.dom">ReturnStatement</A>, <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/SuperConstructorInvocation.html" title="class in org.eclipse.wst.jsdt.core.dom">SuperConstructorInvocation</A>, <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/SwitchCase.html" title="class in org.eclipse.wst.jsdt.core.dom">SwitchCase</A>, <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/SwitchStatement.html" title="class in org.eclipse.wst.jsdt.core.dom">SwitchStatement</A>, <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ThrowStatement.html" title="class in org.eclipse.wst.jsdt.core.dom">ThrowStatement</A>, <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/TryStatement.html" title="class in org.eclipse.wst.jsdt.core.dom">TryStatement</A>, <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/TypeDeclarationStatement.html" title="class in org.eclipse.wst.jsdt.core.dom">TypeDeclarationStatement</A>, <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/VariableDeclarationStatement.html" title="class in org.eclipse.wst.jsdt.core.dom">VariableDeclarationStatement</A>, <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/WhileStatement.html" title="class in org.eclipse.wst.jsdt.core.dom">WhileStatement</A>, <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/WithStatement.html" title="class in org.eclipse.wst.jsdt.core.dom">WithStatement</A></DD>
</DL>
<HR>
<DL>
<DT><PRE>public abstract class <B>Statement</B><DT>extends <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ProgramElement.html" title="class in org.eclipse.wst.jsdt.core.dom">ProgramElement</A></DL>
</PRE>
<P>
Abstract base class of AST nodes that represent statements.
There are many kinds of statements.
<p>
The grammar combines both Statement and BlockStatement.
For JLS2:
<pre>
Statement:
Block
IfStatement
ForStatement
WhileStatement
DoStatement
TryStatement
SwitchStatement
SynchronizedStatement
ReturnStatement
ThrowStatement
BreakStatement
ContinueStatement
EmptyStatement
ExpressionStatement
LabeledStatement
AssertStatement
VariableDeclarationStatement
TypeDeclarationStatement
ConstructorInvocation
SuperConstructorInvocation
</pre>
For JLS3, an enhanced for node type was added:
<pre>
Statement:
Block
IfStatement
ForStatement
EnhancedForStatement
WhileStatement
DoStatement
TryStatement
SwitchStatement
SynchronizedStatement
ReturnStatement
ThrowStatement
BreakStatement
ContinueStatement
EmptyStatement
ExpressionStatement
LabeledStatement
AssertStatement
VariableDeclarationStatement
TypeDeclarationStatement
ConstructorInvocation
SuperConstructorInvocation
</pre>
</p>
Provisional API: This class/interface is part of an interim API that is still under development and expected to
change significantly before reaching stability. It is being made available at this early stage to solicit feedback
from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken
(repeatedly) as the API evolves.
<P>
<P>
<HR>
<P>
<!-- =========== FIELD SUMMARY =========== -->
<A NAME="field_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
<B>Field Summary</B></FONT></TH>
</TR>
</TABLE>
&nbsp;<A NAME="fields_inherited_from_class_org.eclipse.wst.jsdt.core.dom.ASTNode"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left"><B>Fields inherited from class org.eclipse.wst.jsdt.core.dom.<A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ASTNode.html" title="class in org.eclipse.wst.jsdt.core.dom">ASTNode</A></B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ASTNode.html#ANONYMOUS_CLASS_DECLARATION">ANONYMOUS_CLASS_DECLARATION</A>, <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ASTNode.html#ARRAY_ACCESS">ARRAY_ACCESS</A>, <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ASTNode.html#ARRAY_CREATION">ARRAY_CREATION</A>, <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ASTNode.html#ARRAY_INITIALIZER">ARRAY_INITIALIZER</A>, <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ASTNode.html#ARRAY_TYPE">ARRAY_TYPE</A>, <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ASTNode.html#ASSERT_STATEMENT">ASSERT_STATEMENT</A>, <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ASTNode.html#ASSIGNMENT">ASSIGNMENT</A>, <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ASTNode.html#BLOCK">BLOCK</A>, <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ASTNode.html#BLOCK_COMMENT">BLOCK_COMMENT</A>, <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ASTNode.html#BOOLEAN_LITERAL">BOOLEAN_LITERAL</A>, <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ASTNode.html#BREAK_STATEMENT">BREAK_STATEMENT</A>, <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ASTNode.html#CAST_EXPRESSION">CAST_EXPRESSION</A>, <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ASTNode.html#CATCH_CLAUSE">CATCH_CLAUSE</A>, <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ASTNode.html#CHARACTER_LITERAL">CHARACTER_LITERAL</A>, <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ASTNode.html#CLASS_INSTANCE_CREATION">CLASS_INSTANCE_CREATION</A>, <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ASTNode.html#CONDITIONAL_EXPRESSION">CONDITIONAL_EXPRESSION</A>, <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ASTNode.html#CONSTRUCTOR_INVOCATION">CONSTRUCTOR_INVOCATION</A>, <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ASTNode.html#CONTINUE_STATEMENT">CONTINUE_STATEMENT</A>, <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ASTNode.html#DO_STATEMENT">DO_STATEMENT</A>, <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ASTNode.html#EMPTY_EXPRESSION">EMPTY_EXPRESSION</A>, <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ASTNode.html#EMPTY_STATEMENT">EMPTY_STATEMENT</A>, <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ASTNode.html#ENHANCED_FOR_STATEMENT">ENHANCED_FOR_STATEMENT</A>, <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ASTNode.html#EXPRESSION_STATEMENT">EXPRESSION_STATEMENT</A>, <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ASTNode.html#FIELD_ACCESS">FIELD_ACCESS</A>, <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ASTNode.html#FIELD_DECLARATION">FIELD_DECLARATION</A>, <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ASTNode.html#FOR_IN_STATEMENT">FOR_IN_STATEMENT</A>, <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ASTNode.html#FOR_STATEMENT">FOR_STATEMENT</A>, <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ASTNode.html#FUNCTION_DECLARATION">FUNCTION_DECLARATION</A>, <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ASTNode.html#FUNCTION_EXPRESSION">FUNCTION_EXPRESSION</A>, <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ASTNode.html#FUNCTION_INVOCATION">FUNCTION_INVOCATION</A>, <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ASTNode.html#FUNCTION_REF">FUNCTION_REF</A>, <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ASTNode.html#FUNCTION_REF_PARAMETER">FUNCTION_REF_PARAMETER</A>, <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ASTNode.html#IF_STATEMENT">IF_STATEMENT</A>, <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ASTNode.html#IMPORT_DECLARATION">IMPORT_DECLARATION</A>, <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ASTNode.html#INFERRED_TYPE">INFERRED_TYPE</A>, <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ASTNode.html#INFIX_EXPRESSION">INFIX_EXPRESSION</A>, <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ASTNode.html#INITIALIZER">INITIALIZER</A>, <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ASTNode.html#INSTANCEOF_EXPRESSION">INSTANCEOF_EXPRESSION</A>, <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ASTNode.html#JAVASCRIPT_UNIT">JAVASCRIPT_UNIT</A>, <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ASTNode.html#JSDOC">JSDOC</A>, <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ASTNode.html#LABELED_STATEMENT">LABELED_STATEMENT</A>, <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ASTNode.html#LINE_COMMENT">LINE_COMMENT</A>, <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ASTNode.html#LIST_EXPRESSION">LIST_EXPRESSION</A>, <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ASTNode.html#MALFORMED">MALFORMED</A>, <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ASTNode.html#MEMBER_REF">MEMBER_REF</A>, <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ASTNode.html#MODIFIER">MODIFIER</A>, <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ASTNode.html#NULL_LITERAL">NULL_LITERAL</A>, <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ASTNode.html#NUMBER_LITERAL">NUMBER_LITERAL</A>, <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ASTNode.html#OBJECT_LITERAL">OBJECT_LITERAL</A>, <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ASTNode.html#OBJECT_LITERAL_FIELD">OBJECT_LITERAL_FIELD</A>, <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ASTNode.html#ORIGINAL">ORIGINAL</A>, <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ASTNode.html#PACKAGE_DECLARATION">PACKAGE_DECLARATION</A>, <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ASTNode.html#PARAMETERIZED_TYPE">PARAMETERIZED_TYPE</A>, <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ASTNode.html#PARENTHESIZED_EXPRESSION">PARENTHESIZED_EXPRESSION</A>, <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ASTNode.html#POSTFIX_EXPRESSION">POSTFIX_EXPRESSION</A>, <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ASTNode.html#PREFIX_EXPRESSION">PREFIX_EXPRESSION</A>, <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ASTNode.html#PRIMITIVE_TYPE">PRIMITIVE_TYPE</A>, <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ASTNode.html#PROTECT">PROTECT</A>, <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ASTNode.html#QUALIFIED_NAME">QUALIFIED_NAME</A>, <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ASTNode.html#QUALIFIED_TYPE">QUALIFIED_TYPE</A>, <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ASTNode.html#RECOVERED">RECOVERED</A>, <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ASTNode.html#REGULAR_EXPRESSION_LITERAL">REGULAR_EXPRESSION_LITERAL</A>, <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ASTNode.html#RETURN_STATEMENT">RETURN_STATEMENT</A>, <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ASTNode.html#SIMPLE_NAME">SIMPLE_NAME</A>, <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ASTNode.html#SIMPLE_TYPE">SIMPLE_TYPE</A>, <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ASTNode.html#SINGLE_VARIABLE_DECLARATION">SINGLE_VARIABLE_DECLARATION</A>, <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ASTNode.html#STRING_LITERAL">STRING_LITERAL</A>, <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ASTNode.html#SUPER_CONSTRUCTOR_INVOCATION">SUPER_CONSTRUCTOR_INVOCATION</A>, <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ASTNode.html#SUPER_FIELD_ACCESS">SUPER_FIELD_ACCESS</A>, <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ASTNode.html#SUPER_METHOD_INVOCATION">SUPER_METHOD_INVOCATION</A>, <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ASTNode.html#SWITCH_CASE">SWITCH_CASE</A>, <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ASTNode.html#SWITCH_STATEMENT">SWITCH_STATEMENT</A>, <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ASTNode.html#TAG_ELEMENT">TAG_ELEMENT</A>, <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ASTNode.html#TEXT_ELEMENT">TEXT_ELEMENT</A>, <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ASTNode.html#THIS_EXPRESSION">THIS_EXPRESSION</A>, <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ASTNode.html#THROW_STATEMENT">THROW_STATEMENT</A>, <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ASTNode.html#TRY_STATEMENT">TRY_STATEMENT</A>, <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ASTNode.html#TYPE_DECLARATION">TYPE_DECLARATION</A>, <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ASTNode.html#TYPE_DECLARATION_STATEMENT">TYPE_DECLARATION_STATEMENT</A>, <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ASTNode.html#TYPE_LITERAL">TYPE_LITERAL</A>, <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ASTNode.html#TYPE_PARAMETER">TYPE_PARAMETER</A>, <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ASTNode.html#UNDEFINED_LITERAL">UNDEFINED_LITERAL</A>, <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ASTNode.html#VARIABLE_DECLARATION_EXPRESSION">VARIABLE_DECLARATION_EXPRESSION</A>, <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ASTNode.html#VARIABLE_DECLARATION_FRAGMENT">VARIABLE_DECLARATION_FRAGMENT</A>, <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ASTNode.html#VARIABLE_DECLARATION_STATEMENT">VARIABLE_DECLARATION_STATEMENT</A>, <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ASTNode.html#WHILE_STATEMENT">WHILE_STATEMENT</A>, <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ASTNode.html#WILDCARD_TYPE">WILDCARD_TYPE</A>, <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ASTNode.html#WITH_STATEMENT">WITH_STATEMENT</A></CODE></TD>
</TR>
</TABLE>
&nbsp;
<!-- ========== METHOD SUMMARY =========== -->
<A NAME="method_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
<B>Method Summary</B></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;java.lang.String</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/Statement.html#getLeadingComment()">getLeadingComment</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;<I>This feature was removed in the 2.1 release because it was
only a partial, and inadequate, solution to the issue of associating
comments with statements. Furthermore, AST.parseCompilationUnit did not
associate leading comments, making this moot. Clients that need to access
comments preceding a statement should either consult the compilation
unit's <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/JavaScriptUnit.html#getCommentList()">comment table</A>
or use a scanner to reanalyze the source text immediately preceding
the statement's source range.</I></TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/Statement.html#setLeadingComment(java.lang.String)">setLeadingComment</A></B>(java.lang.String&nbsp;comment)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;<I>This feature was removed in the 2.1 release because it was
only a partial, and inadequate, solution to the issue of associating
comments with statements.</I></TD>
</TR>
</TABLE>
&nbsp;<A NAME="methods_inherited_from_class_org.eclipse.wst.jsdt.core.dom.ASTNode"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left"><B>Methods inherited from class org.eclipse.wst.jsdt.core.dom.<A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ASTNode.html" title="class in org.eclipse.wst.jsdt.core.dom">ASTNode</A></B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ASTNode.html#accept(org.eclipse.wst.jsdt.core.dom.ASTVisitor)">accept</A>, <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ASTNode.html#copySubtree(org.eclipse.wst.jsdt.core.dom.AST, org.eclipse.wst.jsdt.core.dom.ASTNode)">copySubtree</A>, <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ASTNode.html#copySubtrees(org.eclipse.wst.jsdt.core.dom.AST, java.util.List)">copySubtrees</A>, <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ASTNode.html#delete()">delete</A>, <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ASTNode.html#equals(java.lang.Object)">equals</A>, <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ASTNode.html#getAST()">getAST</A>, <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ASTNode.html#getFlags()">getFlags</A>, <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ASTNode.html#getLength()">getLength</A>, <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ASTNode.html#getLocationInParent()">getLocationInParent</A>, <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ASTNode.html#getNodeType()">getNodeType</A>, <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ASTNode.html#getParent()">getParent</A>, <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ASTNode.html#getProperty(java.lang.String)">getProperty</A>, <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ASTNode.html#getRoot()">getRoot</A>, <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ASTNode.html#getStartPosition()">getStartPosition</A>, <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ASTNode.html#getStructuralProperty(org.eclipse.wst.jsdt.core.dom.StructuralPropertyDescriptor)">getStructuralProperty</A>, <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ASTNode.html#hashCode()">hashCode</A>, <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ASTNode.html#nodeClassForType(int)">nodeClassForType</A>, <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ASTNode.html#properties()">properties</A>, <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ASTNode.html#setFlags(int)">setFlags</A>, <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ASTNode.html#setProperty(java.lang.String, java.lang.Object)">setProperty</A>, <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ASTNode.html#setSourceRange(int, int)">setSourceRange</A>, <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ASTNode.html#setStructuralProperty(org.eclipse.wst.jsdt.core.dom.StructuralPropertyDescriptor, java.lang.Object)">setStructuralProperty</A>, <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ASTNode.html#structuralPropertiesForType()">structuralPropertiesForType</A>, <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ASTNode.html#subtreeBytes()">subtreeBytes</A>, <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ASTNode.html#subtreeMatch(org.eclipse.wst.jsdt.core.dom.ASTMatcher, java.lang.Object)">subtreeMatch</A>, <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ASTNode.html#toString()">toString</A></CODE></TD>
</TR>
</TABLE>
&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE>getClass, notify, notifyAll, wait, wait, wait</CODE></TD>
</TR>
</TABLE>
&nbsp;
<P>
<!-- ============ METHOD DETAIL ========== -->
<A NAME="method_detail"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
<B>Method Detail</B></FONT></TH>
</TR>
</TABLE>
<A NAME="getLeadingComment()"><!-- --></A><H3>
getLeadingComment</H3>
<PRE>
public java.lang.String <B>getLeadingComment</B>()</PRE>
<DL>
<DD><B>Deprecated.</B>&nbsp;<I>This feature was removed in the 2.1 release because it was
only a partial, and inadequate, solution to the issue of associating
comments with statements. Furthermore, AST.parseCompilationUnit did not
associate leading comments, making this moot. Clients that need to access
comments preceding a statement should either consult the compilation
unit's <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/JavaScriptUnit.html#getCommentList()">comment table</A>
or use a scanner to reanalyze the source text immediately preceding
the statement's source range.</I>
<P>
<DD>Returns the leading comment string, including the starting
and ending comment delimiters, and any embedded line breaks.
<p>
A leading comment is a comment that appears before the statement.
It may be either a traditional comment or an end-of-line comment.
Traditional comments must begin with "/&#42;, may contain line breaks,
and must end with "&#42;/. End-of-line comments must begin with "//",
must end with a line delimiter (as per JLS 3.7), and must not contain
line breaks.
</p>
<P>
<DD><DL>
<DT><B>Returns:</B><DD>the comment string, or <code>null</code> if none</DL>
</DD>
</DL>
<HR>
<A NAME="setLeadingComment(java.lang.String)"><!-- --></A><H3>
setLeadingComment</H3>
<PRE>
public void <B>setLeadingComment</B>(java.lang.String&nbsp;comment)</PRE>
<DL>
<DD><B>Deprecated.</B>&nbsp;<I>This feature was removed in the 2.1 release because it was
only a partial, and inadequate, solution to the issue of associating
comments with statements.</I>
<P>
<DD>Sets or clears the leading comment string. The comment
string must include the starting and ending comment delimiters,
and any embedded linebreaks.
<p>
A leading comment is a comment that appears before the statement.
It may be either a traditional comment or an end-of-line comment.
Traditional comments must begin with "/&#42;, may contain line breaks,
and must end with "&#42;/. End-of-line comments must begin with "//"
(as per JLS 3.7), and must not contain line breaks.
</p>
<p>
Examples:
<code>
<pre>
setLeadingComment("/&#42; traditional comment &#42;/"); // correct
setLeadingComment("missing comment delimiters"); // wrong
setLeadingComment("/&#42; unterminated traditional comment "); // wrong
setLeadingComment("/&#42; broken\n traditional comment &#42;/"); // correct
setLeadingComment("// end-of-line comment\n"); // correct
setLeadingComment("// end-of-line comment without line terminator"); // correct
setLeadingComment("// broken\n end-of-line comment\n"); // wrong
</pre>
</code>
</p>
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>comment</CODE> - the comment string, or <code>null</code> if none
<DT><B>Throws:</B>
<DD><CODE>java.lang.IllegalArgumentException</CODE> - if the comment string is invalid</DL>
</DD>
</DL>
<!-- ========= END OF CLASS DATA ========= -->
<HR>
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<A NAME="navbar_bottom"><!-- --></A>
<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
<TR>
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_bottom_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
<TR ALIGN="center" VALIGN="top">
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/Statement.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
</TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>
<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
&nbsp;<A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/SingleVariableDeclaration.html" title="class in org.eclipse.wst.jsdt.core.dom"><B>PREV CLASS</B></A>&nbsp;
&nbsp;<A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/StringLiteral.html" title="class in org.eclipse.wst.jsdt.core.dom"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../../../../../index.html?org/eclipse/wst/jsdt/core/dom/Statement.html" target="_top"><B>FRAMES</B></A> &nbsp;
&nbsp;<A HREF="Statement.html" target="_top"><B>NO FRAMES</B></A> &nbsp;
&nbsp;<SCRIPT type="text/javascript">
<!--
if(window==top) {
document.writeln('<A HREF="../../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
}
//-->
</SCRIPT>
<NOSCRIPT>
<A HREF="../../../../../../allclasses-noframe.html"><B>All Classes</B></A>
</NOSCRIPT>
</FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#fields_inherited_from_class_org.eclipse.wst.jsdt.core.dom.ASTNode">FIELD</A>&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL:&nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_bottom"></A>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
<HR>
</BODY>
</HTML>