|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectPlatformObject
org.aspectj.org.eclipse.jdt.internal.core.JavaElement
org.aspectj.org.eclipse.jdt.internal.core.SourceRefElement
org.aspectj.org.eclipse.jdt.internal.core.Member
org.aspectj.org.eclipse.jdt.internal.core.NamedMember
org.aspectj.org.eclipse.jdt.internal.core.BinaryMember
public abstract class BinaryMember
Common functionality for Binary member handles.
| Field Summary |
|---|
| Fields inherited from class org.aspectj.org.eclipse.jdt.internal.core.NamedMember |
|---|
name |
| Fields inherited from class org.aspectj.org.eclipse.jdt.internal.core.SourceRefElement |
|---|
occurrenceCount |
| Fields inherited from class org.aspectj.org.eclipse.jdt.internal.core.JavaElement |
|---|
JEM_ANNOTATION, JEM_CLASSFILE, JEM_COMPILATIONUNIT, JEM_COUNT, JEM_ESCAPE, JEM_FIELD, JEM_IMPORTDECLARATION, JEM_INITIALIZER, JEM_JAVAPROJECT, JEM_LOCALVARIABLE, JEM_METHOD, JEM_PACKAGEDECLARATION, JEM_PACKAGEFRAGMENT, JEM_PACKAGEFRAGMENTROOT, JEM_TYPE, JEM_TYPE_PARAMETER, NO_ELEMENTS, NO_INFO, parent |
| Fields inherited from interface org.aspectj.org.eclipse.jdt.core.IJavaElement |
|---|
ANNOTATION, CLASS_FILE, COMPILATION_UNIT, FIELD, IMPORT_CONTAINER, IMPORT_DECLARATION, INITIALIZER, JAVA_MODEL, JAVA_PROJECT, LOCAL_VARIABLE, METHOD, PACKAGE_DECLARATION, PACKAGE_FRAGMENT, PACKAGE_FRAGMENT_ROOT, TYPE, TYPE_PARAMETER |
| Constructor Summary | |
|---|---|
protected |
BinaryMember(JavaElement parent,
java.lang.String name)
|
| Method Summary | |
|---|---|
void |
copy(IJavaElement container,
IJavaElement sibling,
java.lang.String rename,
boolean force,
IProgressMonitor monitor)
Copies this element to the given container. |
protected IAnnotation[] |
getAnnotations(IBinaryAnnotation[] binaryAnnotations,
long tagBits)
|
java.lang.String[] |
getCategories()
Returns the categories defined by this member's Javadoc. |
java.lang.String |
getKey()
|
abstract java.lang.String |
getKey(boolean forceOpen)
|
ISourceRange |
getNameRange()
Returns the name range associated with this element. |
ISourceRange |
getSourceRange()
Returns the source range associated with this element. |
protected IAnnotation[] |
getStandardAnnotations(long tagBits)
|
boolean |
isBinary()
Returns whether this member is from a class file. |
boolean |
isStructureKnown()
Returns whether the structure of this element is known. |
void |
move(IJavaElement container,
IJavaElement sibling,
java.lang.String rename,
boolean force,
IProgressMonitor monitor)
Moves this element to the given container. |
void |
rename(java.lang.String newName,
boolean force,
IProgressMonitor monitor)
Renames this element to the given name. |
void |
setContents(java.lang.String contents,
IProgressMonitor monitor)
|
| Methods inherited from class org.aspectj.org.eclipse.jdt.internal.core.NamedMember |
|---|
getElementName, getFullyQualifiedName, getFullyQualifiedParameterizedName, getKey, getKey, getKey, getPackageFragment, getTypeParameters, getTypeQualifiedName, resolveType, resolveType |
| Methods inherited from class org.aspectj.org.eclipse.jdt.internal.core.Member |
|---|
areSimilarMethods, convertConstant, findMethods, getClassFile, getDeclaringType, getFlags, getHandleFromMemento, getHandleMementoDelimiter, getJavadocRange, getOuterMostLocalContext, getType, getTypeRoot, isMainMethod, isReadOnly, readableName |
| Methods inherited from class org.aspectj.org.eclipse.jdt.internal.core.SourceRefElement |
|---|
closing, createElementInfo, delete, equals, findNode, generateInfos, getAnnotation, getAnnotations, getCompilationUnit, getCorrespondingResource, getHandleMemento, getHandleUpdatingCountFromMemento, getOccurrenceCount, getOpenableParent, getPath, getSource, getUnderlyingResource, hasChildren, resource, toStringName |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.aspectj.org.eclipse.jdt.core.IMember |
|---|
getCompilationUnit, getOccurrenceCount |
| Methods inherited from interface org.aspectj.org.eclipse.jdt.core.IJavaElement |
|---|
exists, getAncestor, getAttachedJavadoc, getCorrespondingResource, getElementType, getHandleIdentifier, getJavaModel, getJavaProject, getOpenable, getParent, getPath, getPrimaryElement, getResource, getSchedulingRule, getUnderlyingResource |
| Methods inherited from interface org.aspectj.org.eclipse.jdt.core.ISourceReference |
|---|
exists, getSource |
| Methods inherited from interface org.aspectj.org.eclipse.jdt.core.ISourceManipulation |
|---|
delete |
| Methods inherited from interface org.aspectj.org.eclipse.jdt.core.IParent |
|---|
getChildren, hasChildren |
| Constructor Detail |
|---|
protected BinaryMember(JavaElement parent,
java.lang.String name)
| Method Detail |
|---|
public void copy(IJavaElement container,
IJavaElement sibling,
java.lang.String rename,
boolean force,
IProgressMonitor monitor)
throws JavaModelException
ISourceManipulation
copy in interface ISourceManipulationcopy in class SourceRefElementcontainer - the containersibling - the sibling element before which the copy should be inserted,
or null if the copy should be inserted as the last child of
the containerrename - the new name for the element, or null if the copy
retains the name of this elementforce - true if any existing child in the container with
the target name should be replaced, and false to throw an
exception in the event of a name collisionmonitor - a progress monitor
JavaModelException - if this element could not be copied. Reasons include:
CoreException occurred while updating an underlying resource
replace has been specified as false
ISourceManipulation
protected IAnnotation[] getAnnotations(IBinaryAnnotation[] binaryAnnotations,
long tagBits)
protected IAnnotation[] getStandardAnnotations(long tagBits)
public java.lang.String[] getCategories()
throws JavaModelException
IMember@category in the member's Javadoc.
Returns an empty array if no category is defined in this member's Javadoc.
getCategories in interface IMembergetCategories in class MemberJavaModelException - if this element does not exist or if an
exception occurs while accessing its corresponding resource.public java.lang.String getKey()
public abstract java.lang.String getKey(boolean forceOpen)
throws JavaModelException
JavaModelExceptionBinding.computeUniqueKey()
public ISourceRange getNameRange()
throws JavaModelException
ISourceReferenceIf the element is an IMember, it 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).
If this element is an IImportDeclaration, the source range
of this import declaration's name, or null if this import
declaration does not have associated source code (for example, a binary type).
The source range for the name includes the trailing '*' if the call to
IImportDeclaration.isOnDemand() returns true.
If this element is an IPackageDeclaration, the source range of
this package declaration's name, or null if this package
declaration does not have associated source code (for example, a binary type).
If this element is an IAnnotation, the source range of
this annotation's name, or null if this annotation does not have
associated source code (for example, in a binary type).
If this element is an ITypeParameter, the source range of this
type parameter's name, or null if this type parameter does not have
associated source code (for example, in a binary type).
If this element is an ITypeRoot or IImportContainer, it
returns null.
getNameRange in interface ISourceReferencegetNameRange in class Membernull if
not available
JavaModelExceptionIMember
public ISourceRange getSourceRange()
throws JavaModelException
ISourceReferenceFor class files, this returns the range of the entire compilation unit associated with the class file (if there is one).
If this element has no associated source code, either null is returned,
or a source range with a -1 offset and a 0 length. SourceRange.isAvailable(ISourceRange)
can be used to detect that case.
getSourceRange in interface ISourceReferencegetSourceRange in class SourceRefElementnull or [-1, 0] if this element has no
associated source code
JavaModelException - if an exception occurs while accessing its corresponding resourceISourceReferencepublic boolean isBinary()
IMember
isBinary in interface IMemberisBinary in class Membertrue if from a class file, and false if
from a compilation unitIMember
public boolean isStructureKnown()
throws JavaModelException
IJavaElementfalse is returned.
If the structure of an element is unknown, navigations will return reasonable
defaults. For example, getChildren for a compilation unit with
syntax errors will return a collection of the children that could be parsed.
Note: This does not imply anything about consistency with the underlying resource/buffer contents.
isStructureKnown in interface IJavaElementisStructureKnown in class SourceRefElementtrue if the structure of this element is known
JavaModelException - if this element does not exist or if an
exception occurs while accessing its corresponding resourceIJavaElement
public void move(IJavaElement container,
IJavaElement sibling,
java.lang.String rename,
boolean force,
IProgressMonitor monitor)
throws JavaModelException
ISourceManipulation
move in interface ISourceManipulationmove in class SourceRefElementcontainer - the containersibling - the sibling element before which the element should be inserted,
or null if the element should be inserted as the last child of
the containerrename - the new name for the element, or null if the
element retains its nameforce - true if any existing child in the container with
the target name should be replaced, and false to throw an
exception in the event of a name collisionmonitor - a progress monitor
JavaModelException - if this element could not be moved. Reasons include:
CoreException occurred while updating an underlying resource
replace has been specified as false
ISourceManipulation
public void rename(java.lang.String newName,
boolean force,
IProgressMonitor monitor)
throws JavaModelException
ISourceManipulation
rename in interface ISourceManipulationrename in class SourceRefElementnewName - the new name for the elementforce - true if any existing element with the target name
should be replaced, and false to throw an exception in the
event of a name collisionmonitor - a progress monitor
JavaModelException - if this element could not be renamed. Reasons include:
CoreException occurred while updating an underlying resource
replace has been specified as false
ISourceManipulation
public void setContents(java.lang.String contents,
IProgressMonitor monitor)
throws JavaModelException
JavaModelException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||