| org.jibx.binding.model.IClass
All known Subclasses: org.jibx.binding.model.ClassWrapper,
IClass | public interface IClass (Code) | | Interface for class file information. Provides access to class field and
method information.
author: Dennis M. Sosnoski version: 1.0 |
getBestMethod | public IClassItem getBestMethod(String name, String type, String[] args)(Code) | | Get information for best matching method. This tries to find a method
which matches the specified name, return type, and argument types. If an
exact match is not found it looks for a method with a return type that
is extended or implemented by the specified type and arguments that are
extended or implemented by the specified types. If no match is found for
this class superclasses are checked.
TODO: make this work with both static and member methods
Parameters: name - method name Parameters: type - return value type name (null if indeterminant) Parameters: args - argument value type names method information, or null if method not found |
getClassFile | public ClassFile getClassFile()(Code) | | Get class file information.
TODO: eliminate this sucker
class file information |
getDirectField | public IClassItem getDirectField(String name)(Code) | | Get information for field. This only checks for fields that are actually
members of the class (not superclasses).
TODO: make this work with both static and member fields
Parameters: name - field name field information, or null if field not found |
getField | public IClassItem getField(String name)(Code) | | Get information for field. If the field is not found directly,
superclasses are checked for inherited fields matching the supplied name.
TODO: make this work with both static and member fields
Parameters: name - field name field information, or null if field not found |
getInitializerMethod | public IClassItem getInitializerMethod(String sig)(Code) | | Get information for initializer. Only the class itself is checked for an
initializer matching the argument list signature.
Parameters: sig - encoded argument list signature method information, or null if method not found |
getInstanceSigs | public String[] getInstanceSigs()(Code) | | Get signatures for all types of which instances of this type are
instances.
all signatures suppored by instances |
getInterfaces | public String[] getInterfaces()(Code) | | Get names of all interfaces implemented by class.
names of all interfaces implemented directly by class |
getJavaDoc | public String getJavaDoc()(Code) | | Get the JavaDoc comment for this class.
comment text, or null if none or no source available |
getLocator | public IClassLocator getLocator()(Code) | | Get the locator which provided this class.
locator |
getMethod | public IClassItem getMethod(String name, String sig)(Code) | | Get information for method without respect to potential trailing
arguments or return value. If the method is not found directly,
superclasses are checked for inherited methods matching the supplied
name. This compares the supplied partial signature against the actual
method signature, and considers it a match if the actual sigature starts
with the supplied signature.
TODO: make this work with both static and member methods
Parameters: name - method name Parameters: sig - partial method signature to be matched method information, or null if method not found |
getMethod | public IClassItem getMethod(String name, String[] sigs)(Code) | | Get information for method matching one of several possible signatures.
If a match is not found directly, superclasses are checked for inherited
methods matching the supplied name and signatures. The signature
variations are checked in the order supplied.
TODO: make this work with both static and member methods
Parameters: name - method name Parameters: sigs - possible signatures for method (including return type) method information, or null if method not found |
getMethods | public IClassItem[] getMethods()(Code) | | Get all methods of class.
methods |
getName | public String getName()(Code) | | Get fully qualified class name.
fully qualified name for class |
getPackage | public String getPackage()(Code) | | Get package name.
package name for class |
getSignature | public String getSignature()(Code) | | Get signature for class as type.
signature for class used as type |
getStaticMethod | public IClassItem getStaticMethod(String name, String sig)(Code) | | Get information for static method without respect to return value. Only
the class itself is checked for a method matching the supplied name and
argument list signature.
Parameters: name - method name Parameters: sig - encoded argument list signature method information, or null if method not found |
getSuperClass | public IClass getSuperClass()(Code) | | Get superclass.
superclass information |
isAbstract | public boolean isAbstract()(Code) | | Check if class is abstract.
true if class is abstract, false if not |
isAccessible | public boolean isAccessible(IClassItem item)(Code) | | Check accessible method. Check if a field or method in another class is
accessible from within this class.
Parameters: item - field or method information true if accessible, false if not |
isAssignable | public boolean isAssignable(IClass other)(Code) | | Check if a value of this type can be directly assigned to another type.
This is basically the equivalent of the instanceof operator.
Parameters: other - type to be assigned to true if assignable, false if not |
isImplements | public boolean isImplements(String sig)(Code) | | Check if class implements an interface.
Parameters: signature - of interface to be checked true if interface is implemented by class,false if not |
isInterface | public boolean isInterface()(Code) | | Check if class is an interface.
true if class is an interface, false ifnot |
isModifiable | public boolean isModifiable()(Code) | | Check if class is modifiable.
true if class is modifiable, false ifnot |
isSuperclass | public boolean isSuperclass(String name)(Code) | | Check if another class is a superclass of this one.
Parameters: name - potential superclass to be checked true if named class is a superclass of this one,false if not |
loadClass | public Class loadClass()(Code) | | Load class in executable form.
loaded class, or null if unable to load |
|
|