blob: ce4227d702e6b9c4bc185d927b0925f2930507be (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
|
/*******************************************************************************
* Copyright (c) 2006, 2010 Wind River Systems, Inc. and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Markus Schorn - initial API and implementation
* Andrew Ferguson (Symbian)
*******************************************************************************/
package org.eclipse.cdt.internal.core.index;
import org.eclipse.cdt.core.dom.ILinkage;
import org.eclipse.cdt.core.index.IIndexBinding;
import org.eclipse.core.runtime.CoreException;
public interface IIndexFragmentBinding extends IIndexBinding {
IIndexFragmentBinding[] EMPTY_INDEX_BINDING_ARRAY= new IIndexFragmentBinding[0];
/**
* Returns the owner of the binding.
*/
IIndexFragment getFragment();
/**
* Returns the linkage the binding belongs to.
*/
ILinkage getLinkage() throws CoreException;
/**
* Returns whether this binding has any definitions associated with it
* in its associated fragment.
*/
boolean hasDefinition() throws CoreException;
/**
* Returns whether this binding has a declaration or definition associated with
* it in its associated fragment.
*/
boolean hasDeclaration() throws CoreException;
/**
* Returns the constant identifying the type of binding stored in the index
*/
int getBindingConstant();
/**
* Returns the scope that contains this binding, or <code>null</code> for bindings in global scope.
*/
IIndexScope getScope();
/**
* {@inheritDoc}
* @since 5.1
*/
IIndexFragmentBinding getOwner();
/**
* Returns a unique id for the binding within the fragment
* @since 5.1
*/
long getBindingID();
}
|