/** * Returns the method descriptor specified by <code>method_index</code>. */ public String methodDescriptor() { ConstPool cp = getConstPool(); int mi = methodIndex(); int ti = cp.getNameAndTypeDescriptor(mi); return cp.getUtf8Info(ti); }
/** * Returns the method name specified by <code>method_index</code>. * If the method is a class initializer (static constructor), * {@link MethodInfo#nameClinit} is returned. */ public String methodName() { ConstPool cp = getConstPool(); int mi = methodIndex(); if (mi == 0) return MethodInfo.nameClinit; else { int ni = cp.getNameAndTypeName(mi); return cp.getUtf8Info(ni); } }
/** * Returns the method descriptor specified by <code>method_index</code>. */ public String methodDescriptor() { ConstPool cp = getConstPool(); int mi = methodIndex(); int ti = cp.getNameAndTypeDescriptor(mi); return cp.getUtf8Info(ti); }
/** * Returns the method name specified by <code>method_index</code>. * If the method is a class initializer (static constructor), * {@link MethodInfo#nameClinit} is returned. */ public String methodName() { ConstPool cp = getConstPool(); int mi = methodIndex(); if (mi == 0) return MethodInfo.nameClinit; int ni = cp.getNameAndTypeName(mi); return cp.getUtf8Info(ni); }
/** * Makes a copy. Class names are replaced according to the * given <code>Map</code> object. * * @param newCp the constant pool table used by the new copy. * @param classnames pairs of replaced and substituted * class names. */ public AttributeInfo copy(ConstPool newCp, Map classnames) { if (methodIndex() == 0) return new EnclosingMethodAttribute(newCp, className()); else return new EnclosingMethodAttribute(newCp, className(), methodName(), methodDescriptor()); } }
/** * Makes a copy. Class names are replaced according to the * given <code>Map</code> object. * * @param newCp the constant pool table used by the new copy. * @param classnames pairs of replaced and substituted * class names. */ @Override public AttributeInfo copy(ConstPool newCp, Map<String,String> classnames) { if (methodIndex() == 0) return new EnclosingMethodAttribute(newCp, className()); return new EnclosingMethodAttribute(newCp, className(), methodName(), methodDescriptor()); } }
/** * Returns the method name specified by <code>method_index</code>. */ public String methodName() { ConstPool cp = getConstPool(); int mi = methodIndex(); int ni = cp.getNameAndTypeName(mi); return cp.getUtf8Info(ni); }
/** * Returns the method name specified by <code>method_index</code>. */ public String methodName() { ConstPool cp = getConstPool(); int mi = methodIndex(); int ni = cp.getNameAndTypeName(mi); return cp.getUtf8Info(ni); }
/** * Returns the method descriptor specified by <code>method_index</code>. */ public String methodDescriptor() { ConstPool cp = getConstPool(); int mi = methodIndex(); int ti = cp.getNameAndTypeDescriptor(mi); return cp.getUtf8Info(ti); }
/** * Returns the method name specified by <code>method_index</code>. */ public String methodName() { ConstPool cp = getConstPool(); int mi = methodIndex(); int ni = cp.getNameAndTypeName(mi); return cp.getUtf8Info(ni); }
/** * Returns the method name specified by <code>method_index</code>. */ public String methodName() { ConstPool cp = getConstPool(); int mi = methodIndex(); int ni = cp.getNameAndTypeName(mi); return cp.getUtf8Info(ni); }
/** * Returns the method name specified by <code>method_index</code>. */ public String methodName() { ConstPool cp = getConstPool(); int mi = methodIndex(); int ni = cp.getNameAndTypeName(mi); return cp.getUtf8Info(ni); }
/** * Returns the method descriptor specified by <code>method_index</code>. */ public String methodDescriptor() { ConstPool cp = getConstPool(); int mi = methodIndex(); int ti = cp.getNameAndTypeDescriptor(mi); return cp.getUtf8Info(ti); }
/** * Returns the method descriptor specified by <code>method_index</code>. */ public String methodDescriptor() { ConstPool cp = getConstPool(); int mi = methodIndex(); int ti = cp.getNameAndTypeDescriptor(mi); return cp.getUtf8Info(ti); }
/** * Returns the method descriptor specified by <code>method_index</code>. */ public String methodDescriptor() { ConstPool cp = getConstPool(); int mi = methodIndex(); int ti = cp.getNameAndTypeDescriptor(mi); return cp.getUtf8Info(ti); }
/** * Returns the method descriptor specified by <code>method_index</code>. */ public String methodDescriptor() { ConstPool cp = getConstPool(); int mi = methodIndex(); int ti = cp.getNameAndTypeDescriptor(mi); return cp.getUtf8Info(ti); }
/** * Makes a copy. Class names are replaced according to the * given <code>Map</code> object. * * @param newCp the constant pool table used by the new copy. * @param classnames pairs of replaced and substituted * class names. */ public AttributeInfo copy(ConstPool newCp, Map classnames) { if (methodIndex() == 0) return new EnclosingMethodAttribute(newCp, className()); else return new EnclosingMethodAttribute(newCp, className(), methodName(), methodDescriptor()); } }
/** * Makes a copy. Class names are replaced according to the * given <code>Map</code> object. * * @param newCp the constant pool table used by the new copy. * @param classnames pairs of replaced and substituted * class names. */ public AttributeInfo copy(ConstPool newCp, Map classnames) { if (methodIndex() == 0) return new EnclosingMethodAttribute(newCp, className()); else return new EnclosingMethodAttribute(newCp, className(), methodName(), methodDescriptor()); } }
/** * Makes a copy. Class names are replaced according to the * given <code>Map</code> object. * * @param newCp the constant pool table used by the new copy. * @param classnames pairs of replaced and substituted * class names. */ public AttributeInfo copy(ConstPool newCp, Map classnames) { if (methodIndex() == 0) return new EnclosingMethodAttribute(newCp, className()); else return new EnclosingMethodAttribute(newCp, className(), methodName(), methodDescriptor()); } }
/** * Makes a copy. Class names are replaced according to the * given <code>Map</code> object. * * @param newCp the constant pool table used by the new copy. * @param classnames pairs of replaced and substituted * class names. */ public AttributeInfo copy(ConstPool newCp, Map classnames) { if (methodIndex() == 0) return new EnclosingMethodAttribute(newCp, className()); else return new EnclosingMethodAttribute(newCp, className(), methodName(), methodDescriptor()); } }