|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IClass
Interface for class file information. Provides access to class field and method information.
| Method Summary | |
|---|---|
IClassItem |
getBestMethod(String name,
String type,
String[] args)
Get information for best matching method. |
ClassFile |
getClassFile()
Get class file information. |
IClassItem |
getDirectField(String name)
Get information for field. |
IClassItem |
getField(String name)
Get information for field. |
IClassItem[] |
getFields()
Get all fields of class. |
IClassItem |
getInitializerMethod(String sig)
Get information for initializer. |
String[] |
getInstanceSigs()
Get signatures for all types of which instances of this type are instances. |
String[] |
getInterfaces()
Get names of all interfaces implemented directly by class. |
String |
getJavaDoc()
Get the JavaDoc comment for this class. |
IClassLocator |
getLocator()
Get the locator which provided this class. |
IClassItem |
getMethod(String name,
String sig)
Get information for method without respect to potential trailing arguments or return value. |
IClassItem |
getMethod(String name,
String[] sigs)
Get information for method matching one of several possible signatures. |
IClassItem[] |
getMethods()
Get all methods of class. |
String |
getName()
Get fully qualified class name. |
String |
getPackage()
Get package name. |
String |
getSignature()
Get signature for class as type. |
IClassItem |
getStaticMethod(String name,
String sig)
Get information for static method without respect to return value. |
IClass |
getSuperClass()
Get superclass. |
boolean |
isAbstract()
Check if class is abstract. |
boolean |
isAccessible(IClassItem item)
Check accessible method. |
boolean |
isAssignable(IClass other)
Check if a value of this type can be directly assigned to another type. |
boolean |
isImplements(String sig)
Check if class implements an interface. |
boolean |
isInterface()
Check if class is an interface. |
boolean |
isModifiable()
Check if class is modifiable. |
boolean |
isSuperclass(String name)
Check if another class is a superclass of this one. |
Class |
loadClass()
Load class in executable form. |
| Method Detail |
|---|
ClassFile getClassFile()
String getName()
String getSignature()
String getPackage()
IClass getSuperClass()
String[] getInterfaces()
null, empty array if none)String[] getInstanceSigs()
boolean isImplements(String sig)
sig - signature of interface to be checked
true if interface is implemented by class,
false if notboolean isAbstract()
true if class is abstract, false if notboolean isInterface()
true if class is an interface, false if
notboolean isModifiable()
true if class is modifiable, false if
notboolean isSuperclass(String name)
name - potential superclass to be checked
true if named class is a superclass of this one,
false if notIClassItem getDirectField(String name)
name - field name
null if field not foundIClassItem getField(String name)
name - field name
null if field not found
IClassItem getBestMethod(String name,
String type,
String[] args)
name - method nametype - return value type name (null if indeterminant)args - argument value type names (null if
indeterminant)
null if method not found
IClassItem getMethod(String name,
String sig)
name - method namesig - partial method signature to be matched
null if method not found
IClassItem getMethod(String name,
String[] sigs)
name - method namesigs - possible signatures for method (including return type)
null if method not foundIClassItem getInitializerMethod(String sig)
sig - encoded argument list signature
null if method not found
IClassItem getStaticMethod(String name,
String sig)
name - method namesig - encoded argument list signature
null if method not foundboolean isAccessible(IClassItem item)
item - field or method information
true if accessible, false if notboolean isAssignable(IClass other)
other - type to be assigned to
true if assignable, false if notClass loadClass()
null if unable to loadIClassItem[] getMethods()
IClassItem[] getFields()
String getJavaDoc()
null if none or no source availableIClassLocator getLocator()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||