Examples of toDescriptorString()


Examples of net.sourceforge.javautil.bytecode.api.MethodDescriptor.toDescriptorString()

    for (int i=0; i<exceptions.length; i++) {
      exceptions[i] = md.getExceptionTypes()[i].getName();
    }
   
    int access = getAccess(method);
    String desc = md.toDescriptorString();
   
    MethodVisitor mv = context.getClassWriter().visitMethod(access, method.getName(), desc, null, exceptions);
    for (IBytecodeAnnotation ba : method.getDeclaredAnnotations()) {
      this.declareAnnotation(context, ba, mv.visitAnnotation(ba.getType().getType().toDescriptorString(), true));
    }
View Full Code Here

Examples of net.sourceforge.javautil.bytecode.api.TypeDescriptor.toDescriptorString()

   * @param type The type to pop
   * @return The popped type if verified, otherwise throws an exception
   */
  public TypeDescriptor pop (TypeDescriptor type) {
    TypeDescriptor removed = this.stack.remove(0);
    if (!removed.equals(type)) throw new BytecodeException("Type removed from stack inconsistent: " + type.toDescriptorString() + ", expected: " + removed.toDescriptorString());
    return removed;
  }
 
  /**
   * @return The popped off type from the stack
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.