public String getMethodDescription ( int index ) { ConstantInfo constantInfo = getConstantInfo ( index ) ; if ( constantInfo instanceof Methodref ) { Methodref mr = ( Methodref ) getConstantInfo ( index ) ; int nt = mr . getName_and_type_index ( ) ; NameAndType nat = ( NameAndType ) getConstantInfo ( nt ) ; int ni = nat . getName_index ( ) ; int di = nat . getDescriptor_index ( ) ; return getString ( ni ) + " " + getString ( di ) ; } if ( constantInfo instanceof InterfaceMethodref ) { InterfaceMethodref mr = ( InterfaceMethodref ) getConstantInfo ( index ) ; int nt = mr . getName_and_type_index ( ) ; NameAndType nat = ( NameAndType ) getConstantInfo ( nt ) ; int ni = nat . getName_index ( ) ; int di = nat . getDescriptor_index ( ) ; return getString ( ni ) + " " + getString ( di ) ; } return "unknown " + constantInfo ; }
Returns a descriptor to method at index .