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

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

Introduction

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

The text is from its open source code.

Implementation

org.eclipse.jdt.core.IMember has the following implementations.
Click this link to see all its implementation.

Method

booleanexists()
Returns whether this Java element exists in the model.
IJavaElementgetAncestor(int ancestorType)
Returns this Java element or the first ancestor of this element that has the given type.
StringgetAttachedJavadoc(IProgressMonitor monitor)

Returns the Javadoc as HTML source if this element has attached Javadoc, null otherwise.

This should be used only for binary elements.

String[]getCategories()
Returns the categories defined by this member's Javadoc.
IClassFilegetClassFile()
Returns the class file in which this member is declared, or null if this member is not declared in a class file (for example, a source type).
ICompilationUnitgetCompilationUnit()
Returns the compilation unit in which this member is declared, or null if this member is not declared in a compilation unit (for example, a binary type).
ITypegetDeclaringType()
Returns the type in which this member is declared, or null if this member is not declared in a type (for example, a top-level type).
StringgetElementName()
Returns the name of this element.
intgetElementType()
Returns this element's kind encoded as an integer.
intgetFlags()
Returns the modifier flags for this member.
StringgetHandleIdentifier()
Returns a string representation of this element handle.
ISourceRangegetJavadocRange()
Returns the Javadoc range if this element is from source or if this element is a binary element with an attached source, null otherwise.
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).
IOpenablegetOpenable()
Returns the first openable parent.
IJavaElementgetParent()
Returns the element directly containing this element, or null if this element has no parent.
IJavaElementgetPrimaryElement()
Returns the primary element (whose compilation unit is the primary compilation unit) this working copy element was created from, or this element if it is a descendant of a primary compilation unit or if it is not a descendant of a working copy (e.g.
IResourcegetResource()
Returns the innermost resource enclosing this element.
ITypegetType(String name, int occurrenceCount)
Returns the local or anonymous type declared in this source member with the given simple name and/or with the specified position relative to the order they are defined in the source.
ITypeRootgetTypeRoot()
Returns the Java type root in which this member is declared.
booleanisBinary()
Returns whether this member is from a class file.