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

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

Introduction

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

The text is from its open source code.

Field

intK_EXPRESSION
Kind constant used to request that the source be parsed as a single expression.
intK_STATEMENTS
Kind constant used to request that the source be parsed as a sequence of statements.
intK_CLASS_BODY_DECLARATIONS
Kind constant used to request that the source be parsed as a sequence of class body declarations.
intK_COMPILATION_UNIT
Kind constant used to request that the source be parsed as a compilation unit.

Method

ASTNodecreateAST(IProgressMonitor monitor)
Creates an abstract syntax tree.
voidcreateASTs(String[] sourceFilePaths, String[] encodings, String[] bindingKeys, FileASTRequestor requestor, IProgressMonitor monitor)
Creates ASTs for a batch of compilation units.
voidcreateASTs(ICompilationUnit[] compilationUnits, String[] bindingKeys, ASTRequestor requestor, IProgressMonitor monitor)
Creates ASTs for a batch of compilation units.
IBinding[]createBindings(IJavaElement[] elements, IProgressMonitor monitor)
Creates bindings for a batch of Java elements.
ASTParsernewParser(int level)
Creates a new object for creating a Java abstract syntax tree (AST) following the specified set of API rules.
voidsetBindingsRecovery(boolean enabled)
Requests that the compiler should perform bindings recovery.
voidsetCompilerOptions(Map options)
Sets the compiler options to be used when parsing.
voidsetEnvironment(String[] classpathEntries, String[] sourcepathEntries, String[] encodings, boolean includeRunningVMBootclasspath)
Sets the environment to be used when no IJavaProject is available.
voidsetFocalPosition(int position)
Requests an abridged abstract syntax tree.
voidsetIgnoreMethodBodies(boolean enabled)
Requests an abstract syntax tree without method bodies.
voidsetKind(int kind)
Sets the kind of constructs to be parsed from the source.
voidsetProject(IJavaProject project)
Sets the Java project used when resolving bindings.
voidsetResolveBindings(boolean enabled)
Requests that the compiler should provide binding information for the AST nodes it creates.
voidsetSource(char[] source)
Sets the source code to be parsed.
voidsetSource(ICompilationUnit source)
Sets the source code to be parsed.
voidsetSource(IClassFile source)
Sets the source code to be parsed.
voidsetSource(ITypeRoot source)
Sets the source code to be parsed.
voidsetSourceRange(int offset, int length)
Sets the subrange of the source code to be parsed.
voidsetStatementsRecovery(boolean enabled)
Requests that the compiler should perform statements recovery.
voidsetUnitName(String unitName)
Sets the name of the compilation unit that would hypothetically contains the source string.
voidsetWorkingCopyOwner(WorkingCopyOwner owner)
Sets the working copy owner used when resolving bindings, where null means the primary owner.