Modifier and Type | Method and Description |
---|---|
JavaScriptUnit |
IJavaScriptElementDelta.getJavaScriptUnitAST()
Returns the javaScript unit AST created by the last reconcile operation on this delta's element.
|
JavaScriptUnit |
IJavaScriptUnit.reconcile(int astLevel,
boolean forceProblemDetection,
boolean enableStatementsRecovery,
WorkingCopyOwner owner,
IProgressMonitor monitor)
Reconciles the contents of this working copy, sends out a JavaScript delta
notification indicating the nature of the change of the working copy since
the last time it was either reconciled or made consistent
(
IOpenable.makeConsistent(IProgressMonitor) ), and returns a
javaScript file AST if requested. |
JavaScriptUnit |
IJavaScriptUnit.reconcile(int astLevel,
boolean forceProblemDetection,
WorkingCopyOwner owner,
IProgressMonitor monitor)
Reconciles the contents of this working copy, sends out a JavaScript delta
notification indicating the nature of the change of the working copy since
the last time it was either reconciled or made consistent
(
IOpenable.makeConsistent(IProgressMonitor) ), and returns a
javaScript file AST if requested. |
JavaScriptUnit |
IJavaScriptUnit.reconcile(int astLevel,
int reconcileFlags,
WorkingCopyOwner owner,
IProgressMonitor monitor)
Reconciles the contents of this working copy, sends out a JavaScript delta
notification indicating the nature of the change of the working copy since
the last time it was either reconciled or made consistent
(
IOpenable.makeConsistent(IProgressMonitor) ), and returns a
javaScript file AST if requested. |
Modifier and Type | Method and Description |
---|---|
JavaScriptUnit |
ReconcileContext.getAST3()
Returns a resolved AST with
JLS3 level. |
Modifier and Type | Method and Description |
---|---|
static JavaScriptUnit |
AST.convertCompilationUnit(int level,
org.eclipse.wst.jsdt.internal.compiler.ast.CompilationUnitDeclaration compilationUnitDeclaration,
char[] source,
java.util.Map options,
boolean isResolved,
org.eclipse.wst.jsdt.internal.core.CompilationUnit workingCopy,
int reconcileFlags,
IProgressMonitor monitor)
Internal method.
|
JavaScriptUnit |
AST.newJavaScriptUnit()
Creates an unparented javaScript unit node owned by this AST.
|
Modifier and Type | Method and Description |
---|---|
void |
ASTRequestor.acceptAST(IJavaScriptUnit source,
JavaScriptUnit ast)
Accepts an AST corresponding to the javaScript unit.
|
void |
DefaultASTVisitor.endVisit(JavaScriptUnit node) |
void |
ASTVisitor.endVisit(JavaScriptUnit node)
End of visit the given type-specific AST node.
|
boolean |
ASTMatcher.match(JavaScriptUnit node,
java.lang.Object other)
Returns whether the given node and the other object match.
|
boolean |
DefaultASTVisitor.visit(JavaScriptUnit node) |
boolean |
ASTVisitor.visit(JavaScriptUnit node)
Visits the given type-specific AST node.
|
Modifier and Type | Method and Description |
---|---|
static ImportRewrite |
ImportRewrite.create(JavaScriptUnit astRoot,
boolean restoreExistingImports)
Creates a
ImportRewrite from a an AST (JavaScriptUnit ). |
Modifier and Type | Method and Description |
---|---|
int |
ImportRewriteSupport.getImportStartPosition(JavaScriptUnit root)
Find the starting position of an import when none already exist
|
Modifier and Type | Method and Description |
---|---|
static TextEdit |
JavaScriptUnitSorter.sort(JavaScriptUnit unit,
java.util.Comparator comparator,
int options,
TextEditGroup group,
IProgressMonitor monitor)
Reorders the declarations in the given javascript unit according to the
specified comparator.
|
Modifier and Type | Method and Description |
---|---|
static ImportRewrite |
CodeStyleConfiguration.createImportRewrite(JavaScriptUnit astRoot,
boolean restoreExistingImports)
Returns a
ImportRewrite using ImportRewrite.create(JavaScriptUnit, boolean) and
configures the rewriter with the settings as specified in the JDT UI preferences. |
Modifier and Type | Method and Description |
---|---|
static IWorkspaceRunnable |
OverrideMethodsAction.createRunnable(JavaScriptUnit astRoot,
ITypeBinding type,
IFunctionBinding[] methodToOverride,
int insertPos,
boolean createComments)
Returns a runnable that creates the method stubs for overridden methods.
|
static IWorkspaceRunnable |
AddUnimplementedConstructorsAction.createRunnable(JavaScriptUnit astRoot,
ITypeBinding type,
IFunctionBinding[] constructorsToOverride,
int insertPos,
boolean createComments,
int visibility,
boolean omitSuper)
Returns a runnable that creates the constructor stubs.
|
Modifier and Type | Method and Description |
---|---|
JavaScriptUnit |
IInvocationContext.getASTRoot()
Returns an AST of the compilation unit, possibly only a partial AST focused on the selection
offset (see
ASTParser.setFocalPosition(int) ). |
Modifier and Type | Method and Description |
---|---|
ASTNode |
IProblemLocation.getCoveredNode(JavaScriptUnit astRoot)
Convenience method to evaluate the AST node covered by this problem.
|
ASTNode |
IProblemLocation.getCoveringNode(JavaScriptUnit astRoot)
Convenience method to evaluate the AST node covering this problem.
|
Copyright (c) IBM Corp. and others 2000, 2010. All Rights Reserved.