|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectewe.reflect.Type
This class provides an easy way to refer to and link to a Class that may not be present at run time.
You create and use a Type object like so:
Type tp = new Type("ewe.security.Decryptor");
boolean wasFound = tp.exists();
boolean isAnInstance = tp.isInstance(anObject);
| Constructor Summary | |
Type(String className)
Create a Type for the specified className - which should be specified in standard "." notation. |
|
| Method Summary | |
boolean |
exists()
Return if the class of the Type was actually found. |
String |
getClassName()
Return the name of the Class this Type represents. |
Reflect |
getReflection()
Returns the ewe.reflect.Reflect object that represents the class, if the class was found during the construction of this Type. |
Object |
invoke(Object dest,
String nameAndSpecs,
Object[] parameters)
|
boolean |
isInstance(Object obj)
Return if the specified Object is an instance of the Class represented by this Type. |
Object |
newInstance()
Return a new Instance of the class if the class exists. |
Object |
newInstance(String constructorSpecs,
Object[] parameters)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, toString |
| Constructor Detail |
public Type(String className)
| Method Detail |
public Object newInstance()
public Object newInstance(String constructorSpecs,
Object[] parameters)
public Object invoke(Object dest,
String nameAndSpecs,
Object[] parameters)
public Reflect getReflection()
public String getClassName()
public boolean exists()
public boolean isInstance(Object obj)
obj - the object to check.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||