|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.aspectj.org.eclipse.jdt.internal.core.SourceTypeElementInfo
public class SourceTypeElementInfo
Element info for an IType element that originated from source.
| Field Summary | |
|---|---|
protected java.util.HashMap |
categories
|
protected IJavaElement[] |
children
Collection of handles of immediate children of this object. |
protected int |
flags
The modifiers associated with this member. |
protected int |
fSourceRangeEnd
|
protected int |
fSourceRangeStart
|
protected IType |
handle
Backpointer to my type handle - useful for translation from info to handle. |
protected int |
nameEnd
The last position of this member's name in the its openable's buffer. |
protected int |
nameStart
The start position of this member's name in the its openable's buffer. |
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 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
|
| Fields inherited from interface org.aspectj.org.eclipse.jdt.internal.compiler.env.IDependent |
|---|
JAR_FILE_ENTRY_SEPARATOR |
| Constructor Summary | |
|---|---|
SourceTypeElementInfo()
|
|
| Method Summary | |
|---|---|
protected void |
addCategories(IJavaElement element,
char[][] elementCategories)
|
void |
addChild(IJavaElement child)
|
java.lang.Object |
clone()
|
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. |
int |
getNameSourceEnd()
|
int |
getNameSourceStart()
|
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 |
isAnonymousMember()
|
boolean |
isBinaryType()
Answer whether the receiver contains the resolved binary form or the unresolved source form of the type. |
void |
removeChild(IJavaElement child)
|
void |
setChildren(IJavaElement[] children)
|
protected void |
setFlags(int flags)
|
protected void |
setHandle(IType handle)
Sets the handle for this type info |
protected void |
setNameSourceEnd(int end)
Sets the last position of this member's name, relative to its openable's source buffer. |
protected void |
setNameSourceStart(int start)
Sets the start position of this member's name, relative to its openable's source buffer. |
protected void |
setSourceRangeEnd(int end)
|
protected void |
setSourceRangeStart(int start)
|
protected void |
setSuperclassName(char[] superclassName)
Sets the (unqualified) name of this type's superclass |
protected void |
setSuperInterfaceNames(char[][] superInterfaceNames)
Sets the (unqualified) names of the interfaces this type implements or extends |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.aspectj.org.eclipse.jdt.internal.compiler.env.ISourceType |
|---|
getDeclarationSourceEnd, getDeclarationSourceStart, getNameSourceEnd, getNameSourceStart |
| Methods inherited from interface org.aspectj.org.eclipse.jdt.internal.compiler.env.IGenericType |
|---|
getModifiers |
| Field Detail |
|---|
protected 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 char[] superclassName
protected char[][] superInterfaceNames
protected IType handle
protected ITypeParameter[] typeParameters
protected java.util.HashMap categories
protected int flags
ClassFileConstantsprotected int nameStart
protected int nameEnd
protected int fSourceRangeStart
protected int fSourceRangeEnd
protected IJavaElement[] children
| Constructor Detail |
|---|
public SourceTypeElementInfo()
| Method Detail |
|---|
protected void addCategories(IJavaElement element,
char[][] elementCategories)
public java.util.HashMap getCategories()
public ISourceType getEnclosingType()
null if this type is a top level type.
getEnclosingType in interface ISourceTypepublic ISourceField[] getFields()
ISourceType
getFields in interface ISourceTypeISourceTypepublic SourceField[] getFieldHandles()
public char[] getFileName()
IDependent
getFileName in interface IDependentIDependent.getFileName()public IType getHandle()
public InitializerElementInfo[] getInitializers()
public char[][] getInterfaceNames()
ISourceType
getInterfaceNames in interface ISourceTypeISourceTypepublic ISourceType[] getMemberTypes()
ISourceType
getMemberTypes in interface ISourceTypeISourceTypepublic SourceType[] getMemberTypeHandles()
public ISourceMethod[] getMethods()
ISourceType
getMethods in interface ISourceTypeISourceTypepublic SourceMethod[] getMethodHandles()
public char[] getName()
ISourceType
getName in interface ISourceTypeISourceType.getName()public char[] getSuperclassName()
ISourceType
getSuperclassName in interface ISourceTypeISourceTypepublic char[][][] getTypeParameterBounds()
ISourceType
getTypeParameterBounds in interface ISourceTypepublic char[][] getTypeParameterNames()
ISourceType
getTypeParameterNames in interface ISourceTypepublic boolean isBinaryType()
IGenericType
isBinaryType in interface IGenericTypeISourceTypepublic 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()
IGenericType.getModifiers(),
IGenericMethod.getModifiers(),
IGenericField.getModifiers()public int getNameSourceEnd()
ISourceType.getNameSourceEnd(),
ISourceMethod.getNameSourceEnd(),
ISourceField.getNameSourceEnd()public int getNameSourceStart()
ISourceType.getNameSourceStart(),
ISourceMethod.getNameSourceStart(),
ISourceField.getNameSourceStart()protected void setFlags(int flags)
protected void setNameSourceEnd(int end)
protected void setNameSourceStart(int start)
public int getDeclarationSourceEnd()
ISourceType.getDeclarationSourceEnd(),
ISourceMethod.getDeclarationSourceEnd(),
ISourceField.getDeclarationSourceEnd()public int getDeclarationSourceStart()
ISourceType.getDeclarationSourceStart(),
ISourceMethod.getDeclarationSourceStart(),
ISourceField.getDeclarationSourceStart()protected ISourceRange getSourceRange()
protected void setSourceRangeEnd(int end)
protected void setSourceRangeStart(int start)
public void addChild(IJavaElement child)
public java.lang.Object clone()
clone in class java.lang.Objectpublic IJavaElement[] getChildren()
public void removeChild(IJavaElement child)
public void setChildren(IJavaElement[] children)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||