All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class epp.ClassInfo

java.lang.Object
   |
   +----epp.MemberInfo
           |
           +----epp.ClassInfo

public abstract class ClassInfo
extends MemberInfo
The ClassInfo class is a data structure that holds detail information of a :class type.

The ClassInfo can be obtained by calling the classInfo() method on Type that has a tag of :class.

This ClassInfo is generated by the treeToClassInfo or the classToClassInfo. Plug-ins can extend this method and create a subclass to implement an "extended class."

See Also:
Type, treeToClassInfo, classToClassInfo, ClassType, MemberInfo, FieldInfo, MethodInfo

Constructor Index

 o ClassInfo(Tree[], Symbol)

Method Index

 o getClasses()
Returns all inner classes that are members of a class.
 o getConstructors()
Returns all constructors.
 o getField(Symbol)
Returns fields with the name sym.
 o getFields()
Returns all fields.
 o getInterfaces()
Returns the interface that this class implements or the interface this interface extends.
 o getMethods()
Returns all methods.
 o getOverloadedMethods(Symbol)
Returns all methods with the name sym.
 o getSuperclass()
Returns the super class.
 o isInterface()
Returns true if this ClassInfo is an interface and false if it is a class.
 o toString()
Converts this ClassInfo into a human readable string.

Constructors

 o ClassInfo
 public ClassInfo(Tree modifiers[],
                  Symbol fullName)

Methods

 o getConstructors
 public abstract MethodInfo[] getConstructors()
Returns all constructors.

 o getFields
 public abstract FieldInfo[] getFields()
Returns all fields.

 o getMethods
 public abstract MethodInfo[] getMethods()
Returns all methods.

 o getClasses
 public abstract ClassInfo[] getClasses()
Returns all inner classes that are members of a class.

 o getField
 public abstract FieldInfo getField(Symbol sym) throws NotFound
Returns fields with the name sym.

Throws: NotFound
when not found.
 o getOverloadedMethods
 public abstract MethodInfo[] getOverloadedMethods(Symbol sym) throws NotFound
Returns all methods with the name sym.

Throws: NotFound
when not found.
 o getSuperclass
 public abstract Type getSuperclass()
Returns the super class. Returns null when the super class is not found.

The java.lang.Object class and all interfaces do not have super classes. Normal classes would have the default super class java.lang.Object even if not specified in the source code.

 o getInterfaces
 public abstract Type[] getInterfaces()
Returns the interface that this class implements or the interface this interface extends.

 o isInterface
 public abstract boolean isInterface()
Returns true if this ClassInfo is an interface and false if it is a class.

 o toString
 public String toString()
Converts this ClassInfo into a human readable string. This method is for debugging.

Overrides:
toString in class MemberInfo

All Packages  Class Hierarchy  This Package  Previous  Next  Index