Class SourceTypeElementInfo
java.lang.Object
org.aspectj.org.eclipse.jdt.internal.core.JavaElementInfo
org.aspectj.org.eclipse.jdt.internal.core.AnnotatableInfo
org.aspectj.org.eclipse.jdt.internal.core.SourceTypeElementInfo
- All Implemented Interfaces:
Cloneable,IDependent,IElementInfo,IGenericType,ISourceType
Element info for an IType element that originated from source.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected HashMap<IJavaElement, String[]> protected IJavaElement[]protected intThe modifiers associated with this member.protected ITypeBackpointer to my type handle - useful for translation from info to handle.protected static final SourceField[]protected static final ISourceImport[]protected static final InitializerElementInfo[]protected static final SourceMethod[]protected static final SourceType[]protected char[][]protected intprotected intprotected char[]The name of the superclass for this type.protected char[][]The names of the interfaces this type implements or extends.protected ITypeParameter[]Fields inherited from class org.aspectj.org.eclipse.jdt.internal.core.AnnotatableInfo
annotations, nameEnd, nameStartFields inherited from interface org.aspectj.org.eclipse.jdt.internal.compiler.env.IDependent
JAR_FILE_ENTRY_SEPARATOR -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddCategories(IJavaElement element, char[][] elementCategories) intintReturns the ISourceType that is the enclosing type for this type, ornullif this type is a top level type.Answer the receiver's fields.char[]Answer the file name which defines the type.Returns the handle for this type infochar[][]Answer the unresolved names of the receiver's interfaces or null if the array is empty.Answer the receiver's member types.Answer the receiver's methods.intchar[]getName()Answer the simple source name of the receiver.char[][]Answer the unresolved names of the receiver's permitted sub types or null if the array is empty.protected ISourceRangechar[]Answer the unresolved name of the receiver's superclass or null if it does not have one.char[][][]Answer the array of bound names of the receiver's type parameters.char[][]Answer the names of the receiver's type parameters.booleanAnswer whether the receiver type is anonymousbooleanbooleanAnswer whether the receiver contains the resolved binary form or the unresolved source form of the type.protected voidsetFlags(int flags) protected voidSets the handle for this type infoprotected voidsetPermittedSubtypeNames(char[][] permittedTypeNames) protected voidsetSourceRangeEnd(int end) protected voidsetSourceRangeStart(int start) protected voidsetSuperclassName(char[] superclassName) Sets the (unresolved) name of this type's superclassprotected voidsetSuperInterfaceNames(char[][] superInterfaceNames) Sets the (unresolved) names of the interfaces this type implements or extendstoString()Methods inherited from class org.aspectj.org.eclipse.jdt.internal.core.AnnotatableInfo
getNameRange, getNameSourceEnd, getNameSourceStart, setNameSourceEnd, setNameSourceStartMethods inherited from class org.aspectj.org.eclipse.jdt.internal.core.JavaElementInfo
clone, getExtendedChildrenMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.aspectj.org.eclipse.jdt.internal.compiler.env.IGenericType
getModifiersMethods inherited from interface org.aspectj.org.eclipse.jdt.internal.compiler.env.ISourceType
getDeclarationSourceEnd, getDeclarationSourceStart, getNameSourceEnd, getNameSourceStart
-
Field Details
-
NO_IMPORTS
-
NO_INITIALIZERS
-
NO_FIELDS
-
NO_METHODS
-
NO_TYPES
-
children
-
superclassName
protected char[] superclassNameThe name of the superclass for this type. This name is fully qualified for binary types and is NOT always fully qualified for source types. -
superInterfaceNames
protected char[][] superInterfaceNamesThe names of the interfaces this type implements or extends. These names are fully qualified in the case of a binary type, and are NOT always fully qualified in the case of a source type -
permittedTypeNames
protected char[][] permittedTypeNames -
handle
Backpointer to my type handle - useful for translation from info to handle. -
typeParameters
-
categories
-
flags
protected int flagsThe modifiers associated with this member.- See Also:
-
sourceRangeStart
protected int sourceRangeStart -
sourceRangeEnd
protected int sourceRangeEnd
-
-
Constructor Details
-
SourceTypeElementInfo
public SourceTypeElementInfo()
-
-
Method Details
-
addCategories
-
getCategories
-
getChildren
- Overrides:
getChildrenin classJavaElementInfo
-
getEnclosingType
Returns the ISourceType that is the enclosing type for this type, ornullif this type is a top level type.- Specified by:
getEnclosingTypein interfaceISourceType
-
getFields
Description copied from interface:ISourceTypeAnswer the receiver's fields. NOTE: Multiple fields with the same name can exist in the result.- Specified by:
getFieldsin interfaceISourceType- See Also:
-
getFieldHandles
-
getFileName
public char[] getFileName()Description copied from interface:IDependentAnswer the file name which defines the type. The path part (optional) must be separated from the actual file proper name by a separator suitable for the type (java.io.File.separator for example), e.g. "c:\\source\\com\\p\\X.java" or "/com/p/Y.java". The path to the zip or jar file (optional) must be separated from the actual path part by JAR_FILE_ENTRY_SEPARATOR, e.g. "c:\\lib\\some.jar|/com/p/X.class" or "/lib/some.zip|/com/q/Y.class". The proper file name includes the suffix extension (e.g. ".java") e.g. "c:/org/eclipse/jdt/internal/compileri/env/IDependent.java" Return null if no file defines the type.- Specified by:
getFileNamein interfaceIDependent- See Also:
-
getHandle
Returns the handle for this type info -
getInitializers
-
getInterfaceNames
public char[][] getInterfaceNames()Description copied from interface:ISourceTypeAnswer the unresolved names of the receiver's interfaces or null if the array is empty. A name is a simple name or a qualified, dot separated name. For example, Hashtable or java.util.Hashtable.- Specified by:
getInterfaceNamesin interfaceISourceType- See Also:
-
getPermittedSubtypeNames
public char[][] getPermittedSubtypeNames()Description copied from interface:ISourceTypeAnswer the unresolved names of the receiver's permitted sub types or null if the array is empty. A name is a simple name or a qualified, dot separated name. For example, Hashtable or java.util.Hashtable.- Specified by:
getPermittedSubtypeNamesin interfaceISourceType- See Also:
-
getMemberTypes
Description copied from interface:ISourceTypeAnswer the receiver's member types.- Specified by:
getMemberTypesin interfaceISourceType- See Also:
-
getMemberTypeHandles
-
getMethods
Description copied from interface:ISourceTypeAnswer the receiver's methods. NOTE: Multiple methods with the same name and parameter types can exist in the result.- Specified by:
getMethodsin interfaceISourceType- See Also:
-
getMethodHandles
-
getName
public char[] getName()Description copied from interface:ISourceTypeAnswer the simple source name of the receiver.- Specified by:
getNamein interfaceISourceType- See Also:
-
getSuperclassName
public char[] getSuperclassName()Description copied from interface:ISourceTypeAnswer the unresolved name of the receiver's superclass or null if it does not have one. The name is a simple name or a qualified, dot separated name. For example, Hashtable or java.util.Hashtable.- Specified by:
getSuperclassNamein interfaceISourceType- See Also:
-
getTypeParameterBounds
public char[][][] getTypeParameterBounds()Description copied from interface:ISourceTypeAnswer the array of bound names of the receiver's type parameters.- Specified by:
getTypeParameterBoundsin interfaceISourceType
-
getTypeParameterNames
public char[][] getTypeParameterNames()Description copied from interface:ISourceTypeAnswer the names of the receiver's type parameters.- Specified by:
getTypeParameterNamesin interfaceISourceType
-
isBinaryType
public boolean isBinaryType()Description copied from interface:IGenericTypeAnswer whether the receiver contains the resolved binary form or the unresolved source form of the type.- Specified by:
isBinaryTypein interfaceIGenericType- See Also:
-
isAnonymous
public boolean isAnonymous()Description copied from interface:ISourceTypeAnswer whether the receiver type is anonymous- Specified by:
isAnonymousin interfaceISourceType
-
isAnonymousMember
public boolean isAnonymousMember() -
setHandle
Sets the handle for this type info -
setSuperclassName
protected void setSuperclassName(char[] superclassName) Sets the (unresolved) name of this type's superclass -
setSuperInterfaceNames
protected void setSuperInterfaceNames(char[][] superInterfaceNames) Sets the (unresolved) names of the interfaces this type implements or extends -
setPermittedSubtypeNames
protected void setPermittedSubtypeNames(char[][] permittedTypeNames) -
toString
-
getModifiers
public int getModifiers()- See Also:
-
setFlags
protected void setFlags(int flags) -
getDeclarationSourceEnd
public int getDeclarationSourceEnd()- See Also:
-
getDeclarationSourceStart
public int getDeclarationSourceStart()- See Also:
-
getSourceRange
-
setSourceRangeEnd
protected void setSourceRangeEnd(int end) -
setSourceRangeStart
protected void setSourceRangeStart(int start)
-