git-svn-id: http://anonsvn.jboss.org/repos/javassist/trunk@254 30ef5769-5b8d-40dd-aea6-55b5d6557bb3tags/rel_3_17_1_ga
<h2>Changes</h2> | <h2>Changes</h2> | ||||
<p>- version 3.1 on February 22, 2006 | |||||
<p>- version 3.1 on February 23, 2006 | |||||
<ul> | <ul> | ||||
<li>getFields(), getMethods(), and getConstructors() in CtClass | <li>getFields(), getMethods(), and getConstructors() in CtClass |
return super.mayThrow(); | return super.mayThrow(); | ||||
} | } | ||||
/* | |||||
* Returns the type of the field. | |||||
public CtClass getFieldType() throws NotFoundException { | |||||
/** | |||||
* Returns the signature of the field type. | |||||
* The signature is represented by a character string | |||||
* called field descriptor, which is defined in the JVM specification. | |||||
* | |||||
* @see javassist.bytecode.Descriptor#toCtClass(String, ClassPool) | |||||
* @since 3.1 | |||||
*/ | |||||
public String getSignature() { | |||||
int index = iterator.u16bitAt(currentPos + 1); | int index = iterator.u16bitAt(currentPos + 1); | ||||
String type = getConstPool().getFieldrefType(index); | |||||
return Descriptor.toCtClass(type, thisClass.getClassPool()); | |||||
return getConstPool().getFieldrefType(index); | |||||
} | } | ||||
*/ | |||||
/** | /** | ||||
* Replaces the method call with the bytecode derived from | * Replaces the method call with the bytecode derived from |
/** | /** | ||||
* Get the signature of the constructor | * Get the signature of the constructor | ||||
* | |||||
* | |||||
* The signature is represented by a character string | |||||
* called method descriptor, which is defined in the JVM specification. | |||||
* | |||||
* @see javassist.CtBehavior#getSignature() | |||||
* @see javassist.bytecode.Descriptor | |||||
* @return the signature | * @return the signature | ||||
*/ | */ | ||||
public String getSignature() { | public String getSignature() { |