/** * If currently visiting a method, get the method's slash-formatted * signature */ public String getMethodSig() { if (!visitingMethod) { throw new IllegalStateException("getMethodSig called while not visiting method"); } if (methodSig == null) { methodSig = getStringFromIndex(method.getSignatureIndex()); } return methodSig; }
public void addAllDefinitions(JavaClass obj) { String className2 = obj.getClassName(); defined.add(className2); for (Method m : obj.getMethods()) { if (!m.isPrivate()) { String name = getMemberName(obj, className2, m.getNameIndex(), m.getSignatureIndex()); defined.add(name); } } for (Field f : obj.getFields()) { if (!f.isPrivate()) { String name = getMemberName(obj, className2, f.getNameIndex(), f.getSignatureIndex()); defined.add(name); } } }
/** * If currently visiting a method, get the method's slash-formatted * signature */ public String getMethodSig() { if (!visitingMethod) { throw new IllegalStateException("getMethodSig called while not visiting method"); } if (methodSig == null) { methodSig = getStringFromIndex(method.getSignatureIndex()); } return methodSig; }
public ClassModelMethod(org.apache.bcel.classfile.Method method, int _index) { index = _index; methodAccessFlags = method.getAccessFlags(); nameIndex = method.getNameIndex(); descriptorIndex = method.getSignatureIndex(); methodAttributePool = new AttributePool(method.getAttributes(), getName()); codeEntry = methodAttributePool.codeEntry; }
public void addAllDefinitions(JavaClass obj) { String className2 = obj.getClassName(); defined.add(className2); for (Method m : obj.getMethods()) { if (!m.isPrivate()) { String name = getMemberName(obj, className2, m.getNameIndex(), m.getSignatureIndex()); defined.add(name); } } for (Field f : obj.getFields()) { if (!f.isPrivate()) { String name = getMemberName(obj, className2, f.getNameIndex(), f.getSignatureIndex()); defined.add(name); } } }
checkIndex(obj, obj.getSignatureIndex(), CONST_Utf8); String sig = ((ConstantUtf8) (cp.getConstant(obj.getSignatureIndex()))).getBytes(); // Method's signature(=descriptor)
checkIndex(obj, obj.getSignatureIndex(), CONST_Utf8); final String sig = ((ConstantUtf8) (cp.getConstant(obj.getSignatureIndex()))).getBytes(); // Method's signature(=descriptor)