|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectmessif.utility.reflection.InstantiatorSignature
public class InstantiatorSignature
Parse a given string signature and provide methods for creating
Instantiator
s that match the signature or instances directly.
Constructor Summary | |
---|---|
InstantiatorSignature(java.lang.String signature)
Creates a new instance of ParsedSignature. |
Method Summary | ||
---|---|---|
|
createInstantiator(java.lang.Class<? extends T> checkClass)
Creates instantiator for the parsed signature. |
|
java.lang.String[] |
getParsedArgs()
Return arguments parsed by this signature. |
|
java.lang.Class<?> |
getParsedClass()
Returns the parsed declaring class of the constructor/method/field. |
|
|
getParsedClass(java.lang.Class<? extends T> checkClass)
Returns the parsed declaring class of the constructor/method/field. |
|
java.lang.String |
getParsedName()
Returns the parsed name of the method/field. |
|
boolean |
isConstructorSignature()
Returns true if a constructor signature was parsed. |
|
boolean |
isFieldSignature()
Returns true if a field signature was parsed. |
|
boolean |
isMethodSignature()
Returns true if a method signature was parsed. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public InstantiatorSignature(java.lang.String signature)
signature
- a fully specified constructor/method/field signatureMethod Detail |
---|
public java.lang.String[] getParsedArgs()
public java.lang.Class<?> getParsedClass()
public <T> java.lang.Class<T> getParsedClass(java.lang.Class<? extends T> checkClass)
checkClass
.
T
- the super class of the declaring class agains which to checkcheckClass
- the super class of the declaring class agains which to check
public java.lang.String getParsedName()
public boolean isConstructorSignature()
public boolean isMethodSignature()
public boolean isFieldSignature()
public <T> Instantiator<T> createInstantiator(java.lang.Class<? extends T> checkClass) throws java.lang.IllegalArgumentException
T
- the class of instances that will be created by the returned instantiatorcheckClass
- the class of instances that will be created by the returned instantiator
java.lang.IllegalArgumentException
- if the instantiator cannot be created
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |