public interface IIndexName extends IName
Modifier and Type | Field and Description |
---|---|
static IIndexName[] |
EMPTY_ARRAY |
Modifier and Type | Method and Description |
---|---|
boolean |
couldBePolymorphicMethodCall()
Returns whether this name potentially denotes a polymorphic method call.
|
IIndexName[] |
getEnclosedNames()
Returns the names of the references contained in this definition.
|
IIndexName |
getEnclosingDefinition()
Returns the name of the definition that contains this name.
|
IIndexFile |
getFile()
Returns the file the name belongs to.
|
int |
getNodeLength()
Returns the length of the name.
|
int |
getNodeOffset()
Returns the character offset of the location of the name.
|
boolean |
isBaseSpecifier()
Returns whether a declaration is a base-class specifier.
|
boolean |
isInlineNamespaceDefinition()
Returns whether this name specifies an inline namespace.
|
boolean |
isPotentialMatch()
Returns whether this name is a potential match for its binding, rather than an exact match.
|
boolean |
isReadAccess()
Returns whether this name is a read-reference to a variable or field.
|
boolean |
isWriteAccess()
Returns whether this name is a write-reference to a variable or field.
|
getFileLocation, getSimpleID, isDeclaration, isDefinition, isReference, toCharArray
static final IIndexName[] EMPTY_ARRAY
IIndexFile getFile() throws org.eclipse.core.runtime.CoreException
org.eclipse.core.runtime.CoreException
int getNodeOffset()
int getNodeLength()
IIndexName getEnclosingDefinition() throws org.eclipse.core.runtime.CoreException
null
.
Currently this is implemented for function and method definitions, only.org.eclipse.core.runtime.CoreException
IIndexName[] getEnclosedNames() throws org.eclipse.core.runtime.CoreException
null
, if the name is not a definition.
Currently the method works with function definitions, only.org.eclipse.core.runtime.CoreException
boolean isBaseSpecifier() throws org.eclipse.core.runtime.CoreException
org.eclipse.core.runtime.CoreException
boolean couldBePolymorphicMethodCall() throws org.eclipse.core.runtime.CoreException
No checks are performed whether the method is actually virtual or not.
org.eclipse.core.runtime.CoreException
boolean isPotentialMatch() throws org.eclipse.core.runtime.CoreException
org.eclipse.core.runtime.CoreException
boolean isInlineNamespaceDefinition() throws org.eclipse.core.runtime.CoreException
org.eclipse.core.runtime.CoreException
boolean isReadAccess() throws org.eclipse.core.runtime.CoreException
For pointers and arrays the access to the pointer itself is tracked, rather than considering the target of the pointer.
org.eclipse.core.runtime.CoreException
boolean isWriteAccess() throws org.eclipse.core.runtime.CoreException
For pointers and arrays the access to the pointer itself is tracked, rather than considering the target of the pointer.
org.eclipse.core.runtime.CoreException
Copyright (c) IBM Corp. and others 2004, 2020. All Rights Reserved.