public interface ITypeDefinition extends IMemberedDefinition
| Modifier and Type | Method and Description |
|---|---|
ITypeNode |
getNode()
Returns the
ITypeNode from which this definition was created, if
the definition came from the AST for a source file. |
INamespaceDefinition |
getProtectedNamespaceReference()
Gets the
INamespaceDefinition that represents the protected
namespace for this type. |
INamespaceDefinition |
getStaticProtectedNamespaceReference()
Gets the
INamespaceDefinition that represents the static
protected namespace for this type. |
boolean |
isInstanceOf(ITypeDefinition type,
ICompilerProject project)
Determines whether an "is-a" relationship exists between two classes or
interfaces.
|
boolean |
isInstanceOf(String qualifiedName,
ICompilerProject project)
A variant of
isInstanceOf which takes a fully-qualified type
name rather than an ITypeDefinition. |
Set<IInterfaceDefinition> |
resolveAllInterfaces(ICompilerProject project) |
Iterable<ITypeDefinition> |
typeIteratable(ICompilerProject project,
boolean skipThis)
Creates an Iterable for enumerating the types of this type.
|
getContainedScopegetExplicitSourceComment, hasExplicitCommentgetAbsoluteEnd, getAbsoluteStart, getAllMetaTags, getAncestorOfType, getBaseName, getBindableEventNames, getColumn, getContainingFilePath, getContainingScope, getContainingSourceFilePath, getDeprecationInfo, getEnd, getEndColumn, getEndLine, getLine, getMetaTagByName, getMetaTagsByName, getModifiers, getNameColumn, getNameEnd, getNameLine, getNamespaceReference, getNameStart, getPackageName, getParent, getQualifiedName, getSourcePath, getStart, getTypeAsDisplayString, getTypeReference, hasMetaTagByName, hasModifier, hasNamespace, isAbstract, isBindable, isBindableStyle, isContingent, isContingentNeeded, isDeprecated, isDynamic, isFinal, isGeneratedEmbedClass, isImplicit, isInProject, isInternal, isNative, isOverride, isPrivate, isProtected, isPublic, isStatic, resolveNamespace, resolveTypeboolean isInstanceOf(ITypeDefinition type, ICompilerProject project)
If this is an IClassDefinition and type
is an IClassDefinition, this method determines whether
this is a subclass of type.
If this is an IClassDefinition and type
is an IInterfaceDefinition, this method determines whether
this is implements type.
If this is an IInterfaceDefinition and
type is an IInterfaceDefinition, this method
determines whether this is a subinterface of
type.
A class or interface is considered an instance of itself.
type - An ITypeDefinition representing a class or interface.project - The ICompilerProject within which references should
be resolvedboolean isInstanceOf(String qualifiedName, ICompilerProject project)
isInstanceOf which takes a fully-qualified type
name rather than an ITypeDefinition.
While not @deprecated, this method may not do what you want because the scope containing this type definition will be used to resolve the name that is specified rather than some other scope which may actually contain the name in source code.
qualifiedName - A String, such as "flash.display.Sprite"
, that specified a fully-qualified type name.project - The ICompilerProject within which references should
be resolvedIterable<ITypeDefinition> typeIteratable(ICompilerProject project, boolean skipThis)
project - The ICompilerProject within which references
should be resolved.skipThis - A flag indicating whether the enumeration should start
with this type rather than with its supertype.ITypeDefinition objects.ITypeNode getNode()
ITypeNode from which this definition was created, if
the definition came from the AST for a source file.
This method may require the AST to be reloaded or regenerated and therefore may be slow.
getNode in interface IDefinitionSet<IInterfaceDefinition> resolveAllInterfaces(ICompilerProject project)
INamespaceDefinition getProtectedNamespaceReference()
INamespaceDefinition that represents the protected
namespace for this type.INamespaceDefinition that represents the protected
namespace for this type.INamespaceDefinition getStaticProtectedNamespaceReference()
INamespaceDefinition that represents the static
protected namespace for this type.INamespaceDefinition that represents the static
protected namespace for this type.Copyright © 2023 The Apache Software Foundation. All rights reserved.