|
|||||||||
| 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.JavaElementInfo
org.aspectj.org.eclipse.jdt.internal.core.AnnotatableInfo
org.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
|
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
|
| Fields inherited from class org.aspectj.org.eclipse.jdt.internal.core.AnnotatableInfo |
|---|
annotations, nameEnd, nameStart |
| 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)
|
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 |
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 (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 org.aspectj.org.eclipse.jdt.internal.core.AnnotatableInfo |
|---|
getNameRange, getNameSourceEnd, getNameSourceStart, setNameSourceEnd, setNameSourceStart |
| Methods inherited from class org.aspectj.org.eclipse.jdt.internal.core.JavaElementInfo |
|---|
clone |
| 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 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
| Constructor Detail |
|---|
public SourceTypeElementInfo()
| Method Detail |
|---|
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()
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()protected void setFlags(int flags)
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)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||