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

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

Introduction

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

The text is from its open source code.

Method

voidcodeComplete(int offset, ICodeCompletionRequestor requestor)
Performs code completion at the given offset position in this compilation unit, reporting results to the given completion requestor.
IJavaElement[]codeSelect(int offset, int length)
Returns the Java elements corresponding to the given selected text in this compilation unit.
booleanexists()
Returns whether this Java element exists in the model.
ITypefindPrimaryType()
Finds the primary type of this Java type root (that is, the type with the same name as the compilation unit, or the type of a class file), or null if no such a type exists.
IJavaElementgetAncestor(int ancestorType)
Returns this Java element or the first ancestor of this element that has the given type.
IBuffergetBuffer()
Returns the buffer opened for this element, or null if this element does not have a buffer.
IJavaElement[]getChildren()
Returns the immediate children of this element.
IResourcegetCorrespondingResource()
Returns the resource that corresponds directly to this element, or null if there is no resource that corresponds to this element.
IJavaElementgetElementAt(int position)
Returns the smallest element within this Java type root that includes the given source position (that is, a method, field, etc.), or null if there is no element other than the Java type root itself at the given position, or if the given position is not within the source range of the source of this Java type root.
StringgetElementName()
Returns the name of this element.
intgetElementType()
Returns this element's kind encoded as an integer.
StringgetHandleIdentifier()
Returns a string representation of this element handle.
IJavaProjectgetJavaProject()
Returns the Java project this element is contained in, or null if this element is not contained in any Java project (for instance, the IJavaModel is not contained in any Java project).
IModuleDescriptiongetModule()
Returns the module description contained in this type root or null if there is no module in this type root.
IJavaElementgetParent()
Returns the element directly containing this element, or null if this element has no parent.
IPathgetPath()
Returns the path to the innermost resource enclosing this element.
IResourcegetResource()
Returns the innermost resource enclosing this element.
StringgetSource()
Returns the source code associated with this element.
ISourceRangegetSourceRange()
Returns the source range associated with this element.
ICompilationUnitgetWorkingCopy(WorkingCopyOwner owner, IProgressMonitor monitor)
Returns a shared working copy on this compilation unit or class file using the given working copy owner to create the buffer.
booleanisConsistent()
Returns whether the element is consistent with its underlying resource or buffer.
booleanisReadOnly()
Returns whether this Java element is read-only.