Class HierarchyType
java.lang.Object
org.aspectj.org.eclipse.jdt.internal.core.hierarchy.HierarchyType
- All Implemented Interfaces:
IDependent,IGenericType
Partial implementation of an IGenericType used to
answer hierarchies.
-
Field Summary
FieldsModifier and TypeFieldDescriptionbooleanintchar[]char[]char[][]Fields inherited from interface org.aspectj.org.eclipse.jdt.internal.compiler.env.IDependent
JAR_FILE_ENTRY_SEPARATOR -
Constructor Summary
ConstructorsConstructorDescriptionHierarchyType(IType typeHandle, char[] name, int modifiers, char[] superclassName, char[][] superInterfaceNames, boolean anonymous) -
Method Summary
Modifier and TypeMethodDescriptionchar[]Answer the file name which defines the type.intAnswer an int whose bits are set according the access constants defined by the VM spec.booleanAnswer whether the receiver is an anonymous typebooleanAnswer whether the receiver contains the resolved binary form or the unresolved source form of the type.
-
Field Details
-
typeHandle
-
name
public char[] name -
modifiers
public int modifiers -
superclassName
public char[] superclassName -
superInterfaceNames
public char[][] superInterfaceNames -
anonymous
public boolean anonymous
-
-
Constructor Details
-
HierarchyType
public HierarchyType(IType typeHandle, char[] name, int modifiers, char[] superclassName, char[][] superInterfaceNames, boolean anonymous)
-
-
Method Details
-
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:
-
getModifiers
public int getModifiers()Answer an int whose bits are set according the access constants defined by the VM spec.- Specified by:
getModifiersin interfaceIGenericType
-
isBinaryType
public boolean isBinaryType()Answer whether the receiver contains the resolved binary form or the unresolved source form of the type.- Specified by:
isBinaryTypein interfaceIGenericType
-
isAnonymous
public boolean isAnonymous()Answer whether the receiver is an anonymous type
-