|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ClassInfo
An interface that provides information about classes. This can be used to describe both ClassGenerators that are used to generate code and pre-existing Java classes.
| Method Summary | |
|---|---|
String |
className()
Return the class name of the class represented by this ClassInfo relative to pkgName(). |
Set<MethodInfo> |
constructorInfo()
|
Map<String,FieldInfo> |
fieldInfo()
Return a map from field names to FieldInfo instances for every field defined in this class (not including super types). |
MethodInfo |
findConstructorInfo(Signature sig)
Find the MethodInfo (if any) for a Constructor with the given Signature in this ClassInfo. |
FieldInfo |
findFieldInfo(String name)
Find a field with the given name if one exists. |
MethodInfo |
findMethodInfo(String name,
Signature sig)
Find the method (if any) with the given name and Signature in this ClassInfo, or in any superType of this ClassInfo. |
List<Type> |
impls()
Return the list of Types of interfaces implemented by this class. |
boolean |
isInterface()
Return true iff this ClassInfo is an interface. |
boolean |
isSubclass(ClassInfo info)
Return true iff this is a subclass or subinterface of info. |
Map<String,Set<MethodInfo>> |
methodInfoByName()
Return methodInfo for all methods defined on this class. |
int |
modifiers()
Return the modifiers on this class as specified in java.lang.reflect.Modifier. |
String |
name()
Return the fully qualified class name for this ClassInfo. |
String |
pkgName()
Return the fully qualified package name containing the class represented by this ClassInfo. |
Type |
superType()
Return the Type of the supertype of this class. |
Type |
thisType()
Return the Type of the class represented by this ClassInfo. |
| Method Detail |
|---|
int modifiers()
Type thisType()
boolean isInterface()
String name()
String pkgName()
String className()
Type superType()
List<Type> impls()
Map<String,FieldInfo> fieldInfo()
FieldInfo findFieldInfo(String name)
Map<String,Set<MethodInfo>> methodInfoByName()
Set<MethodInfo> constructorInfo()
MethodInfo findMethodInfo(String name,
Signature sig)
MethodInfo findConstructorInfo(Signature sig)
boolean isSubclass(ClassInfo info)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||