Package org.eclipse.cdt.core.browser
Class IndexTypeInfo
- java.lang.Object
-
- org.eclipse.cdt.core.browser.IndexTypeInfo
-
- All Implemented Interfaces:
IFunctionInfo,ITypeInfo
public class IndexTypeInfo extends java.lang.Object implements ITypeInfo, IFunctionInfo
- 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
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidaddDerivedReference(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.booleanencloses(ITypeInfo info)Deprecated.booleanequals(java.lang.Object obj)Type info objects are equal if they compute the same references.booleanexists()Deprecated.intgetCElementType()Returns the CElement type.ITypeReference[]getDerivedReferences()Deprecated.ITypeInfo[]getEnclosedTypes()Deprecated.ITypeInfo[]getEnclosedTypes(int[] kinds)Deprecated.ITypeInfogetEnclosingNamespace(boolean includeGlobalNamespace)Deprecated.ICProjectgetEnclosingProject()Returns the enclosing project.ITypeInfogetEnclosingType()Deprecated.ITypeInfogetEnclosingType(int[] kinds)Deprecated.java.lang.StringgetName()Returns the type name.java.lang.String[]getParameters()IQualifiedTypeNamegetQualifiedTypeName()Returns the qualified type name.ITypeReference[]getReferences()Returns the originating locations where this type was declared.ITypeReferencegetResolvedReference()Returns the real location where type was declared.java.lang.StringgetReturnType()ITypeInfogetRootNamespace(boolean includeGlobalNamespace)Deprecated.ITypeInfo[]getSubTypes()Deprecated.ASTAccessVisibilitygetSuperTypeAccess(ITypeInfo subType)Deprecated.ITypeInfo[]getSuperTypes()Deprecated.booleanhasEnclosedTypes()Deprecated.inthashCode()booleanhasSubTypes()Deprecated.booleanhasSuperTypes()Deprecated.booleanisClass()Deprecated.booleanisEnclosed(ITypeInfo info)Deprecated.booleanisEnclosed(ITypeSearchScope scope)Deprecated.booleanisEnclosedType()Deprecated.booleanisEnclosingType()Deprecated.booleanisFileLocal()booleanisReferenced(ITypeSearchScope scope)Deprecated.booleanisUndefinedType()Deprecated.voidsetCElementType(int type)Deprecated.
-
-
-
Method Detail
-
create
public static IndexTypeInfo create(IIndex index, IIndexBinding binding)
Creates a type info suitable for the binding.- Parameters:
index- a non-null index in which to locate referencesbinding-- Since:
- 4.0.1
-
create
public static IndexTypeInfo create(IIndex index, IIndexMacro macro)
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
public static IndexTypeInfo create(IndexTypeInfo rhs, ITypeReference ref)
- 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
public ICProject getEnclosingProject()
Description copied from interface:ITypeInfoReturns the enclosing project.- Specified by:
getEnclosingProjectin interfaceITypeInfo
-
getName
public java.lang.String getName()
Description copied from interface:ITypeInfoReturns the type name.
-
getQualifiedTypeName
public IQualifiedTypeName getQualifiedTypeName()
Description copied from interface:ITypeInfoReturns the qualified type name.- Specified by:
getQualifiedTypeNamein interfaceITypeInfo
-
getParameters
public java.lang.String[] getParameters()
- Specified by:
getParametersin interfaceIFunctionInfo- Returns:
- the function parameter types
-
getReturnType
public java.lang.String getReturnType()
- Specified by:
getReturnTypein interfaceIFunctionInfo- Returns:
- the function return type
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
Type info objects are equal if they compute the same references.- Overrides:
equalsin classjava.lang.Object
-
isFileLocal
public boolean isFileLocal()
- Since:
- 5.1
-
getResolvedReference
public ITypeReference 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
public ITypeReference[] 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 public void addDerivedReference(ITypeReference location)
Deprecated.- Specified by:
addDerivedReferencein interfaceITypeInfo- Restriction:
- This method is not intended to be referenced by clients.
-
addReference
@Deprecated public void addReference(ITypeReference location)
Deprecated.- Specified by:
addReferencein interfaceITypeInfo- Restriction:
- This method is not intended to be referenced by clients.
-
canSubstituteFor
@Deprecated public boolean canSubstituteFor(ITypeInfo info)
Deprecated.- Specified by:
canSubstituteForin interfaceITypeInfo- Restriction:
- This method is not intended to be referenced by clients.
-
encloses
@Deprecated public boolean encloses(ITypeInfo info)
Deprecated.
-
exists
@Deprecated public boolean exists()
Deprecated.
-
getDerivedReferences
@Deprecated public ITypeReference[] getDerivedReferences()
Deprecated.- Specified by:
getDerivedReferencesin interfaceITypeInfo- Restriction:
- This method is not intended to be referenced by clients.
-
getEnclosedTypes
@Deprecated public ITypeInfo[] getEnclosedTypes()
Deprecated.- Specified by:
getEnclosedTypesin interfaceITypeInfo- Restriction:
- This method is not intended to be referenced by clients.
-
getEnclosedTypes
@Deprecated public ITypeInfo[] getEnclosedTypes(int[] kinds)
Deprecated.- Specified by:
getEnclosedTypesin interfaceITypeInfo- Restriction:
- This method is not intended to be referenced by clients.
-
getEnclosingNamespace
@Deprecated public ITypeInfo getEnclosingNamespace(boolean includeGlobalNamespace)
Deprecated.- Specified by:
getEnclosingNamespacein interfaceITypeInfo- Restriction:
- This method is not intended to be referenced by clients.
-
getEnclosingType
@Deprecated public ITypeInfo getEnclosingType()
Deprecated.- Specified by:
getEnclosingTypein interfaceITypeInfo- Restriction:
- This method is not intended to be referenced by clients.
-
getEnclosingType
@Deprecated public ITypeInfo getEnclosingType(int[] kinds)
Deprecated.- Specified by:
getEnclosingTypein interfaceITypeInfo- Restriction:
- This method is not intended to be referenced by clients.
-
getRootNamespace
@Deprecated public ITypeInfo getRootNamespace(boolean includeGlobalNamespace)
Deprecated.- Specified by:
getRootNamespacein interfaceITypeInfo- Restriction:
- This method is not intended to be referenced by clients.
-
getSubTypes
@Deprecated public ITypeInfo[] getSubTypes()
Deprecated.- Specified by:
getSubTypesin interfaceITypeInfo- Restriction:
- This method is not intended to be referenced by clients.
-
getSuperTypeAccess
@Deprecated public ASTAccessVisibility getSuperTypeAccess(ITypeInfo subType)
Deprecated.- Specified by:
getSuperTypeAccessin interfaceITypeInfo- Restriction:
- This method is not intended to be referenced by clients.
-
getSuperTypes
@Deprecated public ITypeInfo[] getSuperTypes()
Deprecated.- Specified by:
getSuperTypesin interfaceITypeInfo- Restriction:
- This method is not intended to be referenced by clients.
-
hasEnclosedTypes
@Deprecated public boolean hasEnclosedTypes()
Deprecated.- Specified by:
hasEnclosedTypesin interfaceITypeInfo- Restriction:
- This method is not intended to be referenced by clients.
-
hasSubTypes
@Deprecated public boolean hasSubTypes()
Deprecated.- Specified by:
hasSubTypesin interfaceITypeInfo- Restriction:
- This method is not intended to be referenced by clients.
-
hasSuperTypes
@Deprecated public boolean hasSuperTypes()
Deprecated.- Specified by:
hasSuperTypesin interfaceITypeInfo- Restriction:
- This method is not intended to be referenced by clients.
-
isClass
@Deprecated public boolean isClass()
Deprecated.
-
isEnclosed
@Deprecated public boolean isEnclosed(ITypeInfo info)
Deprecated.- Specified by:
isEnclosedin interfaceITypeInfo- Restriction:
- This method is not intended to be referenced by clients.
-
isEnclosed
@Deprecated public boolean isEnclosed(ITypeSearchScope scope)
Deprecated.- Specified by:
isEnclosedin interfaceITypeInfo- Restriction:
- This method is not intended to be referenced by clients.
-
isEnclosedType
@Deprecated public boolean isEnclosedType()
Deprecated.- Specified by:
isEnclosedTypein interfaceITypeInfo- Restriction:
- This method is not intended to be referenced by clients.
-
isEnclosingType
@Deprecated public boolean isEnclosingType()
Deprecated.- Specified by:
isEnclosingTypein interfaceITypeInfo- Restriction:
- This method is not intended to be referenced by clients.
-
isReferenced
@Deprecated public boolean isReferenced(ITypeSearchScope scope)
Deprecated.- Specified by:
isReferencedin interfaceITypeInfo- Restriction:
- This method is not intended to be referenced by clients.
-
isUndefinedType
@Deprecated public boolean isUndefinedType()
Deprecated.- Specified by:
isUndefinedTypein interfaceITypeInfo- Restriction:
- This method is not intended to be referenced by clients.
-
setCElementType
@Deprecated public void setCElementType(int type)
Deprecated.- Specified by:
setCElementTypein interfaceITypeInfo- Restriction:
- This method is not intended to be referenced by clients.
-
-