public class SourceTypeElementInfo extends AnnotatableInfo implements ISourceType
| Modifier and Type | Field and Description |
|---|---|
protected java.util.HashMap |
categories |
protected IJavaElement[] |
children |
protected int |
flags
The modifiers associated with this member.
|
protected IType |
handle
Backpointer to my type handle - useful for translation
from info to handle.
|
protected static SourceField[] |
NO_FIELDS |
protected static ISourceImport[] |
NO_IMPORTS |
protected static InitializerElementInfo[] |
NO_INITIALIZERS |
protected static SourceMethod[] |
NO_METHODS |
protected static SourceType[] |
NO_TYPES |
protected int |
sourceRangeEnd |
protected int |
sourceRangeStart |
protected char[] |
superclassName
The name of the superclass for this type.
|
protected char[][] |
superInterfaceNames
The names of the interfaces this type implements or
extends.
|
protected ITypeParameter[] |
typeParameters |
annotations, nameEnd, nameStartJAR_FILE_ENTRY_SEPARATOR| Constructor and Description |
|---|
SourceTypeElementInfo() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addCategories(IJavaElement element,
char[][] elementCategories) |
java.util.HashMap |
getCategories() |
IJavaElement[] |
getChildren() |
int |
getDeclarationSourceEnd() |
int |
getDeclarationSourceStart() |
ISourceType |
getEnclosingType()
Returns the ISourceType that is the enclosing type for this
type, or
null if this type is a top level type. |
SourceField[] |
getFieldHandles() |
ISourceField[] |
getFields()
Answer the receiver's fields.
|
char[] |
getFileName()
Answer the file name which defines the type.
|
IType |
getHandle()
Returns the handle for this type info
|
InitializerElementInfo[] |
getInitializers() |
char[][] |
getInterfaceNames()
Answer the unresolved names of the receiver's interfaces
or null if the array is empty.
|
SourceType[] |
getMemberTypeHandles() |
ISourceType[] |
getMemberTypes()
Answer the receiver's member types.
|
SourceMethod[] |
getMethodHandles() |
ISourceMethod[] |
getMethods()
Answer the receiver's methods.
|
int |
getModifiers() |
char[] |
getName()
Answer the simple source name of the receiver.
|
protected ISourceRange |
getSourceRange() |
char[] |
getSuperclassName()
Answer the unresolved name of the receiver's superclass
or null if it does not have one.
|
char[][][] |
getTypeParameterBounds()
Answer the array of bound names of the receiver's type parameters.
|
char[][] |
getTypeParameterNames()
Answer the names of the receiver's type parameters.
|
boolean |
isAnonymous()
Answer whether the receiver type is anonymous
|
boolean |
isAnonymousMember() |
boolean |
isBinaryType()
Answer whether the receiver contains the resolved binary form
or the unresolved source form of the type.
|
protected void |
setFlags(int flags) |
protected void |
setHandle(IType handle)
Sets the handle for this type info
|
protected void |
setSourceRangeEnd(int end) |
protected void |
setSourceRangeStart(int start) |
protected void |
setSuperclassName(char[] superclassName)
Sets the (unresolved) name of this type's superclass
|
protected void |
setSuperInterfaceNames(char[][] superInterfaceNames)
Sets the (unresolved) names of the interfaces this type implements or extends
|
java.lang.String |
toString() |
getNameRange, getNameSourceEnd, getNameSourceStart, setNameSourceEnd, setNameSourceStartcloneequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetDeclarationSourceEnd, getDeclarationSourceStart, getNameSourceEnd, getNameSourceStartgetModifiersprotected static final ISourceImport[] NO_IMPORTS
protected static final InitializerElementInfo[] NO_INITIALIZERS
protected static final SourceField[] NO_FIELDS
protected static final SourceMethod[] NO_METHODS
protected static final SourceType[] NO_TYPES
protected IJavaElement[] children
protected char[] superclassName
protected char[][] superInterfaceNames
protected IType handle
protected ITypeParameter[] typeParameters
protected java.util.HashMap categories
protected int flags
ClassFileConstantsprotected int sourceRangeStart
protected int sourceRangeEnd
protected void addCategories(IJavaElement element, char[][] elementCategories)
public java.util.HashMap getCategories()
public IJavaElement[] getChildren()
getChildren in class JavaElementInfopublic ISourceType getEnclosingType()
null if this type is a top level type.getEnclosingType in interface ISourceTypepublic ISourceField[] getFields()
ISourceTypegetFields in interface ISourceTypeISourceTypepublic SourceField[] getFieldHandles()
public char[] getFileName()
IDependentgetFileName in interface IDependentIDependent.getFileName()public IType getHandle()
public InitializerElementInfo[] getInitializers()
public char[][] getInterfaceNames()
ISourceTypegetInterfaceNames in interface ISourceTypeISourceTypepublic ISourceType[] getMemberTypes()
ISourceTypegetMemberTypes in interface ISourceTypeISourceTypepublic SourceType[] getMemberTypeHandles()
public ISourceMethod[] getMethods()
ISourceTypegetMethods in interface ISourceTypeISourceTypepublic SourceMethod[] getMethodHandles()
public char[] getName()
ISourceTypegetName in interface ISourceTypeISourceType.getName()public char[] getSuperclassName()
ISourceTypegetSuperclassName in interface ISourceTypeISourceTypepublic char[][][] getTypeParameterBounds()
ISourceTypegetTypeParameterBounds in interface ISourceTypepublic char[][] getTypeParameterNames()
ISourceTypegetTypeParameterNames in interface ISourceTypepublic boolean isBinaryType()
IGenericTypeisBinaryType in interface IGenericTypeISourceTypepublic boolean isAnonymous()
ISourceTypeisAnonymous in interface ISourceTypepublic boolean isAnonymousMember()
protected void setHandle(IType handle)
protected void setSuperclassName(char[] superclassName)
protected void setSuperInterfaceNames(char[][] superInterfaceNames)
public java.lang.String toString()
toString in class java.lang.Objectpublic int getModifiers()
protected void setFlags(int flags)
public int getDeclarationSourceEnd()
public int getDeclarationSourceStart()
protected ISourceRange getSourceRange()
protected void setSourceRangeEnd(int end)
protected void setSourceRangeStart(int start)