| <!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:56 CDT 2008 --> |
| <TITLE> |
| JavaScriptUnit |
| </TITLE> |
| |
| <META NAME="keywords" CONTENT="org.eclipse.wst.jsdt.core.dom.JavaScriptUnit class"> |
| |
| <LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../../../stylesheet.css" TITLE="Style"> |
| |
| <SCRIPT type="text/javascript"> |
| function windowTitle() |
| { |
| parent.document.title="JavaScriptUnit"; |
| } |
| </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> </TD> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> |
| <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/JavaScriptUnit.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> |
| </TR> |
| </TABLE> |
| </TD> |
| <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> |
| </EM> |
| </TD> |
| </TR> |
| |
| <TR> |
| <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
| <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/IVariableBinding.html" title="interface in org.eclipse.wst.jsdt.core.dom"><B>PREV CLASS</B></A> |
| <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/JSdoc.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/JavaScriptUnit.html" target="_top"><B>FRAMES</B></A> |
| <A HREF="JavaScriptUnit.html" target="_top"><B>NO FRAMES</B></A> |
| <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: NESTED | <A HREF="#field_summary">FIELD</A> | CONSTR | <A HREF="#method_summary">METHOD</A></FONT></TD> |
| <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
| DETAIL: <A HREF="#field_detail">FIELD</A> | CONSTR | <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 JavaScriptUnit</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 "><B>org.eclipse.wst.jsdt.core.dom.JavaScriptUnit</B> |
| </PRE> |
| <HR> |
| <DL> |
| <DT><PRE>public class <B>JavaScriptUnit</B><DT>extends <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ASTNode.html" title="class in org.eclipse.wst.jsdt.core.dom">ASTNode</A></DL> |
| </PRE> |
| |
| <P> |
| JavaScript javaScript unit AST node type. This is the type of the root of an AST. |
| <p> |
| The source range for this type of node is ordinarily the entire source file, |
| including leading and trailing whitespace and comments. |
| </p> |
| For JLS2: |
| <pre> |
| JavaScriptUnit: |
| [ PackageDeclaration ] |
| { ImportDeclaration } |
| { TypeDeclaration | <b>;</b> } |
| </pre> |
| For JLS3, the kinds of type declarations |
| grew to include enum and annotation type declarations: |
| <pre> |
| JavaScriptUnit: |
| [ PackageDeclaration ] |
| { ImportDeclaration } |
| { TypeDeclaration | EnumDeclaration | AnnotationTypeDeclaration | <b>;</b> } |
| </pre> |
| |
| 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> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>static <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ChildListPropertyDescriptor.html" title="class in org.eclipse.wst.jsdt.core.dom">ChildListPropertyDescriptor</A></CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/JavaScriptUnit.html#IMPORTS_PROPERTY">IMPORTS_PROPERTY</A></B></CODE> |
| |
| <BR> |
| The "imports" structural property of this node type.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>static <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ChildPropertyDescriptor.html" title="class in org.eclipse.wst.jsdt.core.dom">ChildPropertyDescriptor</A></CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/JavaScriptUnit.html#PACKAGE_PROPERTY">PACKAGE_PROPERTY</A></B></CODE> |
| |
| <BR> |
| The "package" structural property of this node type.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>static <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ChildListPropertyDescriptor.html" title="class in org.eclipse.wst.jsdt.core.dom">ChildListPropertyDescriptor</A></CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/JavaScriptUnit.html#STATEMENTS_PROPERTY">STATEMENTS_PROPERTY</A></B></CODE> |
| |
| <BR> |
| </TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>static <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ChildListPropertyDescriptor.html" title="class in org.eclipse.wst.jsdt.core.dom">ChildListPropertyDescriptor</A></CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/JavaScriptUnit.html#TYPES_PROPERTY">TYPES_PROPERTY</A></B></CODE> |
| |
| <BR> |
| The "types" structural property of this node type.</TD> |
| </TR> |
| </TABLE> |
| <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> |
| |
| <!-- ========== 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> <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ASTNode.html" title="class in org.eclipse.wst.jsdt.core.dom">ASTNode</A></CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/JavaScriptUnit.html#findDeclaringNode(org.eclipse.wst.jsdt.core.dom.IBinding)">findDeclaringNode</A></B>(<A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/IBinding.html" title="interface in org.eclipse.wst.jsdt.core.dom">IBinding</A> binding)</CODE> |
| |
| <BR> |
| Finds the corresponding AST node in the given javaScript unit from |
| which the given binding originated.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ASTNode.html" title="class in org.eclipse.wst.jsdt.core.dom">ASTNode</A></CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/JavaScriptUnit.html#findDeclaringNode(java.lang.String)">findDeclaringNode</A></B>(java.lang.String key)</CODE> |
| |
| <BR> |
| Finds the corresponding AST node in the given javaScript unit from |
| which the binding with the given key originated.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> int</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/JavaScriptUnit.html#firstLeadingCommentIndex(org.eclipse.wst.jsdt.core.dom.ASTNode)">firstLeadingCommentIndex</A></B>(<A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ASTNode.html" title="class in org.eclipse.wst.jsdt.core.dom">ASTNode</A> node)</CODE> |
| |
| <BR> |
| Return the index in the whole comments list <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/JavaScriptUnit.html#getCommentList()"><CODE>getCommentList()</CODE></A> |
| of the first leading comments associated with the given node.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> int</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/JavaScriptUnit.html#getColumnNumber(int)">getColumnNumber</A></B>(int position)</CODE> |
| |
| <BR> |
| Returns the column number corresponding to the given source character |
| position in the original source string.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> java.util.List</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/JavaScriptUnit.html#getCommentList()">getCommentList</A></B>()</CODE> |
| |
| <BR> |
| Returns a list of the comments encountered while parsing |
| this javaScript unit.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> int</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/JavaScriptUnit.html#getExtendedLength(org.eclipse.wst.jsdt.core.dom.ASTNode)">getExtendedLength</A></B>(<A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ASTNode.html" title="class in org.eclipse.wst.jsdt.core.dom">ASTNode</A> node)</CODE> |
| |
| <BR> |
| Returns the extended source length of the given node.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> int</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/JavaScriptUnit.html#getExtendedStartPosition(org.eclipse.wst.jsdt.core.dom.ASTNode)">getExtendedStartPosition</A></B>(<A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ASTNode.html" title="class in org.eclipse.wst.jsdt.core.dom">ASTNode</A> node)</CODE> |
| |
| <BR> |
| Returns the extended start position of the given node.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> <A HREF="../../../../../../org/eclipse/wst/jsdt/core/IJavaScriptElement.html" title="interface in org.eclipse.wst.jsdt.core">IJavaScriptElement</A></CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/JavaScriptUnit.html#getJavaElement()">getJavaElement</A></B>()</CODE> |
| |
| <BR> |
| The JavaScript element (an <code>org.eclipse.wst.jsdt.core.IJavaScriptUnit</code> or an <code>org.eclipse.wst.jsdt.core.IClassFile</code>) |
| this javaScript unit was created from, or <code>null</code> if it was not created from a JavaScript element.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> int</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/JavaScriptUnit.html#getLineNumber(int)">getLineNumber</A></B>(int position)</CODE> |
| |
| <BR> |
| Returns the line number corresponding to the given source character |
| position in the original source string.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/Message.html" title="class in org.eclipse.wst.jsdt.core.dom">Message</A>[]</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/JavaScriptUnit.html#getMessages()">getMessages</A></B>()</CODE> |
| |
| <BR> |
| Returns the list of messages reported by the validator during the parsing |
| or the type checking of this javaScript unit.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/PackageDeclaration.html" title="class in org.eclipse.wst.jsdt.core.dom">PackageDeclaration</A></CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/JavaScriptUnit.html#getPackage()">getPackage</A></B>()</CODE> |
| |
| <BR> |
| Returns the node for the package declaration of this compilation |
| unit, or <code>null</code> if this javaScript unit is in the |
| default package.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> int</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/JavaScriptUnit.html#getPosition(int, int)">getPosition</A></B>(int line, |
| int column)</CODE> |
| |
| <BR> |
| Given a line number and column number, returns the corresponding |
| position in the original source string.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> <A HREF="../../../../../../org/eclipse/wst/jsdt/core/compiler/IProblem.html" title="interface in org.eclipse.wst.jsdt.core.compiler">IProblem</A>[]</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/JavaScriptUnit.html#getProblems()">getProblems</A></B>()</CODE> |
| |
| <BR> |
| Returns the list of detailed problem reports noted by the compiler |
| during the parsing or the type checking of this javaScript unit.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> <A HREF="../../../../../../org/eclipse/wst/jsdt/core/ITypeRoot.html" title="interface in org.eclipse.wst.jsdt.core">ITypeRoot</A></CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/JavaScriptUnit.html#getTypeRoot()">getTypeRoot</A></B>()</CODE> |
| |
| <BR> |
| The JavaScript type root (a <A HREF="../../../../../../org/eclipse/wst/jsdt/core/IJavaScriptUnit.html" title="interface in org.eclipse.wst.jsdt.core"><CODE>javaScript unit</CODE></A> or a <A HREF="../../../../../../org/eclipse/wst/jsdt/core/IClassFile.html" title="interface in org.eclipse.wst.jsdt.core"><CODE>class file</CODE></A>) |
| this javaScript unit was created from, or <code>null</code> if it was not created from a JavaScript type root.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> java.util.List</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/JavaScriptUnit.html#imports()">imports</A></B>()</CODE> |
| |
| <BR> |
| Returns the live list of nodes for the import declarations of this |
| javaScript unit, in order of appearance.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> int</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/JavaScriptUnit.html#lastTrailingCommentIndex(org.eclipse.wst.jsdt.core.dom.ASTNode)">lastTrailingCommentIndex</A></B>(<A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ASTNode.html" title="class in org.eclipse.wst.jsdt.core.dom">ASTNode</A> node)</CODE> |
| |
| <BR> |
| Return the index in the whole comments list <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/JavaScriptUnit.html#getCommentList()"><CODE>getCommentList()</CODE></A> |
| of the last trailing comments associated with the given node.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE>static java.util.List</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/JavaScriptUnit.html#propertyDescriptors(int)">propertyDescriptors</A></B>(int apiLevel)</CODE> |
| |
| <BR> |
| Returns a list of structural property descriptors for this node type.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> void</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/JavaScriptUnit.html#recordModifications()">recordModifications</A></B>()</CODE> |
| |
| <BR> |
| Enables the recording of changes to this compilation |
| unit and its descendents.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ITypeBinding.html" title="interface in org.eclipse.wst.jsdt.core.dom">ITypeBinding</A></CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/JavaScriptUnit.html#resolveBinding()">resolveBinding</A></B>()</CODE> |
| |
| <BR> |
| </TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> TextEdit</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/JavaScriptUnit.html#rewrite(IDocument, java.util.Map)">rewrite</A></B>(IDocument document, |
| java.util.Map options)</CODE> |
| |
| <BR> |
| Converts all modifications recorded for this compilation |
| unit into an object representing the corresponding text |
| edits to the given document containing the original source |
| code for this javaScript unit.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> void</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/JavaScriptUnit.html#setPackage(org.eclipse.wst.jsdt.core.dom.PackageDeclaration)">setPackage</A></B>(<A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/PackageDeclaration.html" title="class in org.eclipse.wst.jsdt.core.dom">PackageDeclaration</A> pkgDecl)</CODE> |
| |
| <BR> |
| Sets or clears the package declaration of this javaScript unit |
| node to the given package declaration node.</TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> java.util.List</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/JavaScriptUnit.html#statements()">statements</A></B>()</CODE> |
| |
| <BR> |
| </TD> |
| </TR> |
| <TR BGCOLOR="white" CLASS="TableRowColor"> |
| <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
| <CODE> java.util.List</CODE></FONT></TD> |
| <TD><CODE><B><A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/JavaScriptUnit.html#types()">types</A></B>()</CODE> |
| |
| <BR> |
| Returns the live list of nodes for the top-level type declarations of this |
| javaScript unit, in order of appearance.</TD> |
| </TR> |
| </TABLE> |
| <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> |
| <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> |
| |
| <P> |
| |
| <!-- ============ FIELD DETAIL =========== --> |
| |
| <A NAME="field_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>Field Detail</B></FONT></TH> |
| </TR> |
| </TABLE> |
| |
| <A NAME="IMPORTS_PROPERTY"><!-- --></A><H3> |
| IMPORTS_PROPERTY</H3> |
| <PRE> |
| public static final <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ChildListPropertyDescriptor.html" title="class in org.eclipse.wst.jsdt.core.dom">ChildListPropertyDescriptor</A> <B>IMPORTS_PROPERTY</B></PRE> |
| <DL> |
| <DD>The "imports" structural property of this node type. |
| <P> |
| <DL> |
| </DL> |
| </DL> |
| <HR> |
| |
| <A NAME="PACKAGE_PROPERTY"><!-- --></A><H3> |
| PACKAGE_PROPERTY</H3> |
| <PRE> |
| public static final <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ChildPropertyDescriptor.html" title="class in org.eclipse.wst.jsdt.core.dom">ChildPropertyDescriptor</A> <B>PACKAGE_PROPERTY</B></PRE> |
| <DL> |
| <DD>The "package" structural property of this node type. |
| <P> |
| <DL> |
| </DL> |
| </DL> |
| <HR> |
| |
| <A NAME="TYPES_PROPERTY"><!-- --></A><H3> |
| TYPES_PROPERTY</H3> |
| <PRE> |
| public static final <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ChildListPropertyDescriptor.html" title="class in org.eclipse.wst.jsdt.core.dom">ChildListPropertyDescriptor</A> <B>TYPES_PROPERTY</B></PRE> |
| <DL> |
| <DD>The "types" structural property of this node type. |
| <P> |
| <DL> |
| </DL> |
| </DL> |
| <HR> |
| |
| <A NAME="STATEMENTS_PROPERTY"><!-- --></A><H3> |
| STATEMENTS_PROPERTY</H3> |
| <PRE> |
| public static final <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ChildListPropertyDescriptor.html" title="class in org.eclipse.wst.jsdt.core.dom">ChildListPropertyDescriptor</A> <B>STATEMENTS_PROPERTY</B></PRE> |
| <DL> |
| <DL> |
| </DL> |
| </DL> |
| |
| <!-- ============ 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="propertyDescriptors(int)"><!-- --></A><H3> |
| propertyDescriptors</H3> |
| <PRE> |
| public static java.util.List <B>propertyDescriptors</B>(int apiLevel)</PRE> |
| <DL> |
| <DD>Returns a list of structural property descriptors for this node type. |
| Clients must not modify the result. |
| <P> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>apiLevel</CODE> - the API level; one of the |
| <code>AST.JLS*</code> constants |
| <DT><B>Returns:</B><DD>a list of property descriptors (element type: |
| <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/StructuralPropertyDescriptor.html" title="class in org.eclipse.wst.jsdt.core.dom"><CODE>StructuralPropertyDescriptor</CODE></A>)</DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="getColumnNumber(int)"><!-- --></A><H3> |
| getColumnNumber</H3> |
| <PRE> |
| public int <B>getColumnNumber</B>(int position)</PRE> |
| <DL> |
| <DD>Returns the column number corresponding to the given source character |
| position in the original source string. Column number are zero-based. |
| Return <code>-1</code> if it is beyond the valid range or <code>-2</code> |
| if the column number information is unknown. |
| <P> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>position</CODE> - a 0-based character position, possibly |
| negative or out of range |
| <DT><B>Returns:</B><DD>the 0-based column number, or <code>-1</code> if the character |
| position does not correspond to a source line in the original |
| source file or <code>-2</code> if column number information is unknown for this |
| javaScript unit<DT><B>See Also:</B><DD><A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ASTParser.html" title="class in org.eclipse.wst.jsdt.core.dom"><CODE>ASTParser</CODE></A></DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="findDeclaringNode(org.eclipse.wst.jsdt.core.dom.IBinding)"><!-- --></A><H3> |
| findDeclaringNode</H3> |
| <PRE> |
| public <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ASTNode.html" title="class in org.eclipse.wst.jsdt.core.dom">ASTNode</A> <B>findDeclaringNode</B>(<A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/IBinding.html" title="interface in org.eclipse.wst.jsdt.core.dom">IBinding</A> binding)</PRE> |
| <DL> |
| <DD>Finds the corresponding AST node in the given javaScript unit from |
| which the given binding originated. Returns <code>null</code> if the |
| binding does not correspond to any node in this javaScript unit. |
| This method always returns <code>null</code> if bindings were not requested |
| when this AST was built. |
| <p> |
| The following table indicates the expected node type for the various |
| different kinds of bindings: |
| <ul> |
| <li>package - a <code>PackageDeclaration</code></li> |
| <li>class or interface - a <code>TypeDeclaration</code> or a |
| <code>AnonymousClassDeclaration</code> (for anonymous classes)</li> |
| <li>primitive type - none</li> |
| <li>array type - none</li> |
| <li>field - a <code>VariableDeclarationFragment</code> in a |
| <code>FieldDeclaration</code> </li> |
| <li>local variable - a <code>SingleVariableDeclaration</code>, or |
| a <code>VariableDeclarationFragment</code> in a |
| <code>VariableDeclarationStatement</code> or |
| <code>VariableDeclarationExpression</code></li> |
| <li>method - a <code>FunctionDeclaration</code> </li> |
| <li>constructor - a <code>FunctionDeclaration</code> </li> |
| <li>annotation type - an <code>AnnotationTypeDeclaration</code></li> |
| <li>annotation type member - an <code>AnnotationTypeMemberDeclaration</code></li> |
| <li>enum type - an <code>EnumDeclaration</code></li> |
| <li>enum constant - an <code>EnumConstantDeclaration</code></li> |
| <li>type variable - a <code>TypeParameter</code></li> |
| <li>capture binding - none</li> |
| <li>annotation binding - an <code>Annotation</code></li> |
| <li>member value pair binding - an <code>MemberValuePair</code>, |
| or <code>null</code> if it represents a default value or a single member value</li> |
| </ul> |
| For parameterized or raw type bindings, the declaring node is |
| that of the corresponding generic type. And for parameterized or raw |
| method bindings, the declaring node is that of the corresponding |
| generic method. |
| </p> |
| <p> |
| Each call to <CODE>ASTParser#createAST(org.eclipse.core.runtime.IProgressMonitor)</CODE> with a request for bindings |
| gives rise to separate universe of binding objects. This method always returns |
| <code>null</code> when the binding object comes from a different AST. |
| Use <code>findDeclaringNode(binding.getKey())</code> when the binding comes |
| from a different AST. |
| </p> |
| <P> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>binding</CODE> - the binding |
| <DT><B>Returns:</B><DD>the corresponding node where the given binding is declared, |
| or <code>null</code> if the binding does not correspond to a node in this |
| javaScript unit or if bindings were not requested when this AST was built<DT><B>See Also:</B><DD><A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/JavaScriptUnit.html#findDeclaringNode(java.lang.String)"><CODE>findDeclaringNode(String)</CODE></A></DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="findDeclaringNode(java.lang.String)"><!-- --></A><H3> |
| findDeclaringNode</H3> |
| <PRE> |
| public <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ASTNode.html" title="class in org.eclipse.wst.jsdt.core.dom">ASTNode</A> <B>findDeclaringNode</B>(java.lang.String key)</PRE> |
| <DL> |
| <DD>Finds the corresponding AST node in the given javaScript unit from |
| which the binding with the given key originated. Returns |
| <code>null</code> if the corresponding node cannot be determined. |
| This method always returns <code>null</code> if bindings were not requested |
| when this AST was built. |
| <p> |
| The following table indicates the expected node type for the various |
| different kinds of binding keys: |
| <ul> |
| <li></li> |
| <li>package - a <code>PackageDeclaration</code></li> |
| <li>class or interface - a <code>TypeDeclaration</code> or a |
| <code>AnonymousClassDeclaration</code> (for anonymous classes)</li> |
| <li>primitive type - none</li> |
| <li>array type - none</li> |
| <li>field - a <code>VariableDeclarationFragment</code> in a |
| <code>FieldDeclaration</code> </li> |
| <li>local variable - a <code>SingleVariableDeclaration</code>, or |
| a <code>VariableDeclarationFragment</code> in a |
| <code>VariableDeclarationStatement</code> or |
| <code>VariableDeclarationExpression</code></li> |
| <li>method - a <code>FunctionDeclaration</code> </li> |
| <li>constructor - a <code>FunctionDeclaration</code> </li> |
| <li>annotation type - an <code>AnnotationTypeDeclaration</code></li> |
| <li>annotation type member - an <code>AnnotationTypeMemberDeclaration</code></li> |
| <li>enum type - an <code>EnumDeclaration</code></li> |
| <li>enum constant - an <code>EnumConstantDeclaration</code></li> |
| <li>type variable - a <code>TypeParameter</code></li> |
| <li>capture binding - none</li> |
| </ul> |
| For parameterized or raw type bindings, the declaring node is |
| that of the corresponding generic type. And for parameterized or raw |
| method bindings, the declaring node is that of the corresponding |
| generic method. |
| </p> |
| <P> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>key</CODE> - the binding key, or <code>null</code> |
| <DT><B>Returns:</B><DD>the corresponding node where a binding with the given |
| key is declared, or <code>null</code> if the key is <code>null</code> |
| or if the key does not correspond to a node in this javaScript unit |
| or if bindings were not requested when this AST was built<DT><B>See Also:</B><DD><A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/IBinding.html#getKey()"><CODE>IBinding.getKey()</CODE></A></DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="getCommentList()"><!-- --></A><H3> |
| getCommentList</H3> |
| <PRE> |
| public java.util.List <B>getCommentList</B>()</PRE> |
| <DL> |
| <DD>Returns a list of the comments encountered while parsing |
| this javaScript unit. |
| <p> |
| Since the JavaScript language allows comments to appear most anywhere |
| in the source text, it is problematic to locate comments in relation |
| to the structure of an AST. The one exception is doc comments |
| which, by convention, immediately precede type, field, and |
| method declarations; these comments are located in the AST |
| by <CODE>BodyDeclaration.getJavadoc</CODE>. |
| Other comments do not show up in the AST. The table of comments |
| is provided for clients that need to find the source ranges of |
| all comments in the original source string. It includes entries |
| for comments of all kinds (line, block, and doc), arranged in order |
| of increasing source position. |
| </p> |
| <p> |
| Note on comment parenting: The <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ASTNode.html#getParent()"><CODE>getParent()</CODE></A> |
| of a doc comment associated with a body declaration is the body |
| declaration node; for these comment nodes |
| <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ASTNode.html#getRoot()"><CODE>getRoot()</CODE></A> will return the javaScript unit |
| (assuming an unmodified AST) reflecting the fact that these nodes |
| are property located in the AST for the javaScript unit. |
| However, for other comment nodes, <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ASTNode.html#getParent()"><CODE>getParent()</CODE></A> |
| will return <code>null</code>, and <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ASTNode.html#getRoot()"><CODE>getRoot()</CODE></A> |
| will return the comment node itself, indicating that these comment nodes |
| are not directly connected to the AST for the javaScript unit. The |
| <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/Comment.html#getAlternateRoot()"><CODE>Comment.getAlternateRoot</CODE></A> |
| method provides a way to navigate from a comment to its compilation |
| unit. |
| </p> |
| <p> |
| A note on visitors: The only comment nodes that will be visited when |
| visiting a javaScript unit are the doc comments parented by body |
| declarations. To visit all comments in normal reading order, iterate |
| over the comment table and call <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ASTNode.html#accept(org.eclipse.wst.jsdt.core.dom.ASTVisitor)"><CODE>accept</CODE></A> |
| on each element. |
| </p> |
| <p> |
| Clients cannot modify the resulting list. |
| </p> |
| <P> |
| <DD><DL> |
| |
| <DT><B>Returns:</B><DD>an unmodifiable list of comments in increasing order of source |
| start position, or <code>null</code> if comment information |
| for this javaScript unit is not available<DT><B>See Also:</B><DD><A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ASTParser.html" title="class in org.eclipse.wst.jsdt.core.dom"><CODE>ASTParser</CODE></A></DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="getExtendedLength(org.eclipse.wst.jsdt.core.dom.ASTNode)"><!-- --></A><H3> |
| getExtendedLength</H3> |
| <PRE> |
| public int <B>getExtendedLength</B>(<A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ASTNode.html" title="class in org.eclipse.wst.jsdt.core.dom">ASTNode</A> node)</PRE> |
| <DL> |
| <DD>Returns the extended source length of the given node. Unlike |
| <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ASTNode.html#getStartPosition()"><CODE>ASTNode.getStartPosition()</CODE></A> and <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ASTNode.html#getLength()"><CODE>ASTNode.getLength()</CODE></A>, |
| the extended source range may include comments and whitespace |
| immediately before or after the normal source range for the node. |
| <P> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>node</CODE> - the node |
| <DT><B>Returns:</B><DD>a (possibly 0) length, or <code>0</code> |
| if no source position information is recorded for this node<DT><B>See Also:</B><DD><A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/JavaScriptUnit.html#getExtendedStartPosition(org.eclipse.wst.jsdt.core.dom.ASTNode)"><CODE>getExtendedStartPosition(ASTNode)</CODE></A></DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="getExtendedStartPosition(org.eclipse.wst.jsdt.core.dom.ASTNode)"><!-- --></A><H3> |
| getExtendedStartPosition</H3> |
| <PRE> |
| public int <B>getExtendedStartPosition</B>(<A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ASTNode.html" title="class in org.eclipse.wst.jsdt.core.dom">ASTNode</A> node)</PRE> |
| <DL> |
| <DD>Returns the extended start position of the given node. Unlike |
| <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ASTNode.html#getStartPosition()"><CODE>ASTNode.getStartPosition()</CODE></A> and <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ASTNode.html#getLength()"><CODE>ASTNode.getLength()</CODE></A>, |
| the extended source range may include comments and whitespace |
| immediately before or after the normal source range for the node. |
| <P> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>node</CODE> - the node |
| <DT><B>Returns:</B><DD>the 0-based character index, or <code>-1</code> |
| if no source position information is recorded for this node<DT><B>See Also:</B><DD><A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/JavaScriptUnit.html#getExtendedLength(org.eclipse.wst.jsdt.core.dom.ASTNode)"><CODE>getExtendedLength(ASTNode)</CODE></A></DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="getJavaElement()"><!-- --></A><H3> |
| getJavaElement</H3> |
| <PRE> |
| public <A HREF="../../../../../../org/eclipse/wst/jsdt/core/IJavaScriptElement.html" title="interface in org.eclipse.wst.jsdt.core">IJavaScriptElement</A> <B>getJavaElement</B>()</PRE> |
| <DL> |
| <DD>The JavaScript element (an <code>org.eclipse.wst.jsdt.core.IJavaScriptUnit</code> or an <code>org.eclipse.wst.jsdt.core.IClassFile</code>) |
| this javaScript unit was created from, or <code>null</code> if it was not created from a JavaScript element. |
| <P> |
| <DD><DL> |
| |
| <DT><B>Returns:</B><DD>the JavaScript element this javaScript unit was created from, or <code>null</code> if none<DT><B>See Also:</B><DD><A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/JavaScriptUnit.html#getTypeRoot()"><CODE>getTypeRoot()</CODE></A></DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="getMessages()"><!-- --></A><H3> |
| getMessages</H3> |
| <PRE> |
| public <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/Message.html" title="class in org.eclipse.wst.jsdt.core.dom">Message</A>[] <B>getMessages</B>()</PRE> |
| <DL> |
| <DD>Returns the list of messages reported by the validator during the parsing |
| or the type checking of this javaScript unit. This list might be a subset of |
| errors detected and reported by a JavaScript compiler. |
| <p> |
| This list of messages is suitable for simple clients that do little |
| more than log the messages or display them to the user. Clients that |
| need further details should call <code>getProblems</code> to get |
| validator problem objects. |
| </p> |
| <P> |
| <DD><DL> |
| |
| <DT><B>Returns:</B><DD>the list of messages, possibly empty<DT><B>See Also:</B><DD><A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/JavaScriptUnit.html#getProblems()"><CODE>getProblems()</CODE></A>, |
| <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ASTParser.html" title="class in org.eclipse.wst.jsdt.core.dom"><CODE>ASTParser</CODE></A></DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="getPackage()"><!-- --></A><H3> |
| getPackage</H3> |
| <PRE> |
| public <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/PackageDeclaration.html" title="class in org.eclipse.wst.jsdt.core.dom">PackageDeclaration</A> <B>getPackage</B>()</PRE> |
| <DL> |
| <DD>Returns the node for the package declaration of this compilation |
| unit, or <code>null</code> if this javaScript unit is in the |
| default package. |
| <P> |
| <DD><DL> |
| |
| <DT><B>Returns:</B><DD>the package declaration node, or <code>null</code> if none</DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="getPosition(int, int)"><!-- --></A><H3> |
| getPosition</H3> |
| <PRE> |
| public int <B>getPosition</B>(int line, |
| int column)</PRE> |
| <DL> |
| <DD>Given a line number and column number, returns the corresponding |
| position in the original source string. |
| Returns -2 if no line number information is available for this |
| javaScript unit. |
| Returns the total size of the source string if <code>line</code> |
| is greater than the actual number lines in the unit. |
| Returns -1 if <code>column</code> is less than 0, |
| or the position of the last character of the line if <code>column</code> |
| is beyond the legal range, or the given line number is less than one. |
| <P> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>line</CODE> - the one-based line number<DD><CODE>column</CODE> - the zero-based column number |
| <DT><B>Returns:</B><DD>the 0-based character position in the source string; |
| <code>-2</code> if line/column number information is not known |
| for this javaScript unit or <code>-1</code> the inputs are not valid</DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="getProblems()"><!-- --></A><H3> |
| getProblems</H3> |
| <PRE> |
| public <A HREF="../../../../../../org/eclipse/wst/jsdt/core/compiler/IProblem.html" title="interface in org.eclipse.wst.jsdt.core.compiler">IProblem</A>[] <B>getProblems</B>()</PRE> |
| <DL> |
| <DD>Returns the list of detailed problem reports noted by the compiler |
| during the parsing or the type checking of this javaScript unit. This |
| list might be a subset of errors detected and reported by a Java |
| compiler. |
| <p> |
| Simple clients that do little more than log the messages or display |
| them to the user should probably call <code>getMessages</code> instead. |
| </p> |
| <P> |
| <DD><DL> |
| |
| <DT><B>Returns:</B><DD>the list of detailed problem objects, possibly empty<DT><B>See Also:</B><DD><A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/JavaScriptUnit.html#getMessages()"><CODE>getMessages()</CODE></A>, |
| <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ASTParser.html" title="class in org.eclipse.wst.jsdt.core.dom"><CODE>ASTParser</CODE></A></DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="getTypeRoot()"><!-- --></A><H3> |
| getTypeRoot</H3> |
| <PRE> |
| public <A HREF="../../../../../../org/eclipse/wst/jsdt/core/ITypeRoot.html" title="interface in org.eclipse.wst.jsdt.core">ITypeRoot</A> <B>getTypeRoot</B>()</PRE> |
| <DL> |
| <DD>The JavaScript type root (a <A HREF="../../../../../../org/eclipse/wst/jsdt/core/IJavaScriptUnit.html" title="interface in org.eclipse.wst.jsdt.core"><CODE>javaScript unit</CODE></A> or a <A HREF="../../../../../../org/eclipse/wst/jsdt/core/IClassFile.html" title="interface in org.eclipse.wst.jsdt.core"><CODE>class file</CODE></A>) |
| this javaScript unit was created from, or <code>null</code> if it was not created from a JavaScript type root. |
| <P> |
| <DD><DL> |
| |
| <DT><B>Returns:</B><DD>the JavaScript type root this javaScript unit was created from, or <code>null</code> if none</DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="imports()"><!-- --></A><H3> |
| imports</H3> |
| <PRE> |
| public java.util.List <B>imports</B>()</PRE> |
| <DL> |
| <DD>Returns the live list of nodes for the import declarations of this |
| javaScript unit, in order of appearance. |
| <P> |
| <DD><DL> |
| |
| <DT><B>Returns:</B><DD>the live list of import declaration nodes |
| (elementType: <code>ImportDeclaration</code>)</DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="firstLeadingCommentIndex(org.eclipse.wst.jsdt.core.dom.ASTNode)"><!-- --></A><H3> |
| firstLeadingCommentIndex</H3> |
| <PRE> |
| public int <B>firstLeadingCommentIndex</B>(<A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ASTNode.html" title="class in org.eclipse.wst.jsdt.core.dom">ASTNode</A> node)</PRE> |
| <DL> |
| <DD>Return the index in the whole comments list <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/JavaScriptUnit.html#getCommentList()"><CODE>getCommentList()</CODE></A> |
| of the first leading comments associated with the given node. |
| <P> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>node</CODE> - the node |
| <DT><B>Returns:</B><DD>0-based index of first leading comment or -1 if node has no associated |
| comment before its start position.</DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="lastTrailingCommentIndex(org.eclipse.wst.jsdt.core.dom.ASTNode)"><!-- --></A><H3> |
| lastTrailingCommentIndex</H3> |
| <PRE> |
| public int <B>lastTrailingCommentIndex</B>(<A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ASTNode.html" title="class in org.eclipse.wst.jsdt.core.dom">ASTNode</A> node)</PRE> |
| <DL> |
| <DD>Return the index in the whole comments list <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/JavaScriptUnit.html#getCommentList()"><CODE>getCommentList()</CODE></A> |
| of the last trailing comments associated with the given node. |
| <P> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>node</CODE> - the node |
| <DT><B>Returns:</B><DD>0-based index of last trailing comment or -1 if node has no |
| associated comment after its end position.</DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="getLineNumber(int)"><!-- --></A><H3> |
| getLineNumber</H3> |
| <PRE> |
| public int <B>getLineNumber</B>(int position)</PRE> |
| <DL> |
| <DD>Returns the line number corresponding to the given source character |
| position in the original source string. The initial line of the |
| javaScript unit is numbered 1, and each line extends through the |
| last character of the end-of-line delimiter. The very last line extends |
| through the end of the source string and has no line delimiter. |
| For example, the source string <code>class A\n{\n}</code> has 3 lines |
| corresponding to inclusive character ranges [0,7], [8,9], and [10,10]. |
| Returns -1 for a character position that does not correspond to any |
| source line, or -2 if no line number information is available for this |
| javaScript unit. |
| <P> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>position</CODE> - a 0-based character position, possibly |
| negative or out of range |
| <DT><B>Returns:</B><DD>the 1-based line number, or <code>-1</code> if the character |
| position does not correspond to a source line in the original |
| source file or <code>-2</code> if line number information is not known for this |
| javaScript unit<DT><B>See Also:</B><DD><A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ASTParser.html" title="class in org.eclipse.wst.jsdt.core.dom"><CODE>ASTParser</CODE></A></DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="recordModifications()"><!-- --></A><H3> |
| recordModifications</H3> |
| <PRE> |
| public void <B>recordModifications</B>()</PRE> |
| <DL> |
| <DD>Enables the recording of changes to this compilation |
| unit and its descendents. The javaScript unit must have |
| been created by <code>ASTParser</code> and still be in |
| its original state. Once recording is on, |
| arbitrary changes to the subtree rooted at this compilation |
| unit are recorded internally. Once the modification has |
| been completed, call <code>rewrite</code> to get an object |
| representing the corresponding edits to the original |
| source code string. |
| <P> |
| <DD><DL> |
| |
| <DT><B>Throws:</B> |
| <DD><CODE>java.lang.IllegalArgumentException</CODE> - if this javaScript unit is |
| marked as unmodifiable, or if this javaScript unit has already |
| been tampered with, or recording has already been enabled</DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="rewrite(IDocument, java.util.Map)"><!-- --></A><H3> |
| rewrite</H3> |
| <PRE> |
| public TextEdit <B>rewrite</B>(IDocument document, |
| java.util.Map options)</PRE> |
| <DL> |
| <DD>Converts all modifications recorded for this compilation |
| unit into an object representing the corresponding text |
| edits to the given document containing the original source |
| code for this javaScript unit. |
| <p> |
| The javaScript unit must have been created by |
| <code>ASTParser</code> from the source code string in the |
| given document, and recording must have been turned |
| on with a prior call to <code>recordModifications</code> |
| while the AST was still in its original state. |
| </p> |
| <p> |
| Calling this methods does not discard the modifications |
| on record. Subsequence modifications made to the AST |
| are added to the ones already on record. If this method |
| is called again later, the resulting text edit object will |
| accurately reflect the net cumulative affect of all those |
| changes. |
| </p> |
| <P> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>document</CODE> - original document containing source code |
| for this javaScript unit<DD><CODE>options</CODE> - the table of formatter options |
| (key type: <code>String</code>; value type: <code>String</code>); |
| or <code>null</code> to use the standard global options |
| <A HREF="../../../../../../org/eclipse/wst/jsdt/core/JavaScriptCore.html#getOptions()"><CODE>JavaScriptCore.getOptions()</CODE></A>. |
| <DT><B>Returns:</B><DD>text edit object describing the changes to the |
| document corresponding to the recorded AST modifications |
| <DT><B>Throws:</B> |
| <DD><CODE>java.lang.IllegalArgumentException</CODE> - if the document passed is |
| <code>null</code> or does not correspond to this AST |
| <DD><CODE>java.lang.IllegalStateException</CODE> - if <code>recordModifications</code> |
| was not called to enable recording<DT><B>See Also:</B><DD><A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/JavaScriptUnit.html#recordModifications()"><CODE>recordModifications()</CODE></A></DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="setPackage(org.eclipse.wst.jsdt.core.dom.PackageDeclaration)"><!-- --></A><H3> |
| setPackage</H3> |
| <PRE> |
| public void <B>setPackage</B>(<A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/PackageDeclaration.html" title="class in org.eclipse.wst.jsdt.core.dom">PackageDeclaration</A> pkgDecl)</PRE> |
| <DL> |
| <DD>Sets or clears the package declaration of this javaScript unit |
| node to the given package declaration node. |
| <P> |
| <DD><DL> |
| <DT><B>Parameters:</B><DD><CODE>pkgDecl</CODE> - the new package declaration node, or |
| <code>null</code> if this javaScript unit does not have a package |
| declaration (that is in the default package) |
| <DT><B>Throws:</B> |
| <DD><CODE>java.lang.IllegalArgumentException</CODE> - if: |
| <ul> |
| <li>the node belongs to a different AST</li> |
| <li>the node already has a parent</li> |
| </ul></DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="types()"><!-- --></A><H3> |
| types</H3> |
| <PRE> |
| public java.util.List <B>types</B>()</PRE> |
| <DL> |
| <DD>Returns the live list of nodes for the top-level type declarations of this |
| javaScript unit, in order of appearance. |
| <p> |
| Note that in JLS3, the types may include both enum declarations |
| and annotation type declarations introduced in J2SE 5. |
| For JLS2, the elements are always <code>TypeDeclaration</code>. |
| </p> |
| <P> |
| <DD><DL> |
| |
| <DT><B>Returns:</B><DD>the live list of top-level type declaration |
| nodes (elementType: <code>AbstractTypeDeclaration</code>)</DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="statements()"><!-- --></A><H3> |
| statements</H3> |
| <PRE> |
| public java.util.List <B>statements</B>()</PRE> |
| <DL> |
| <DD><DL> |
| </DL> |
| </DD> |
| </DL> |
| <HR> |
| |
| <A NAME="resolveBinding()"><!-- --></A><H3> |
| resolveBinding</H3> |
| <PRE> |
| public <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/ITypeBinding.html" title="interface in org.eclipse.wst.jsdt.core.dom">ITypeBinding</A> <B>resolveBinding</B>()</PRE> |
| <DL> |
| <DD><DL> |
| </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> </TD> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> |
| <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/JavaScriptUnit.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> |
| <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> |
| </TR> |
| </TABLE> |
| </TD> |
| <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> |
| </EM> |
| </TD> |
| </TR> |
| |
| <TR> |
| <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
| <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/IVariableBinding.html" title="interface in org.eclipse.wst.jsdt.core.dom"><B>PREV CLASS</B></A> |
| <A HREF="../../../../../../org/eclipse/wst/jsdt/core/dom/JSdoc.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/JavaScriptUnit.html" target="_top"><B>FRAMES</B></A> |
| <A HREF="JavaScriptUnit.html" target="_top"><B>NO FRAMES</B></A> |
| <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: NESTED | <A HREF="#field_summary">FIELD</A> | CONSTR | <A HREF="#method_summary">METHOD</A></FONT></TD> |
| <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
| DETAIL: <A HREF="#field_detail">FIELD</A> | CONSTR | <A HREF="#method_detail">METHOD</A></FONT></TD> |
| </TR> |
| </TABLE> |
| <A NAME="skip-navbar_bottom"></A> |
| <!-- ======== END OF BOTTOM NAVBAR ======= --> |
| |
| <HR> |
| |
| </BODY> |
| </HTML> |