Package org.eclipse.cdt.core.browser
Class IndexTypeInfo
java.lang.Object
org.eclipse.cdt.core.browser.IndexTypeInfo
- All Implemented Interfaces:
IFunctionInfo,ITypeInfo
- Restriction:
- This interface is not intended to be extended by clients.
- Restriction:
- This class is not intended to be instantiated by clients.
-
Field Summary
Fields inherited from interface org.eclipse.cdt.core.browser.ITypeInfo
KNOWN_TYPES -
Method Summary
Modifier and TypeMethodDescriptionvoidaddDerivedReference(ITypeReference location) Deprecated.voidaddReference(ITypeReference location) Deprecated.booleancanSubstituteFor(ITypeInfo info) Deprecated.static IndexTypeInfocreate(IndexTypeInfo rhs, ITypeReference ref) static IndexTypeInfocreate(IIndex index, IIndexBinding binding) Creates a type info suitable for the binding.static IndexTypeInfocreate(IIndex index, IIndexMacro macro) Creates a type info object suitable for a macro.booleanDeprecated.booleanType info objects are equal if they compute the same references.booleanexists()Deprecated.intReturns the CElement type.Deprecated.Deprecated.getEnclosedTypes(int[] kinds) Deprecated.getEnclosingNamespace(boolean includeGlobalNamespace) Deprecated.Returns the enclosing project.Deprecated.getEnclosingType(int[] kinds) Deprecated.getName()Returns the type name.String[]Returns the qualified type name.Returns the originating locations where this type was declared.Returns the real location where type was declared.getRootNamespace(boolean includeGlobalNamespace) Deprecated.Deprecated.getSuperTypeAccess(ITypeInfo subType) Deprecated.Deprecated.booleanDeprecated.inthashCode()booleanDeprecated.booleanDeprecated.booleanisClass()Deprecated.booleanisEnclosed(ITypeInfo info) Deprecated.booleanisEnclosed(ITypeSearchScope scope) Deprecated.booleanDeprecated.booleanDeprecated.booleanbooleanisReferenced(ITypeSearchScope scope) Deprecated.booleanDeprecated.voidsetCElementType(int type) Deprecated.
-
Method Details
-
create
Creates a type info suitable for the binding.- Parameters:
index- a non-null index in which to locate referencesbinding-- Since:
- 4.0.1
-
create
Creates a type info object suitable for a macro.- Parameters:
index- a non-null index in which to locate referencesmacro- a macro to create a type info for- Since:
- 4.0.1
-
create
- Since:
- 5.1
-
getCElementType
public int getCElementType()Description copied from interface:ITypeInfoReturns the CElement type.- Specified by:
getCElementTypein interfaceITypeInfo- Returns:
- ICElement.C_NAMESPACE, C_CLASS, C_STRUCT, C_UNION, C_ENUMERATION, or C_TYPEDEF, or zero if unknown type.
-
getEnclosingProject
Description copied from interface:ITypeInfoReturns the enclosing project.- Specified by:
getEnclosingProjectin interfaceITypeInfo
-
getName
Description copied from interface:ITypeInfoReturns the type name. -
getQualifiedTypeName
Description copied from interface:ITypeInfoReturns the qualified type name.- Specified by:
getQualifiedTypeNamein interfaceITypeInfo
-
getParameters
- Specified by:
getParametersin interfaceIFunctionInfo- Returns:
- the function parameter types
-
getReturnType
- Specified by:
getReturnTypein interfaceIFunctionInfo- Returns:
- the function return type
-
hashCode
public int hashCode() -
equals
Type info objects are equal if they compute the same references. -
isFileLocal
public boolean isFileLocal()- Since:
- 5.1
-
getResolvedReference
Description copied from interface:ITypeInfoReturns the real location where type was declared.- Specified by:
getResolvedReferencein interfaceITypeInfo- Returns:
- the parsed source reference (with offset and length),
or
nullif not found.
-
getReferences
Description copied from interface:ITypeInfoReturns the originating locations where this type was declared.- Specified by:
getReferencesin interfaceITypeInfo- Returns:
- all known source references, or an empty array if none found.
-
addDerivedReference
Deprecated.- Specified by:
addDerivedReferencein interfaceITypeInfo- Restriction:
- This method is not intended to be referenced by clients.
-
addReference
Deprecated.- Specified by:
addReferencein interfaceITypeInfo- Restriction:
- This method is not intended to be referenced by clients.
-
canSubstituteFor
Deprecated.- Specified by:
canSubstituteForin interfaceITypeInfo- Restriction:
- This method is not intended to be referenced by clients.
-
encloses
Deprecated. -
exists
Deprecated. -
getDerivedReferences
Deprecated.- Specified by:
getDerivedReferencesin interfaceITypeInfo- Restriction:
- This method is not intended to be referenced by clients.
-
getEnclosedTypes
Deprecated.- Specified by:
getEnclosedTypesin interfaceITypeInfo- Restriction:
- This method is not intended to be referenced by clients.
-
getEnclosedTypes
Deprecated.- Specified by:
getEnclosedTypesin interfaceITypeInfo- Restriction:
- This method is not intended to be referenced by clients.
-
getEnclosingNamespace
Deprecated.- Specified by:
getEnclosingNamespacein interfaceITypeInfo- Restriction:
- This method is not intended to be referenced by clients.
-
getEnclosingType
Deprecated.- Specified by:
getEnclosingTypein interfaceITypeInfo- Restriction:
- This method is not intended to be referenced by clients.
-
getEnclosingType
Deprecated.- Specified by:
getEnclosingTypein interfaceITypeInfo- Restriction:
- This method is not intended to be referenced by clients.
-
getRootNamespace
Deprecated.- Specified by:
getRootNamespacein interfaceITypeInfo- Restriction:
- This method is not intended to be referenced by clients.
-
getSubTypes
Deprecated.- Specified by:
getSubTypesin interfaceITypeInfo- Restriction:
- This method is not intended to be referenced by clients.
-
getSuperTypeAccess
Deprecated.- Specified by:
getSuperTypeAccessin interfaceITypeInfo- Restriction:
- This method is not intended to be referenced by clients.
-
getSuperTypes
Deprecated.- Specified by:
getSuperTypesin interfaceITypeInfo- Restriction:
- This method is not intended to be referenced by clients.
-
hasEnclosedTypes
Deprecated.- Specified by:
hasEnclosedTypesin interfaceITypeInfo- Restriction:
- This method is not intended to be referenced by clients.
-
hasSubTypes
Deprecated.- Specified by:
hasSubTypesin interfaceITypeInfo- Restriction:
- This method is not intended to be referenced by clients.
-
hasSuperTypes
Deprecated.- Specified by:
hasSuperTypesin interfaceITypeInfo- Restriction:
- This method is not intended to be referenced by clients.
-
isClass
Deprecated. -
isEnclosed
Deprecated.- Specified by:
isEnclosedin interfaceITypeInfo- Restriction:
- This method is not intended to be referenced by clients.
-
isEnclosed
Deprecated.- Specified by:
isEnclosedin interfaceITypeInfo- Restriction:
- This method is not intended to be referenced by clients.
-
isEnclosedType
Deprecated.- Specified by:
isEnclosedTypein interfaceITypeInfo- Restriction:
- This method is not intended to be referenced by clients.
-
isEnclosingType
Deprecated.- Specified by:
isEnclosingTypein interfaceITypeInfo- Restriction:
- This method is not intended to be referenced by clients.
-
isReferenced
Deprecated.- Specified by:
isReferencedin interfaceITypeInfo- Restriction:
- This method is not intended to be referenced by clients.
-
isUndefinedType
Deprecated.- Specified by:
isUndefinedTypein interfaceITypeInfo- Restriction:
- This method is not intended to be referenced by clients.
-
setCElementType
Deprecated.- Specified by:
setCElementTypein interfaceITypeInfo- Restriction:
- This method is not intended to be referenced by clients.
-