| Constructor and Description |
|---|
ClassWrapper(IClassLocator loc,
ClassFile clas)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected IClassItem |
buildItem(ClassItem item)
Build an item wrapper.
|
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.
|
public ClassWrapper(IClassLocator loc, ClassFile clas)
loc - Locatorclas - Classprotected IClassItem buildItem(ClassItem item)
item - Class Itempublic String getName()
IClasspublic String getSignature()
IClassgetSignature in interface IClasspublic String getPackage()
IClassgetPackage in interface IClasspublic IClass getSuperClass()
IClassgetSuperClass in interface IClasspublic String[] getInterfaces()
IClassgetInterfaces in interface IClassnull, empty array if none)public String[] getInstanceSigs()
IClassgetInstanceSigs in interface IClasspublic boolean isImplements(String sig)
IClassisImplements in interface IClasssig - signature of interface to be checkedtrue if interface is implemented by class,
false if notpublic boolean isAbstract()
IClassisAbstract in interface IClasstrue if class is abstract, false if notpublic boolean isInterface()
IClassisInterface in interface IClasstrue if class is an interface, false if
notpublic boolean isModifiable()
IClassisModifiable in interface IClasstrue if class is modifiable, false if
notpublic boolean isSuperclass(String name)
IClassisSuperclass in interface IClassname - potential superclass to be checkedtrue if named class is a superclass of this one,
false if notpublic IClassItem getDirectField(String name)
IClassgetDirectField in interface IClassname - field namenull if field not foundpublic IClassItem getField(String name)
IClasspublic IClassItem getMethod(String name, String sig)
IClasspublic IClassItem getMethod(String name, String[] sigs)
IClasspublic IClassItem getInitializerMethod(String sig)
IClassgetInitializerMethod in interface IClasssig - encoded argument list signaturenull if method not foundpublic IClassItem getStaticMethod(String name, String sig)
IClassgetStaticMethod in interface IClassname - method namesig - encoded argument list signaturenull if method not foundpublic boolean isAccessible(IClassItem item)
IClassisAccessible in interface IClassitem - field or method informationtrue if accessible, false if notpublic boolean isAssignable(IClass other)
IClassisAssignable in interface IClassother - type to be assigned totrue if assignable, false if notpublic IClassItem getBestMethod(String name, String type, String[] args)
IClassgetBestMethod in interface IClassname - method nametype - return value type name (null if indeterminant)args - argument value type names (null if
indeterminant)null if method not foundpublic ClassFile getClassFile()
IClassgetClassFile in interface IClasspublic Class loadClass()
IClasspublic IClassItem[] getFields()
IClasspublic IClassItem[] getMethods()
IClassgetMethods in interface IClasspublic String getJavaDoc()
IClassgetJavaDoc in interface IClassnull if none or no source availablepublic IClassLocator getLocator()
IClassgetLocator in interface IClassCopyright © 2005–2016 jibx.org. All rights reserved.