|
Eclipse JDT 2.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Common protocol for Java elements that can be members of types.
This set consists of IType
, IMethod
,
IField
, and IInitializer
.
This interface is not intended to be implemented by clients.
Field Summary |
Fields inherited from interface org.eclipse.jdt.core.IJavaElement |
CLASS_FILE, COMPILATION_UNIT, FIELD, IMPORT_CONTAINER, IMPORT_DECLARATION, INITIALIZER, JAVA_MODEL, JAVA_PROJECT, METHOD, PACKAGE_DECLARATION, PACKAGE_FRAGMENT, PACKAGE_FRAGMENT_ROOT, TYPE |
Method Summary | |
IClassFile |
getClassFile()
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). |
ICompilationUnit |
getCompilationUnit()
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). |
IType |
getDeclaringType()
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). |
int |
getFlags()
Returns the modifier flags for this member. |
ISourceRange |
getNameRange()
Returns the source range of this member's simple name, or null if this member does not have a name
(for example, an initializer), or if this member does not have
associated source code (for example, a binary type). |
boolean |
isBinary()
Returns whether this member is from a class file. |
Methods inherited from interface org.eclipse.jdt.core.IJavaElement |
exists, getAncestor, getCorrespondingResource, getElementName, getElementType, getHandleIdentifier, getJavaModel, getJavaProject, getOpenable, getParent, getPath, getResource, getUnderlyingResource, isReadOnly, isStructureKnown |
Methods inherited from interface org.eclipse.core.runtime.IAdaptable |
getAdapter |
Methods inherited from interface org.eclipse.jdt.core.ISourceReference |
exists, getSource, getSourceRange |
Methods inherited from interface org.eclipse.jdt.core.ISourceManipulation |
copy, delete, move, rename |
Method Detail |
public IClassFile getClassFile()
null
if this member is not declared in a class file (for example, a source type).
This is a handle-only method.
null
if this member is not declared in a class file (for example, a source type)public ICompilationUnit getCompilationUnit()
null
if this member is not declared in a compilation unit (for example, a binary type).
This is a handle-only method.
null
if this member is not declared in a compilation unit (for example, a binary type)public IType getDeclaringType()
null
if this member is not declared in a type (for example, a top-level type).
This is a handle-only method.
null
if this member is not declared in a type (for example, a top-level type)public int getFlags() throws JavaModelException
Flags
.
JavaModelException
- if this element does not exist or if an
exception occurs while accessing its corresponding resource.Flags
public ISourceRange getNameRange() throws JavaModelException
null
if this member does not have a name
(for example, an initializer), or if this member does not have
associated source code (for example, a binary type).
null
if this member does not have a name
(for example, an initializer), or if this member does not have
associated source code (for example, a binary type)
JavaModelException
- if this element does not exist or if an
exception occurs while accessing its corresponding resource.public boolean isBinary()
true
if from a class file, and false
if
from a compilation unit
|
Eclipse JDT 2.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |