/** * Obtains the value of the member. * * @return fully-qualified class name. */ public String getValue() { String v = cp.getUtf8Info(valueIndex); try { return SignatureAttribute.toTypeSignature(v).jvmTypeName(); } catch (BadBytecode e) { throw new RuntimeException(e); } }
/** * Obtains the value of the member. * * @return fully-qualified class name. */ public String getValue() { String v = cp.getUtf8Info(valueIndex); try { return SignatureAttribute.toTypeSignature(v).jvmTypeName(); } catch (BadBytecode e) { throw new RuntimeException(e); } }
private static String inferFieldTypeName(CtField field) { try { if ( field.getFieldInfo2().getAttribute( SignatureAttribute.tag ) == null ) { return field.getType().getName(); } return inferGenericTypeName( field.getType(), SignatureAttribute.toTypeSignature( field.getGenericSignature() ) ); } catch (BadBytecode ignore) { return null; } catch (NotFoundException e) { return null; } }
/** * Obtains the value of the member. * * @return fully-qualified class name. */ public String getValue() { String v = cp.getUtf8Info(valueIndex); try { return SignatureAttribute.toTypeSignature(v).toString(); } catch (BadBytecode e) { throw new RuntimeException(e); } }
/** * Obtains the value of the member. * * @return fully-qualified class name. */ public String getValue() { String v = cp.getUtf8Info(valueIndex); try { return SignatureAttribute.toTypeSignature(v).toString(); } catch (BadBytecode e) { throw new RuntimeException(e); } }
/** * Obtains the value of the member. * * @return fully-qualified class name. */ public String getValue() { String v = cp.getUtf8Info(valueIndex); try { return SignatureAttribute.toTypeSignature(v).toString(); } catch (BadBytecode e) { throw new RuntimeException(e); } }
private static String inferFieldTypeName(CtField field) { try { if ( field.getFieldInfo2().getAttribute( SignatureAttribute.tag ) == null ) { return field.getType().getName(); } return inferGenericTypeName( field.getType(), SignatureAttribute.toTypeSignature( field.getGenericSignature() ) ); } catch (BadBytecode ignore) { return null; } catch (NotFoundException e) { return null; } }