|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectPlatformObject
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
org.aspectj.org.eclipse.jdt.internal.codeassist.impl.AssistSourceType
public class AssistSourceType
| Field Summary |
|---|
| Fields inherited from class org.aspectj.org.eclipse.jdt.internal.core.NamedMember |
|---|
name |
| Fields inherited from class org.aspectj.org.eclipse.jdt.internal.core.SourceRefElement |
|---|
occurrenceCount |
| 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 |
| Constructor Summary | |
|---|---|
AssistSourceType(JavaElement parent,
java.lang.String name,
java.util.Map bindingCache,
java.util.Map infoCache)
|
|
| Method Summary | |
|---|---|
IAnnotation |
getAnnotation(java.lang.String annotationName)
Returns the annotation with the given name declared on this element. |
java.lang.Object |
getElementInfo(IProgressMonitor monitor)
Returns the info for this handle. |
IField |
getField(java.lang.String fieldName)
Returns the field with the specified name in this type (for example, "bar"). |
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. |
IInitializer |
getInitializer(int count)
Returns the initializer with the specified position relative to the order they are defined in the source. |
java.lang.String |
getKey()
Returns the binding key for this type only if the given type is resolved. |
IMethod |
getMethod(java.lang.String selector,
java.lang.String[] parameterTypeSignatures)
Returns the method with the specified name and parameter types in this type (for example, "foo", {"I", "QString;"}). |
IType |
getType(java.lang.String typeName)
Returns the member type declared in this type with the given simple name. |
IType |
getType(java.lang.String typeName,
int count)
Returns the local or anonymous type declared in this source member with the given simple name and/or with the specified position relative to the order they are defined in the source. |
ITypeParameter |
getTypeParameter(java.lang.String typeParameterName)
Returns the type parameter declared in this type with the given name. |
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 |
| Methods inherited from class org.aspectj.org.eclipse.jdt.internal.core.ResolvedSourceType |
|---|
unresolved |
| Methods inherited from class org.aspectj.org.eclipse.jdt.internal.core.NamedMember |
|---|
getElementName, getFullyQualifiedName, getFullyQualifiedParameterizedName, getKey, getKey, getKey, getTypeQualifiedName, resolveType, resolveType |
| Methods inherited from class org.aspectj.org.eclipse.jdt.internal.core.Member |
|---|
areSimilarMethods, convertConstant, findMethods, getCategories, getClassFile, getFlags, getHandleMementoDelimiter, getJavadocRange, getNameRange, getOuterMostLocalContext, getTypeRoot, isBinary, isMainMethod, isReadOnly, readableName |
| Methods inherited from class org.aspectj.org.eclipse.jdt.internal.core.SourceRefElement |
|---|
copy, createElementInfo, delete, findNode, generateInfos, 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, 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.IType |
|---|
getElementName, resolveType, resolveType |
| Methods inherited from interface org.aspectj.org.eclipse.jdt.core.IMember |
|---|
getCategories, getClassFile, getCompilationUnit, getFlags, getJavadocRange, getOccurrenceCount, getTypeRoot, isBinary |
| 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 |
| Methods inherited from interface org.aspectj.org.eclipse.jdt.core.ISourceReference |
|---|
exists, getNameRange, getSource, getSourceRange |
| Methods inherited from interface org.aspectj.org.eclipse.jdt.core.ISourceManipulation |
|---|
copy, delete, move, rename |
| Methods inherited from interface org.aspectj.org.eclipse.jdt.core.IParent |
|---|
getChildren, hasChildren |
| Constructor Detail |
|---|
public AssistSourceType(JavaElement parent,
java.lang.String name,
java.util.Map bindingCache,
java.util.Map infoCache)
| Method Detail |
|---|
public java.lang.Object getElementInfo(IProgressMonitor monitor)
throws JavaModelException
JavaElement
getElementInfo in class JavaElementJavaModelException - if the element is not present or not accessible
public java.lang.String getFullyQualifiedParameterizedName()
throws JavaModelException
IType
getFullyQualifiedParameterizedName in interface ITypegetFullyQualifiedParameterizedName in class ResolvedSourceTypeJavaModelException - if this element does not exist or if an
exception occurs while accessing its corresponding resource.public java.lang.String getKey()
ITyperesolved.
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.
getKey in interface ITypegetKey in class ResolvedSourceTypeIBinding.getKey(),
BindingKey,
IType.isResolved()public boolean isResolved()
IType
isResolved in interface ITypeisResolved in class ResolvedSourceType
protected void toStringInfo(int tab,
java.lang.StringBuffer buffer,
java.lang.Object info,
boolean showResolvedInfo)
JavaElement
toStringInfo in class ResolvedSourceTypeshowResolvedInfo - TODOpublic IAnnotation getAnnotation(java.lang.String annotationName)
IAnnotatable
getAnnotation in interface IAnnotatablegetAnnotation in class SourceRefElementannotationName - the given simple name
public IField getField(java.lang.String fieldName)
IType"bar").
This is a handle-only method. The field may or may not exist.
getField in interface ITypegetField in class SourceTypefieldName - the given name
IType.getField(java.lang.String)public IInitializer getInitializer(int count)
IType
getInitializer in interface ITypegetInitializer in class SourceTypecount - the specified position
IType
public IMethod getMethod(java.lang.String selector,
java.lang.String[] parameterTypeSignatures)
IType"foo", {"I", "QString;"}).
To get the handle for a constructor, the name specified must be the
simple name of the enclosing type.
This is a handle-only method. The method may or may not be present.
The type signatures may be either unresolved (for source types)
or resolved (for binary types), and either basic (for basic types)
or rich (for parameterized types). See Signature for details.
getMethod in interface ITypegetMethod in class SourceTypeselector - the given nameparameterTypeSignatures - the given parameter types
IType.getMethod(java.lang.String, java.lang.String[])public IType getType(java.lang.String typeName)
IType
getType in interface ITypegetType in class SourceTypetypeName - the given simple name
IType
public IType getType(java.lang.String typeName,
int count)
IMemberRuntimeException if this member is not a source member.
getType in interface IMembergetType in class MembertypeName - the given simple namecount - the specified position
IMemberpublic ITypeParameter getTypeParameter(java.lang.String typeParameterName)
IType
getTypeParameter in interface ITypegetTypeParameter in class SourceTypetypeParameterName - the given simple name
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||