| java.lang.Object org.acm.seguin.completer.info.MemberInfo org.acm.seguin.completer.info.ClassInfo
All known Subclasses: org.acm.seguin.completer.info.ArrayClassInfo,
ClassInfo | public class ClassInfo extends MemberInfo (Code) | | Contains information about a class such as super classes, inner classes,
fields, and methods.
author: Jason Ginchereau See Also: ClassInfoDatabase |
Constructor Summary | |
public | ClassInfo(Class c) | public | ClassInfo(Class c, Class argDeclaringClass) Creates a new ClassInfo structure using reflection to
determine information about superclasses, inner classes, fields, and
methods. | public | ClassInfo(String declaringClass, int modifiers, boolean isInterface, String name, String superclass, String[] interfaces, String packageName, String comment) Creates a new ClassInfo structure using all specified
information. | public | ClassInfo(String name, String packageName) Creates an empty ClassInfo structure that is a placeholder
for when nothing about a class is yet known. |
ClassInfo | public ClassInfo(Class c, Class argDeclaringClass)(Code) | | Creates a new ClassInfo structure using reflection to
determine information about superclasses, inner classes, fields, and
methods.
Parameters: c - Description of the Parameter |
ClassInfo | public ClassInfo(String declaringClass, int modifiers, boolean isInterface, String name, String superclass, String[] interfaces, String packageName, String comment)(Code) | | Creates a new ClassInfo structure using all specified
information.
Parameters: declaringClass - Description of the Parameter Parameters: modifiers - Description of the Parameter Parameters: isInterface - Description of the Parameter Parameters: name - Description of the Parameter Parameters: superclass - Description of the Parameter Parameters: interfaces - Description of the Parameter Parameters: packageName - Description of the Parameter Parameters: comment - Description of the Parameter |
ClassInfo | public ClassInfo(String name, String packageName)(Code) | | Creates an empty ClassInfo structure that is a placeholder
for when nothing about a class is yet known.
Parameters: name - Description of the Parameter Parameters: packageName - Description of the Parameter |
add | public void add(MemberInfo mi)(Code) | | Adds the class, field, constructor, or method info to the class.
Parameters: mi - Description of the Parameter |
compareTo | public int compareTo(MemberInfo mi)(Code) | | Description of the Method
Parameters: mi - Description of the Parameter Description of the Return Value |
getClasses | public SortedSet getClasses()(Code) | | Gets the set of inner classes that are declared by this class. Note that
inner classes declared by a superclass are not included in this set.
a SortedSet of Strings that are thesimple names of inner classes of this class. This set should not bemodified directly. |
getConstructors | public SortedSet getConstructors()(Code) | | Gets the set of constructors that are declared by this class.
a SortedSet of ConstructorInfo objects. This set should not be modified directly. |
getFields | public SortedSet getFields()(Code) | | Gets the set of fields that are declared by this class. Note that fields
declared by a superclass are not included in this set.
a SortedSet of FieldInfo objects.This set should not be modified directly. |
getFullName | public String getFullName()(Code) | | Gets the fully-qualified name of the class.
The fullName value |
getInterfaces | public String[] getInterfaces()(Code) | | Gets the set of interfaces which this class implements. If this class is
an interface, the returned array will be the set of super-interfaces
extended by this interface. If this class is implements no interfaces, an
array of length 0 will be returned.
The interfaces value |
getLine | public String getLine()(Code) | | Gets the line attribute of the ClassInfo object
The line value |
getMethods | public SortedSet getMethods()(Code) | | Gets the set of methods that are declared by this class. Note that
methods declared by a superclass are not included in this set.
a SortedSet of MethodInfo objects.This set should not be modified directly. |
getPackage | public String getPackage()(Code) | | Gets the name of the package this class is a part of, or null
if this class is part of the unnamed package.
The package value |
getSuperclass | public String getSuperclass()(Code) | | Gets the superclass of this class. If this class is an interface, the
returned classes will be Object . If this class is Object
, null will be returned.
The superclass value |
getType | public String getType()(Code) | | Gets the type attribute of the ClassInfo object
The type value |
isInterface | public boolean isInterface()(Code) | | Gets the interface attribute of the ClassInfo object
The interface value |
|
|