private List<String> splitDescriptorToTypeNames(final String descriptors) { List<String> result = Lists.newArrayList(); if (descriptors != null && descriptors.length() != 0) { List<Integer> indices = Lists.newArrayList(); Descriptor.Iterator iterator = new Descriptor.Iterator(descriptors); while (iterator.hasNext()) { indices.add(iterator.next()); } indices.add(descriptors.length()); for (int i = 0; i < indices.size() - 1; i++) { String s1 = Descriptor.toString(descriptors.substring(indices.get(i), indices.get(i + 1))); result.add(s1); } } return result; } }
/** * Returns the constructor name followed by parameter types * such as <code>javassist.CtConstructor(CtClass[],CtClass)</code>. * * @since 3.5 */ public String getLongName() { return getDeclaringClass().getName() + (isConstructor() ? Descriptor.toString(getSignature()) : ("." + MethodInfo.nameClinit + "()")); }
/** * Returns the method name followed by parameter types * such as <code>javassist.CtMethod.setBody(String)</code>. * * @since 3.5 */ public String getLongName() { return getDeclaringClass().getName() + "." + getName() + Descriptor.toString(getSignature()); }
private List<String> splitDescriptorToTypeNames(final String descriptors) { List<String> result = Lists.newArrayList(); if (descriptors != null && descriptors.length() != 0) { List<Integer> indices = Lists.newArrayList(); Descriptor.Iterator iterator = new Descriptor.Iterator(descriptors); while (iterator.hasNext()) { indices.add(iterator.next()); } indices.add(descriptors.length()); for (int i = 0; i < indices.size() - 1; i++) { String s1 = Descriptor.toString(descriptors.substring(indices.get(i), indices.get(i + 1))); result.add(s1); } } return result; } }
private String getMethodString(CtMethod method) { try { return Modifier.toString(method.getModifiers()) + " " + method.getReturnType().getName() + " " + method.getName() + Descriptor.toString(method.getSignature()) + ";"; } catch (NotFoundException e) { throw new RuntimeException(e); } }
/** * Returns the method name followed by parameter types * such as <code>javassist.CtMethod.setBody(String)</code>. * * @since 3.5 */ @Override public String getLongName() { return getDeclaringClass().getName() + "." + getName() + Descriptor.toString(getSignature()); }
/** * Returns the constructor name followed by parameter types * such as <code>javassist.CtConstructor(CtClass[],CtClass)</code>. * * @since 3.5 */ @Override public String getLongName() { return getDeclaringClass().getName() + (isConstructor() ? Descriptor.toString(getSignature()) : ("." + MethodInfo.nameClinit + "()")); }
private String getMethodString(CtMethod method) { try { return Modifier.toString(method.getModifiers()) + " " + method.getReturnType().getName() + " " + method.getName() + Descriptor.toString(method.getSignature()) + ";"; } catch (NotFoundException e) { throw new RuntimeException(e); } }
/** * Returns the constructor name followed by parameter types * such as <code>javassist.CtConstructor(CtClass[],CtClass)</code>. * * @since 3.5 */ public String getLongName() { return getDeclaringClass().getName() + (isConstructor() ? Descriptor.toString(getSignature()) : ("." + MethodInfo.nameClinit + "()")); }
/** * Returns the constructor name followed by parameter types * such as <code>javassist.CtConstructor(CtClass[],CtClass)</code>. * * @since 3.5 */ public String getLongName() { return getDeclaringClass().getName() + (isConstructor() ? Descriptor.toString(getSignature()) : ("." + MethodInfo.nameClinit + "()")); }
/** * Returns the method name followed by parameter types * such as <code>javassist.CtMethod.setBody(String)</code>. * * @since 3.5 */ public String getLongName() { return getDeclaringClass().getName() + "." + getName() + Descriptor.toString(getSignature()); }
/** * Returns the method name followed by parameter types * such as <code>javassist.CtMethod.setBody(String)</code>. * * @since 3.5 */ public String getLongName() { return getDeclaringClass().getName() + "." + getName() + Descriptor.toString(getSignature()); }
/** * Returns the method name followed by parameter types * such as <code>javassist.CtMethod.setBody(String)</code>. * * @since 3.5 */ public String getLongName() { return getDeclaringClass().getName() + "." + getName() + Descriptor.toString(getSignature()); }
/** * Returns the constructor name followed by parameter types * such as <code>javassist.CtConstructor(CtClass[],CtClass)</code>. * * @since 3.5 */ public String getLongName() { return getDeclaringClass().getName() + (isConstructor() ? Descriptor.toString(getSignature()) : ("." + MethodInfo.nameClinit + "()")); }
/** * Returns the constructor name followed by parameter types * such as <code>javassist.CtConstructor(CtClass[],CtClass)</code>. * * @since 3.5 */ public String getLongName() { return getDeclaringClass().getName() + (isConstructor() ? Descriptor.toString(getSignature()) : ("." + MethodInfo.nameClinit + "()")); }
/** * Returns the method name followed by parameter types * such as <code>javassist.CtMethod.setBody(String)</code>. * * @since 3.5 */ public String getLongName() { return getDeclaringClass().getName() + "." + getName() + Descriptor.toString(getSignature()); }
/** * Returns the constructor name followed by parameter types * such as <code>javassist.CtConstructor(CtClass[],CtClass)</code>. * * @since 3.5 */ public String getLongName() { return getDeclaringClass().getName() + (isConstructor() ? Descriptor.toString(getSignature()) : ("." + MethodInfo.nameClinit + "()")); }
private String getMethodString(CtMethod method) { try { return Modifier.toString(method.getModifiers()) + " " + method.getReturnType().getName() + " " + method.getName() + Descriptor.toString(method.getSignature()) + ";"; } catch (NotFoundException e) { throw new RuntimeException(e); } }
private String getMethodString(CtMethod method) { try { return Modifier.toString(method.getModifiers()) + " " + method.getReturnType().getName() + " " + method.getName() + Descriptor.toString(method.getSignature()) + ";"; } catch (NotFoundException e) { throw new RuntimeException(e); } }
private String getMethodString(CtMethod method) { try { return Modifier.toString(method.getModifiers()) + " " + method.getReturnType().getName() + " " + method.getName() + Descriptor.toString(method.getSignature()) + ";"; } catch (NotFoundException e) { throw new RuntimeException(e); } }