List of usage examples for org.objectweb.asm.commons Method getDescriptor
public String getDescriptor()
From source file:org.kjots.json.object.GenericMethod.java
License:Apache License
/** * Construct a new Generic Method.//from www . jav a 2s .com * * @param method The method. * @param genericReturnType The generic return type flag. * @param genericTypeIndices The indices of the generic types. */ public GenericMethod(Method method, boolean genericReturnType, Set<Integer> genericTypeIndices) { super(method.getName(), method.getDescriptor()); this.genericReturnType = genericReturnType; this.genericTypeIndices = genericTypeIndices; }
From source file:org.kjots.json.object.MethodVisitor.java
License:Apache License
/** * Visit a method instruction./* w w w . j av a2s . c om*/ * <p> * This is a convenience method that is equivalent to the following: * <pre> * visitMethodInsn(opcode, type.getInternalName(), method.getName(), method.getDescriptor()) * </pre> * * @param opcode The opcode. * @param type The type. * @param method The method. * @see org.objectweb.asm.MethodVisitor#visitMethodInsn(int, String, String, String) */ public void visitMethodInsn(int opcode, Type type, Method method) { this.asmMethodVisitor.visitMethodInsn(opcode, type.getInternalName(), method.getName(), method.getDescriptor()); }
From source file:org.mutabilitydetector.checkers.settermethod.EnhancedClassNode.java
License:Apache License
private static String createDescriptorFor(final String methodName, final Type returnType, final Type[] argumentTypes) { final Method method = new Method(methodName, returnType, argumentTypes); return method.getDescriptor(); }