|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.glassfish.pfl.dynamic.codegen.impl.ClassInfoBase
public abstract class ClassInfoBase
| Constructor Summary | |
|---|---|
ClassInfoBase(int modifiers,
Type thisType)
Construct a ClassInfoBase representing a class or interface. |
|
| Method Summary | |
|---|---|
protected void |
addConstructorInfo(MethodInfo cinfo)
|
protected void |
addFieldInfo(FieldInfo finfo)
|
protected void |
addMethodInfo(MethodInfo minfo)
|
String |
className()
Return the class name of the class represented by this ClassInfo relative to pkgName(). |
Set<MethodInfo> |
constructorInfo()
|
boolean |
equals(Object obj)
|
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. |
int |
hashCode()
|
List<Type> |
impls()
Return the list of Types of interfaces implemented by this class. |
protected void |
initializeClass(Type thisType,
Type superType,
List<Type> impls)
|
protected void |
initializeInterface(List<Type> exts)
|
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. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ClassInfoBase(int modifiers,
Type thisType)
| Method Detail |
|---|
protected void initializeInterface(List<Type> exts)
protected void initializeClass(Type thisType,
Type superType,
List<Type> impls)
protected void addFieldInfo(FieldInfo finfo)
protected void addMethodInfo(MethodInfo minfo)
protected void addConstructorInfo(MethodInfo cinfo)
public Type thisType()
ClassInfo
thisType in interface ClassInfopublic boolean isInterface()
ClassInfo
isInterface in interface ClassInfopublic int modifiers()
ClassInfo
modifiers in interface ClassInfopublic String name()
ClassInfo
name in interface ClassInfopublic String className()
ClassInfo
className in interface ClassInfopublic String pkgName()
ClassInfo
pkgName in interface ClassInfopublic Type superType()
ClassInfo
superType in interface ClassInfopublic List<Type> impls()
ClassInfo
impls in interface ClassInfopublic Map<String,FieldInfo> fieldInfo()
ClassInfo
fieldInfo in interface ClassInfopublic FieldInfo findFieldInfo(String name)
ClassInfo
findFieldInfo in interface ClassInfopublic Map<String,Set<MethodInfo>> methodInfoByName()
ClassInfo
methodInfoByName in interface ClassInfopublic Set<MethodInfo> constructorInfo()
constructorInfo in interface ClassInfo
public MethodInfo findMethodInfo(String name,
Signature sig)
ClassInfo
findMethodInfo in interface ClassInfopublic MethodInfo findConstructorInfo(Signature sig)
ClassInfo
findConstructorInfo in interface ClassInfopublic boolean isSubclass(ClassInfo info)
ClassInfo
isSubclass in interface ClassInfopublic boolean equals(Object obj)
equals in class Objectpublic String toString()
toString in class Objectpublic int hashCode()
hashCode in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||