org.aspectj.org.eclipse.jdt.internal.core
Class ResolvedSourceType
java.lang.Object
PlatformObject
org.aspectj.org.eclipse.jdt.internal.core.JavaElement
org.aspectj.org.eclipse.jdt.internal.core.SourceRefElement
org.aspectj.org.eclipse.jdt.internal.core.Member
org.aspectj.org.eclipse.jdt.internal.core.NamedMember
org.aspectj.org.eclipse.jdt.internal.core.SourceType
org.aspectj.org.eclipse.jdt.internal.core.ResolvedSourceType
- All Implemented Interfaces:
- IAnnotatable, IJavaElement, IMember, IParent, ISourceManipulation, ISourceReference, IType
- Direct Known Subclasses:
- AssistSourceType
public class ResolvedSourceType
- extends SourceType
Handle representing a source type that is resolved.
The uniqueKey contains the genericTypeSignature of the resolved type. Use BindingKey to decode it.
| Fields inherited from class org.aspectj.org.eclipse.jdt.internal.core.NamedMember |
name |
| Fields inherited from class org.aspectj.org.eclipse.jdt.internal.core.JavaElement |
JEM_ANNOTATION, JEM_CLASSFILE, JEM_COMPILATIONUNIT, JEM_COUNT, JEM_ESCAPE, JEM_FIELD, JEM_IMPORTDECLARATION, JEM_INITIALIZER, JEM_JAVAPROJECT, JEM_LOCALVARIABLE, JEM_METHOD, JEM_PACKAGEDECLARATION, JEM_PACKAGEFRAGMENT, JEM_PACKAGEFRAGMENTROOT, JEM_TYPE, JEM_TYPE_PARAMETER, NO_ELEMENTS, NO_INFO, parent |
| Fields inherited from interface org.aspectj.org.eclipse.jdt.core.IJavaElement |
ANNOTATION, CLASS_FILE, COMPILATION_UNIT, FIELD, IMPORT_CONTAINER, IMPORT_DECLARATION, INITIALIZER, JAVA_MODEL, JAVA_PROJECT, LOCAL_VARIABLE, METHOD, PACKAGE_DECLARATION, PACKAGE_FRAGMENT, PACKAGE_FRAGMENT_ROOT, TYPE, TYPE_PARAMETER |
|
Method Summary |
java.lang.String |
getFullyQualifiedParameterizedName()
Returns this type's fully qualified name using a '.' enclosing type separator
followed by its type parameters between angle brackets if it is a generic type. |
java.lang.String |
getKey()
Returns the binding key for this type only if the given type is resolved. |
boolean |
isResolved()
Returns whether this type represents a resolved type. |
protected void |
toStringInfo(int tab,
java.lang.StringBuffer buffer,
java.lang.Object info,
boolean showResolvedInfo)
Debugging purposes |
JavaElement |
unresolved()
|
| Methods inherited from class org.aspectj.org.eclipse.jdt.internal.core.SourceType |
closing, codeComplete, codeComplete, codeComplete, codeComplete, codeComplete, createField, createInitializer, createMethod, createType, equals, findMethods, getAnnotations, getChildrenForCategory, getDeclaringType, getElementType, getField, getFields, getFullyQualifiedName, getFullyQualifiedName, getHandleFromMemento, getInitializer, getInitializers, getMethod, getMethods, getPackageFragment, getPrimaryElement, getSuperclassName, getSuperclassTypeSignature, getSuperInterfaceNames, getSuperInterfaceTypeSignatures, getType, getTypeParameter, getTypeParameters, getTypeParameterSignatures, getTypeQualifiedName, getTypeQualifiedName, getTypes, isAnnotation, isAnonymous, isClass, isEnum, isInterface, isLocal, isMember, loadTypeHierachy, loadTypeHierachy, newSupertypeHierarchy, newSupertypeHierarchy, newSupertypeHierarchy, newSupertypeHierarchy, newTypeHierarchy, newTypeHierarchy, newTypeHierarchy, newTypeHierarchy, newTypeHierarchy, newTypeHierarchy, resolved |
| Methods inherited from class org.aspectj.org.eclipse.jdt.internal.core.Member |
areSimilarMethods, convertConstant, findMethods, getCategories, getClassFile, getFlags, getHandleMementoDelimiter, getJavadocRange, getNameRange, getOuterMostLocalContext, getType, getTypeRoot, isBinary, isMainMethod, isReadOnly, readableName |
| Methods inherited from class org.aspectj.org.eclipse.jdt.internal.core.SourceRefElement |
copy, createElementInfo, delete, findNode, generateInfos, getAnnotation, getCompilationUnit, getCorrespondingResource, getHandleMemento, getHandleUpdatingCountFromMemento, getOccurrenceCount, getOpenableParent, getPath, getSource, getSourceRange, getUnderlyingResource, hasChildren, isStructureKnown, move, rename, resource, toStringName |
| Methods inherited from class org.aspectj.org.eclipse.jdt.internal.core.JavaElement |
close, escapeMementoName, exists, getAncestor, getAttachedJavadoc, getChildren, getChildrenOfType, getElementInfo, getElementInfo, getHandleFromMemento, getHandleIdentifier, getHandleMemento, getJavadocBaseLocation, getJavaModel, getJavaProject, getLibraryJavadocLocation, getOpenable, getParent, getPrimaryElement, getResource, getSchedulingRule, getSourceElementAt, getSourceMapper, getURLContents, hashCode, isAncestorOf, newDoesNotExistStatus, newJavaModelException, newNotPresentException, openWhenClosed, tabString, toDebugString, toString, toString, toStringAncestors, toStringChildren, toStringInfo, toStringWithAncestors, toStringWithAncestors |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.aspectj.org.eclipse.jdt.core.IJavaElement |
exists, getAncestor, getAttachedJavadoc, getCorrespondingResource, getHandleIdentifier, getJavaModel, getJavaProject, getOpenable, getParent, getPath, getPrimaryElement, getResource, getSchedulingRule, getUnderlyingResource, isReadOnly, isStructureKnown |
ResolvedSourceType
public ResolvedSourceType(JavaElement parent,
java.lang.String name,
java.lang.String uniqueKey)
getFullyQualifiedParameterizedName
public java.lang.String getFullyQualifiedParameterizedName()
throws JavaModelException
- Description copied from interface:
IType
- Returns this type's fully qualified name using a '.' enclosing type separator
followed by its type parameters between angle brackets if it is a generic type.
For example, "p.X<T>", "java.util.Map<java.lang.String, p.X>"
- Specified by:
getFullyQualifiedParameterizedName in interface IType- Overrides:
getFullyQualifiedParameterizedName in class SourceType
- Returns:
- the fully qualified parameterized representation of this type
- Throws:
JavaModelException - if this element does not exist or if an
exception occurs while accessing its corresponding resource.
getKey
public java.lang.String getKey()
- Description copied from interface:
IType
- Returns the binding key for this type only if the given type is
resolved.
A binding key is a key that uniquely identifies this type. It allows access
to generic info for parameterized types.
If the given type is not resolved, the returned key is simply the java element's key.
- Specified by:
getKey in interface IType- Overrides:
getKey in class SourceType
- Returns:
- the binding key for this type
- See Also:
IBinding.getKey(),
BindingKey,
IType.isResolved()
isResolved
public boolean isResolved()
- Description copied from interface:
IType
- Returns whether this type represents a resolved type.
If a type is resolved, its key contains resolved information.
- Specified by:
isResolved in interface IType- Overrides:
isResolved in class SourceType
- Returns:
- whether this type represents a resolved type.
toStringInfo
protected void toStringInfo(int tab,
java.lang.StringBuffer buffer,
java.lang.Object info,
boolean showResolvedInfo)
- Description copied from class:
JavaElement
- Debugging purposes
- Overrides:
toStringInfo in class SourceType
showResolvedInfo - TODO
unresolved
public JavaElement unresolved()
- Overrides:
unresolved in class JavaElement