public class IndexTypeInfo extends Object implements ITypeInfo, IFunctionInfo
KNOWN_TYPES| Modifier and Type | Method and Description |
|---|---|
void |
addDerivedReference(ITypeReference location)
Deprecated.
|
void |
addReference(ITypeReference location)
Deprecated.
|
boolean |
canSubstituteFor(ITypeInfo info)
Deprecated.
|
static IndexTypeInfo |
create(IIndex index,
IIndexBinding binding)
Creates a type info suitable for the binding.
|
static IndexTypeInfo |
create(IIndex index,
IIndexMacro macro)
Creates a type info object suitable for a macro.
|
static IndexTypeInfo |
create(IndexTypeInfo rhs,
ITypeReference ref) |
boolean |
encloses(ITypeInfo info)
Deprecated.
|
boolean |
equals(Object obj)
Type info objects are equal if they compute the same references.
|
boolean |
exists()
Deprecated.
|
int |
getCElementType()
Returns the CElement type.
|
ITypeReference[] |
getDerivedReferences()
Deprecated.
|
ITypeInfo[] |
getEnclosedTypes()
Deprecated.
|
ITypeInfo[] |
getEnclosedTypes(int[] kinds)
Deprecated.
|
ITypeInfo |
getEnclosingNamespace(boolean includeGlobalNamespace)
Deprecated.
|
ICProject |
getEnclosingProject()
Returns the enclosing project.
|
ITypeInfo |
getEnclosingType()
Deprecated.
|
ITypeInfo |
getEnclosingType(int[] kinds)
Deprecated.
|
String |
getName()
Returns the type name.
|
String[] |
getParameters() |
IQualifiedTypeName |
getQualifiedTypeName()
Returns the qualified type name.
|
ITypeReference[] |
getReferences()
Returns the originating locations where this type was declared.
|
ITypeReference |
getResolvedReference()
Returns the real location where type was declared.
|
String |
getReturnType() |
ITypeInfo |
getRootNamespace(boolean includeGlobalNamespace)
Deprecated.
|
ITypeInfo[] |
getSubTypes()
Deprecated.
|
ASTAccessVisibility |
getSuperTypeAccess(ITypeInfo subType)
Deprecated.
|
ITypeInfo[] |
getSuperTypes()
Deprecated.
|
boolean |
hasEnclosedTypes()
Deprecated.
|
int |
hashCode() |
boolean |
hasSubTypes()
Deprecated.
|
boolean |
hasSuperTypes()
Deprecated.
|
boolean |
isClass()
Deprecated.
|
boolean |
isEnclosed(ITypeInfo info)
Deprecated.
|
boolean |
isEnclosed(ITypeSearchScope scope)
Deprecated.
|
boolean |
isEnclosedType()
Deprecated.
|
boolean |
isEnclosingType()
Deprecated.
|
boolean |
isFileLocal() |
boolean |
isReferenced(ITypeSearchScope scope)
Deprecated.
|
boolean |
isUndefinedType()
Deprecated.
|
void |
setCElementType(int type)
Deprecated.
|
public static IndexTypeInfo create(IIndex index, IIndexBinding binding)
index - a non-null index in which to locate referencesbinding - public static IndexTypeInfo create(IIndex index, IIndexMacro macro)
index - a non-null index in which to locate referencesmacro - a macro to create a type info forpublic static IndexTypeInfo create(IndexTypeInfo rhs, ITypeReference ref)
public int getCElementType()
ITypeInfogetCElementType in interface ITypeInfopublic ICProject getEnclosingProject()
ITypeInfogetEnclosingProject in interface ITypeInfopublic IQualifiedTypeName getQualifiedTypeName()
ITypeInfogetQualifiedTypeName in interface ITypeInfopublic String[] getParameters()
getParameters in interface IFunctionInfopublic String getReturnType()
getReturnType in interface IFunctionInfopublic boolean equals(Object obj)
public boolean isFileLocal()
public ITypeReference getResolvedReference()
ITypeInfogetResolvedReference in interface ITypeInfonull if not found.public ITypeReference[] getReferences()
ITypeInfogetReferences in interface ITypeInfo@Deprecated public void addDerivedReference(ITypeReference location)
addDerivedReference in interface ITypeInfo@Deprecated public void addReference(ITypeReference location)
addReference in interface ITypeInfo@Deprecated public boolean canSubstituteFor(ITypeInfo info)
canSubstituteFor in interface ITypeInfo@Deprecated public boolean encloses(ITypeInfo info)
@Deprecated public boolean exists()
@Deprecated public ITypeReference[] getDerivedReferences()
getDerivedReferences in interface ITypeInfo@Deprecated public ITypeInfo[] getEnclosedTypes()
getEnclosedTypes in interface ITypeInfo@Deprecated public ITypeInfo[] getEnclosedTypes(int[] kinds)
getEnclosedTypes in interface ITypeInfo@Deprecated public ITypeInfo getEnclosingNamespace(boolean includeGlobalNamespace)
getEnclosingNamespace in interface ITypeInfo@Deprecated public ITypeInfo getEnclosingType()
getEnclosingType in interface ITypeInfo@Deprecated public ITypeInfo getEnclosingType(int[] kinds)
getEnclosingType in interface ITypeInfo@Deprecated public ITypeInfo getRootNamespace(boolean includeGlobalNamespace)
getRootNamespace in interface ITypeInfo@Deprecated public ITypeInfo[] getSubTypes()
getSubTypes in interface ITypeInfo@Deprecated public ASTAccessVisibility getSuperTypeAccess(ITypeInfo subType)
getSuperTypeAccess in interface ITypeInfo@Deprecated public ITypeInfo[] getSuperTypes()
getSuperTypes in interface ITypeInfo@Deprecated public boolean hasEnclosedTypes()
hasEnclosedTypes in interface ITypeInfo@Deprecated public boolean hasSubTypes()
hasSubTypes in interface ITypeInfo@Deprecated public boolean hasSuperTypes()
hasSuperTypes in interface ITypeInfo@Deprecated public boolean isClass()
@Deprecated public boolean isEnclosed(ITypeInfo info)
isEnclosed in interface ITypeInfo@Deprecated public boolean isEnclosed(ITypeSearchScope scope)
isEnclosed in interface ITypeInfo@Deprecated public boolean isEnclosedType()
isEnclosedType in interface ITypeInfo@Deprecated public boolean isEnclosingType()
isEnclosingType in interface ITypeInfo@Deprecated public boolean isReferenced(ITypeSearchScope scope)
isReferenced in interface ITypeInfo@Deprecated public boolean isUndefinedType()
isUndefinedType in interface ITypeInfo@Deprecated public void setCElementType(int type)
setCElementType in interface ITypeInfoCopyright (c) IBM Corp. and others 2004, 2020. All Rights Reserved.